Professional Documents
Culture Documents
Q1) Assemble and execute the following Program USING Debug System on Dosbox:
CLD
Mov SI,70
Mov wo[70],302F
Mov wo[72],5A40
Mov wo[74],6699
LODSB
Mov CL,AL
LODSB
Mov BL,AL
LODSB
RET
Check the following values after you run the program on debug:
BL = ……30……………
CL = ………2F…………
AL = ………40…………
SI = ………0073…….........
DS = ………073F…………
MOV AX,2244
MOV BX,1177
PUSH AX
PUSH BX
POP wo[30]
POP CX
CLD
MOV SI,99
LODSW
MOV CX,AX
• Load the contents of memory locations 87 & 88 in the AX register then save it in
BX.
CLD
MOV SI,87
LODSW
MOV BX,AX
B
Q4) Write a program using STOS that performs the following:
A
B
Q5) Write a program using MOVS to Move 11 bytes at memory location 0700:300 to
memory location 500:200
CLD
MOV AX,700
MOV DS,AX
MOV BX,500
MOV ES,BX
MOV SI,300
MOV DI,200
MOV CX,11
REP MOVSB
Add your screen shot here..