Question: . DATA array SBYTE - 1 9 , - 3 , - 1 , 0 , 1 , 3 , 8 , 2 4 ,

.DATA
array SBYTE -19,-3,-1,0,1,3,8,24,53,100
.CODE
main PROC
MOVESI, 0
MOV EDX, 0
MOV ECX, 2
MOV EAX, LENGTHOF array
DIVECX
MOV EDI, EAX
L:
MOV DL, array[ESI]
XCHG DL, array[EDI]
XCHG DL, array[ESI]
INC ESI
INC EDI
SUB EAX, 1
JNZ L
INVOKE ExitProcess, 0
main ENDP
END main
Note:
Dividend | Divisor | Quotient | Reminder
AX \(\quad \mathrm{r}/\mathrm{m8}\quad \mathrm{AL}\quad \mathrm{AH}\)
DX:AX r/m16 AX DX
EDX:EAX r/m32 EAX EDX
22. How many times does the code between the "L:" and "JNZ L" execute?
OA
8
5
Not enough information to answer
None of the above
. DATA array SBYTE - 1 9 , - 3 , - 1 , 0 , 1 , 3

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!