Question: Question 3 ( 4 Marks ) ( a ) What can the following program do ? ( b ) Compute the last value of SUM

Question 3
(4 Marks)
(a) What can the following program do?
(b) Compute the last value of SUM and AX.
.MODEL SMALL
.STACK 64
.DATA
Count EQU 05
DATA_IN DB 125,235,190,90,10
Sum DW ?
.CODE
MAIN PROC FAR
MOV AX, @DATA
MOV DS, AX
MOVCS, Count
MOV SI, OFFSET DATA_IN
MOV AX,00
BACK: ADD AL,[SI]
JNC OVER
INC AH
OVER: INCSI
DEC CX
JNZ BACK
MOV SUM,AX
MOV AH,4 CH
NT 21 H
MAIN ENDP
END MAIN
Question 3 ( 4 Marks ) ( a ) What can the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!