Question: Suppose EAX, EBX, and ECX contained three unsigned integers. Which of the following code excerpts would display the smallest of the three integers. Question 7

Suppose EAX, EBX, and ECX contained three unsigned integers. Which of the following code excerpts would display the smallest of the three integers.
Question 7 options:
cmp eax,ebx
jb L1
mov eax,ebx
L1: cmp eax,ecx
jb L2
mov eax,ecx
L2: call WriteInt
cmp eax,ebx
jnae L1
mov eax,ebx
L1: cmp ecx,eax
jnae L2
mov eax,ecx
L2: call WriteInt
cmp eax,ebx
jae L1
mov eax,ebx
L1: cmp eax,ecx
jae L2
mov eax,ecx
L2: call WriteInt
cmp eax,ecx
jae L1
mov eax,ebx
L1: cmp eax,ebx
jae L2
mov eax,ecx
L2: call WriteInt

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!