Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions