Answered step by step
Verified Expert Solution
Link Copied!

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))

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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(cat

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

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

Explain the key areas in which service employees need training.

Answered: 1 week ago

Question

Understand the role of internal marketing and communications.

Answered: 1 week ago