Question: Choose the correct Assembly Language code below that does the following: if ( ( dog < cat ) && ( dog < mouse ) )

Choose the correct Assembly Language code below that does the following:
if((dog < cat) && (dog< mouse)) goto LOOP_A
else goto LOOP_B;
Question 14 options:
mov ax, dog
cmp ax,cat ; (dog-cat)
js LOOP_X
jmp LOOP_A
LOOP_X:
mov ax, dog
cmp ax,mouse ; (dog-mouse)
js LOOP_B
jmp LOOP_B
mov ax, dog
cmp ax,cat ; (dog-cat)
js LOOP_B
jmp LOOP_A
LOOP_X:
mov ax, dog
cmp ax,mouse ; (dog-mouse)
js LOOP_A
jmp LOOP_B
mov ax, dog
cmp ax,cat ; (dog-cat)
js LOOP_A
jmp LOOP_B
LOOP_X:
mov ax, dog
cmp ax,mouse ; (dog-mouse)
js LOOP_B
jmp LOOP_B
mov ax, dog
cmp ax,cat ; (dog-cat)
js LOOP_X
jmp LOOP_B
LOOP_X:
mov ax, dog cmp ax,mouse ; (dog-mouse) js LOOP_A
jmp LOOP_B

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!