Answered step by step
Verified Expert Solution
Question
1 Approved Answer
cosc 2325 machine language please try do all question thank you Choose the correct assembly language code that will do the following: if( (dog mouse))
cosc 2325 machine language please try do all question thank you
Choose the correct assembly language code that will do the following: if( (dog mouse)) goto LOOP_A else goto LOOP_B; EXPLANATION: If ( dog is LESS THAN or EQUAL to cat) OR (dog is GREATER THAN mouse) THEN go to LOOP_A ELSE go to LOOP_B mov ax,dog cmp ax.cat js LOOP_B jz LOOP_B jmp LOOP_X LOOP_X: mov ax,dog cmp ax,mouse jz LOOP_A js LOOP_A jmp LOOP_B mov ax,dog cmp ax,cat js LOOP_B jz LOOP B. jmp LOOP A LOOP_X: mov ax,dog cmp ax,mouse jz LOOP_A js LOOP_A jmp LOOP B W iz LOOP_A js LOOP A jmp LOOP_B O mov ax,dog cmp ax,cat js LOOP A jz LOOP_A LOOP_X: mov ax,dog cmp ax,mouse jz LOOP_B js LOOP B jmp LOOP_A cmp dog,cat js LOOP_X jz LOOP_X jmp LOOP_A LOOP_X: mov ax,dog cmp ax,mouse jz LOOP_A js LOOP_A jmp LOOP_A Question 8 (10 points) Choose the correct Assembly Language code below that does the following: If cat is less than dog THEN go to LOOP_A ELSE go to LOOP_B if(catStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started