Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 10 (10 points) Saved 10) Choose the correct assembly language code that will do the following: if( (dog mouse)) goto LOOP else goto LOOP_B;

image text in transcribed
image text in transcribed
image text in transcribed
Question 10 (10 points) Saved 10) Choose the correct assembly language code that will do the following: if( (dog mouse)) goto LOOP else goto LOOP_B; EXPLANATION: If (dog is LESS THAN or EQUAL to cat) AND (dog is GREATER THAN mouse) THEN go to LOOP A ELSE go to LOOP_B mov ax,dog cmp ax,cat js LOOP X iz LOOP X jmp LOOP B LOOP_X: mov ax,dog cmp ax,mouse js LOOP_B iz LOOP_B jmp LOOP A 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 Omov 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 O mov ax,dog cmp ax,cat js LOOP_B jz LOOPB jmp LOOP A LOOP_X: mov ax,dogly cmp ax,mouse jz LOOP A js LOOP A jmp LOOP_B

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning PostgreSQL On The Cloud Simplifying Database As A Service On Cloud Platforms

Authors: Baji Shaik ,Avinash Vallarapu

1st Edition

1484234464, 978-1484234464

Students also viewed these Databases questions