Question: 2. Write a new trap service routine that reads a line of text from the console and stores the resulting string beginning at the
2. Write a new trap service routine that reads a line of text from the console and stores the resulting string beginning at the address given in R0. The routine also echoes the line to the console as it is typed. The routine uses the trap vector x26 and is stored beginning at address x028A. Use the following code to test your program: MESS LOC .ORIG x3000 LEA RO, MESS PUTS LD RO, LOC TRAP x26; string stored at x3100 PUTS HALT .STRINGZ " enter line: .FILL x3100 .END 11 Your trap vector table entry and the service routine code can be added to the same file as the above program using separate .ORIG END blocks.
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
The question youve provided pertains to writing a service routine for the assembly language of the Little Computer 3 LC3 a simulated computer used for ... View full answer
Get step-by-step solutions from verified subject matter experts
