Question

Write an assembly language code Irvine32.inc x86 for the following pseudo code. Use Conditional jump If...

  1. Write an assembly language code Irvine32.inc x86 for the following pseudo code.

Use Conditional jump

  1. If (op1 == op2)

                        X=1;

Else

                        X=2;

  1. While (EAX < EBX)

        EAX = EAX + 1 ;

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer 1:

mov eax,op1

cmp eax,op2

jne L1

mov X,1

jmp L2

L1: mov X,2

L2:

above written code is a assembly language code of c++/java code written in first part of a question .

i hope this will help you a lot.

Answer 2:

top:cmp eax,ebx

jae next

inc eax

jmp top

next:

this is the code of second part of your question in assembly language i hope they will help u a lot.

keep rating :

best of luck

Add a comment
Know the answer?
Add Answer to:
Write an assembly language code Irvine32.inc x86 for the following pseudo code. Use Conditional jump If...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT