Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started