Professional Documents
Culture Documents
register.
MOV BX, AX
3- Write an assembly code to transfer the memory content Of address 3200H to the
accumulator.
Also, transfer the memory content of ADDRESS 3500H to base register.
4- Find the Physical address (P.A) of the memory location and its contents after
execution
of the following, assuming DS=1512H.
MOV AL, 3E h
MOV [4185H], AL
Answer:
P.A = { BASE * 10 } + OFFSET // Offset = Effective
P.A = { 1512 * 10 } + 4185 = 15120 + 4185 = 19305 H
5- Find the Physical address of the memory location after execution of the
following,
assuming that DS= 1000H, and BX=1234H
MOV AX, [BX]
Answer:
P.A = { BASE * 10 } + OFFSET
P.A = { 1000h * 10h } + 1234 h = 10000h + 1234h = 11234 h
6- Assume that DS=1120H, SI=2498H, And AX=17EFH show the contents of memory
locations(Physical Address)
after execution the following:
MOV [SI], AX
Answer:
P.A = { BASE * 10 } + OFFSET
P.A = { 1120 * 10 } + 2498h = 11200 + 2498 = 13698 H
7- Calculate the physical address for the following assembly code, assume that:
DS= 4500H, SS=2000H, BX=2100H, SI=1486H, DI=8500H,
BP= 7814H, and AX= 2512H:
MOV [BX+20], AX
MOV [SI+10], AX
MOV [DI+4], AX
MOV [BP+12], AX
String Addressing:
Answer:
DAT DB 'A', 'H' , 'M' , 'E' , 'D'
MOVSB
MOVSB
MOVSW
MOVSB
HLT
# Data Transfer:
Also, Assign(16H) to memory location (4317H), then to the high part of BX,
after this, copy BH to AH.
Answer:
mov cl, 10001000b
mov DS, cx
Mov Ax, DS
Answer:
XCHG AX, DX
XCHG BL, CH
Answer:
MOV BX, 4014H
MOV DX, 4038H
XCHG BX, DX
MOV [2131H], BL
MOV [2139H], DL
Answer:
mov AX, 6026
push AX
mov [2141], 12
push [2141]
push 1235 h