We have the following register values:
AX = 420AH,
BX = A12EH,
DS = 22EAH,
CS = 0100H,
ES = 0FEAH,
SS = 0FE0H,
SI = 0010,
BP = 02ACH and
DI = 0300H.
You are required to calculate the physical address generated by each of the following instructions?
mov [bx+si+di],ax
ADD AX,[BP+12]
Solution:
1.mov [bx+si+di],ax
EA= A12EH+0010+ 0300
=AF24H
Physical address = segment*0x10+EA
= DS +EA
=22EAH + AF24H
=0x321934
ADD AX,[BP+12]
EA = 420AH , [02ACH+12]
= ADD 420AH, 02424
= 44434
Physical address = segment*0x10+EA
=SS+EA
= 0FE0H+44434
=0x45948
is it rite?