The following assumes the LC-3 architecture.
Consider following table that represents several of the 16-bit registers in the register file:
Register CONTENTS (binary)
R0 0000 0011 0001 1110
R1 0000 0011 0010 0000
R2 0000 0011 0010 0001
Also consider the following table that represents part of the memory of a 16-bit address space that has an adressability of 2 bytes:
ADDRESS (hex) CONTENTS (binary)
0x0321 0001 1111 0000 0101
0x0320 0001 1111 0100 0110
0x031F 0110 1010 1100 0100
0x031E 0110 1000 1101 0101
0x021C 1100 0000 0000 0000
0x021B 1100 0000 1000 0000
0x021A 1100 0000 0100 0000
Assume the PC has the address 0x021B when FETCH INSTRUCTION begins. After that first instruction executes, which one
describes the second instruction to execute?
ADD R4 to R5 and save result in R7
LDR R4 with a value from memory
LDR R5 with a value from memory
ADD R5 to R6 and save result in R7