Tough Computer Systems question Show work for partial credit
Tough Computer Systems question.
Show work for partial credit.
Assume the following values are in memory, and register R1 is the index register and is storing 5000. What is loaded into the accumulator with the instruction \"Load 3000\" given each of the following addressing modes?Solution
a)
 Immediate addressing mode..
 Load 3000 will store AX into 3000
 AX becomes 3000
 --------------------------------------------------------------------------------------------------------------------------------------------
  b)
 Direct addressing mode...
 It stores the data value where at location 3000
 So at address 3000, the value is 7000
 So AX becomes 7000
 ------------------------------------------------------------------------------------------------------------------------------------------------------
  c)
 Indirect addressing mode ...
 LD AX [3000]
 At 3000 address we have value 7000
 So accumulator stores value at address 7000
 So AX becomes 8000
 -------------------------------------------------------------------------------------------------------------------------------------------------------
  d)
 Indexed addressing mode ...
 Here AX is stored on address + offset
 Load AX , 3000 + 5000
 Load AX, 8000
 So AX becomes 3000

