Question: After the following LC-3 code executes what are the ending contents of the registers and memory? Assume some registers/memories have starting values as indicated. If

After the following LC-3 code executes what are the ending contents of the registers and memory? Assume some registers/memories have starting values as indicated. If blank, the content is unknown. Remember that both registers and memory locations are 16-bits wide. The memory portion starts at address 0x3200. R0 holds the value x1234 at the start.

LEA R1, label0 LDR R2, R1, #0 STR R0, R1, #4 LEA R6, label2 ADD R5, R0, R1 LEA R0, label1 AND R7, R2, R5 NOT R3, R0 STR R7, R6, #-2 STR R2, R1, #1

Label Contents

label0 0xDEAD

label1

label2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!