Consider the following register and memory values:
Register
|
Contents
|
|
Memory Locations
|
Contents
|
1
|
150
|
|
150
|
251
|
2
|
252
|
|
151
|
004
|
3
|
250
|
|
152
|
250
|
4
|
311
|
|
153
|
017
|
PC
|
320
|
|
250
|
313
|
BR
|
308
|
|
251
|
310
|
X
|
198
|
|
252
|
008
|
AC
|
105
|
|
310
|
405
|
|
|
|
311
|
151
|
|
|
|
312
|
151
|
|
|
|
313
|
202
|
PC is the Program Counter, BR is a Base Register, X is an Index Register, AC is the Accumulator.
a. Compute the result of an ADD IMMEDIATE 150 instruction.
b. Compute the result of an ADD DIRECT 150 instruction.
c. Compute the result of an ADD INDIRECT 150 instruction.
d. Compute the result of an ADD REGISTER 4 INDIRECT instruction.