Question: Consider the following main - code fragment and the procedure SumThem: . DATA IntArray WORD 1 0 , 5 , 2 0 , 1 5
Consider the following "main"code fragment and the procedure "SumThem":
DATA
IntArray WORD
B WORD
C WORD CODE
CODE
mov ax@data
mov ax @d ax
push IntArray
push Intarray
push IntArray ; push
push call SumThem ;
add
mov ah
int
main ENDP
;
SumThem PROC NEAR
push bp
push bp mov
mov Contents of :
; Just Before Pass : di
mov
cmp cx
; End of Pass : di
ax:
jmp le ExitProc
mov di
; End of Pass : di
Theloop:
add axbpdi ; End of Pass : di
add di
dec
; End of Pass : di
; End of Pass.
jnz TheLoop
; End of Pass : di
pop bp ret
SumThem ENDP
END main
; How many passes were actually made?
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
