Given the following memory values and a oneaddress machine w

Given the following memory values and a one-address machine with an accumulator: word 120 contains 140 word 130 contains 150 word 140 contains 160 word 150 contains 170 What values do the following instructions loan into the accumulator? a. LOAD INDIRECT 130 b. LOAD IMMEDIATE 170 c. LOAD INDIRECT 120 d. LOAD DIRECT 140

Solution

word 120 contains 140

word 130 contains 150

word 140 contains 160

word 150 contains 170

a. LOAD INDIRECT 130

Load Indirect reads memory two times .It reads the memory at the address 130. Memory location 130 contains 150. Then the processor will read memory location 150 which contains 170 and place 170 in the accumulator.

AC = 170

b. LOAD IMMEDIATE 170

Load Immediate write the number that is contained inside the instruction into the accumulator.

AC = 170

c. LOAD INDIRECT 120

120 contains 140

140 contains 160

AC = 160

d. LOAD DIRECT 140

A load direct reads memory at the address that is contained inside the instruction and place the result in the accumulator.

AC = 160

Given the following memory values and a one-address machine with an accumulator: word 120 contains 140 word 130 contains 150 word 140 contains 160 word 150 cont

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site