Question: Write an LC-3 assembly language program and execute it using the simulator, that first displays a prompt and accepts a single numeric (ASCII) digit (i.e.,

Write an LC-3 assembly language program and execute it using the simulator, that first displays a prompt and accepts a single numeric (ASCII) digit (i.e., one of 0 -- 9) from the keyboard that specifies the number of characters that will follow. This digit should be echoed when it is input. Then your program should accept that number of characters from the keyboard without echo, convert all lower case alpha characters to upper case, and then output the resulting string on the screen, followed by a message stating how many characters were converted. Any non-alpha characters should be output unchanged. Use TRAP instructions to perform all I/O functions. Use subroutines for any repeated operations in your program. Turn in a paper program listing ( .asm file) and screen shot of your console output. Use appropriate formatting and comments to make your program easy to read and understand.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!