Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program in LC-3 assembly language, to do the following: The following me

ID: 3715790 • Letter: W

Question

Write a program in LC-3 assembly language, to do the following:

The following message will be displayed first: “Enter a number n between 0 and 9)”. If the user types number 0, the program prints “Bye” and then terminates otherwise it will starts the session. If the user enters an input other than 0 through 9, program displays “try again” after entering  number n the following message will be displayed next: “Enter a lowercase letter)” Each time the user types a lowercase letter (a through y), the program outputs the uppercase version of that letter and the next letter n times. (Ex: if the user enters 5 and then types letter b, output will be BBBBBCCCCC). The program then will start over.

Explanation / Answer

.ORIG x3000

Loop

LEA R0,text

TRAP x22

JSR GETDEC   

text .STRINGZ "Bye"

BRZ EXIT

ADD R0, R0, #0
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote