222k views
0 votes
Suppose that the LC-3 instruction LD R1, DATA is located at x3100 in memory and the label DATA is located at x 310F. The machine code (in hex) for the above instruction is

User Forgetso
by
4.8k points

1 Answer

3 votes

Answer:

The machine code is located at x210F.

Step-by-step explanation:

The DATA is located at x3100 while the DATA label is located at the x310F (in hex) in the memory which is F address away (8 bits) from the DATA itself. The machine code location is relative to the address of the DATA label.

User Icedtrees
by
4.2k points