Q1(20pts) Trace the following program and show the contents of the corresponding
memory locations and registers upon completion.
MODEL SMALL
STACK 64
DATA
DATA1 DB 16H, 10H, 30H, 10H
DATA2 DB 20H, 30H, 01H, 30H
RESULT DW ?
CODE
MOV AX,@DATA
MOV DS,AX
MOV SI,OFFSET DATA1
MOV AX,0
MOV BX,0
MOV CX,4
NEXT1: ADD AL,[SI]
ADC AH,0
CLC
ADD BL,[SI+4]
ADC BH,0
INC SI
LOOP NEXT1
SUB AX,BX
INC NEXT2
NOT AX
INC AX
NEXT2: SUB AX,0
DAS
MOV RESULT,AX
MOV AH,4CH
INT 21H
END
DS:0100
DATA1
DS:0105
DATA2
DS:016A
RESULT
Trace:
AX
BX
CX
CF
Contents of AX, BX and CF
AX=
BX=
CF=