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:
ifdog cat && dog mouse goto LOOPA
else goto LOOPB;
Question options:
mov ax dog
cmp axcat ; dogcat
js LOOPX
jmp LOOPA
LOOPX:
mov ax dog
cmp axmouse ; dogmouse js LOOPB
jmp LOOPB
mov ax dog
cmp axcat ; dogcat
js LOOPB
jmp LOOPA
LOOPX:
mov ax dog
cmp axmouse ; dogmouse js LOOPA
jmp LOOPB
mov ax dog
cmp axcat ; dogcat
js LOOPA
jmp LOOPB
LOOPX:
mov ax dog
cmp axmouse ; dogmouse js LOOPB
jmp LOOPB
mov ax dog
cmp axcat ; dogcat
js LOOPX
jmp LOOPB
LOOPX:
mov ax dog
cmp axmouse ; dogmouse js LOOPA
jmp LOOPB
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
