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

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 Databases Questions!