Register R1 of a computer contains the decimal values 1200 a

Register R1 of a computer contains the decimal values 1200 and R6 decimal value 03. Also registers AX = 1234 and BX = FFFF. What is he effective address of the memory operand in each of the following instructions? Show the results of bth instructions after they are executed,

a) MOV #3000, R5

b) STRB R6, (R1, #10)

c) MOV AX, BX

Solution

a)  MOV #3000, R5 :

It is a immediate addressing mode.

Effective address= value =3000;

b) STRB R6, (R1, #10) :

It is using Immediate Offset mode.

Effective Address = R1+offset = 1200+10 = 1210.

c)MOV AX, BX :

It is register addressing mode.

Effective Address = AX = 1234.

I hope your needs are fullfiled and you are satisfied with the answer.

Register R1 of a computer contains the decimal values 1200 and R6 decimal value 03. Also registers AX = 1234 and BX = FFFF. What is he effective address of the

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site