Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

cosc 2325 Machine language thankyou Question 3 (10 points) Given the code below: What will be the resulting value of the Sign Flag (SF), and

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
cosc 2325 Machine language
thankyou
Question 3 (10 points) Given the code below: What will be the resulting value of the Sign Flag (SF), and the Zero Flag (ZF) and will the Jump occur or will the Jump NOT occur mov ax,Ofh cmp ax,Oh jns loop1 SF=1 ZF-1 JUMP WILL OCCUR SF=0 ZF=1 JUMP WILL NOT OCCUR SF=1 ZF=0 JUMP WILL OCCUR SF=0 ZF=0 JUMP WILL OCCUR Question 2 (10 points) Given the code below: What will be the resulting value of the Sign Flag (SF), and the Zero Flag (ZF) and will the Jump occur or will the Jump NOT occur mov ax,05h mov bx,06h cmp bx,ax js loop1 OSF=1 ZF=1 JUMP WILL OCCUR SF=0 ZFEO JUMP WILL NOT OCCUR SF=1 ZF=0 JUMP WILL OCCUR SF=0 ZF=1 JUMP WILL NOT OCCUR Question 10 (10 points) 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 iz LOOPA js LOOPA 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 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

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

1. Signs and symbols of the map Briefly by box ?

Answered: 1 week ago

Question

Types of physical Maps?

Answered: 1 week ago

Question

Explain Intermediate term financing in detail.

Answered: 1 week ago