Please provide a step by step solution of the above question
Please provide a step by step solution of the above question
Registers R1 and R2 contain the decimal numbers 1200 and 4600. What is the effective address (EA) of memory operand? Load 20(R1), R5 Move #3000, R5 Store R5, 30(R1, R2) Add -(R2), R5 Subtract (R1)+, R5Solution
1. Load 20(R1),R5 --
so addressing mode is Index so the effective address is 1200+20=1220(answer)
2.Move #3000,R5 --
so Addressing Mode is immediate so the effective address is 3000(answer)
3.Store R5,30(R1,R2) --
so Addressing Mode is index so the effective address is 30+1200+4600=4830(answer)
4.Add -(R2),R5 --
so Addressing Mode is auto-decrement so the effective address is 4600-1=4599(answer)
5.Subtract (R1)+,R5 --
so Addressing Mode is auto-increment so the effective address is 1200(answer)

