Question: Consider the following assembly code L1: mov eax, val1 Cmp eax, val2 Jae L2 Inc val1 Dec val2 Jmp L1 2 L2: Which of the
Consider the following assembly code
L1:
mov eax, val1
Cmp eax, val2
Jae L2
Inc val1
Dec val2
Jmp L1
2
L2:
Which of the following High level language
logically represents
the
above code
?
(a)
For (i=0; i { Val1++ Val2++ } L2: (b) while (val1 < val2) { Val1++ V al2 - - } L2: (c) while (val1 > = val2) { Val1++ Val2 - - } L2: (d) while (val1 = = val2) { Val1++ Val2 - - } L2: Consider the following code (Next 2 Questions) 1. .data 2. Source BYTE 50 DUP(?) 3. Target BYTE 100 DUP(?) 4. .code 5. Mov cx, 50 6. Mov esi, OFFSET source 7. Mov edi, OFFSET target 8. Rep movsb 9.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
