This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: LDR R3, R0, #-5 LDR R4, R1, #0 ADD R1, R1, #3 ST R2, #4 STR R1, R0, #3 STI R4, Addr4 Addr1 .FILL x300A Addr2 .FILL x000A Addr3 .BLKW 1 Addr4 .FILL x300C Addr5 .FILL x300B .END Without using the simulator, answer the following questions: 1. What will the values of registers R0 through R4 be after the LC-3 finishes executing the ADD instruction? 2. What will the values of memory locations Addr1 through Addr5 be after the LC-3 finishes executing the STI instruction? Question 6. Someone decided to write the following subroutine. HUH ADD R7, R7, #-1 RET What does this subroutine do when called? (You can describe this in 3 words)...
View Full Document
This note was uploaded on 03/22/2008 for the course EE 306 taught by Professor Ambler during the Fall '07 term at University of Texas at Austin.
- Fall '07