Question
Assembly x86
6(a- 4) Write the code that evaluates the following expression: ld
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution: Assembly x86 code: ; load a to eax lea eax, [a] iSubtract 4 from a sub eax, 4 ; Multiply it by 6 imul eax, 6 ;move

Copyable Code:

Assembly x86 code:

; load a to eax

lea eax,[a]

    

; Subtract 4 from a

sub eax,4

    

; Multiply it by 6

imul eax,6

           

; move 0 to edx

mov edx,0

    

; move 8 to ebx

mov ebx,8

    

;Divide it by 8

idiv ebx

Add a comment
Know the answer?
Add Answer to:
Assembly x86 6(a- 4) Write the code that evaluates the following expression: ld
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