Question: Consider the following assembly code L1: mov eax, val1 Cmp eax, val2 Jae L2 Inc val1 Dec val2 Jmp L1 L2: Which of the following
Consider the following assembly code
L1:
mov eax, val1
Cmp eax, val2
Jae L2
Inc val1
Dec val2
Jmp L1
L2:
Which of the following High level language logically represents the above code?
(a) For (i=0; i = val2) { Val1++ Val2 - - } L2:
(d) while (val1 = = val2) { Val1++ Val2 - - } L2:
(b) while (val1 < val2) { Val1++ Val2 - - } L2:
(c) while (val1 > = val2) { Val1++ Val2 - - } L2:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
