Create the following in LC-3 assmebly language. DO NOT USE JSR INSTRUCTION. The
ID: 3803269 • Letter: C
Question
Create the following in LC-3 assmebly language. DO NOT USE JSR INSTRUCTION.
The program must start at address x3000. Here's how the program must behave: The program prints ">", which serves as a prompt to tell the user that the program is waiting for input. The prompt string is a greater-than symbol, followed by a single space. The user types a character on the keyboard. The user does not hit after the character is typed. The user character is printed on the console followed by a linefeed character. The program a string that shows the 8-bit binary representation of the ASCII code for the character. The string must follow exactly the format shown below, where X is replaced by the user's character and bbbbbbbb is replaced by the ASCII code: The ASCII code for 'X' is bbbbbbbb A linefeed is printed at the end of the string. (Your code will not print in boldface, of course; that's just used for emphasis here.) The program halts.Explanation / Answer
Machine language - binary Assembly language - symbolic An assembler is a program that turns symbols into machine instruction ISA-specific: close correspondence between symbols and instruction set mnemonics for opcodes labels for memory locations ADD R6, R2, R6 ; increment index reg.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.