Question: Question 3 ( 4 Marks ) ( a ) What can the following program do ? ( b ) Compute the last value of SUM
Question
Marks
a What can the following program do
b Compute the last value of SUM and AX
MODEL SMALL
STACK
DATA
Count EQU
DATAIN DB
Sum DW
CODE
MAIN PROC FAR
MOV AX @DATA
MOV DS AX
MOVCS, Count
MOV SI OFFSET DATAIN
MOV AX
BACK: ADD ALSI
JNC OVER
INC AH
OVER: INCSI
DEC CX
JNZ BACK
MOV SUM,AX
MOV AH CH
NT H
MAIN ENDP
END MAIN
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
