Question

Assembly language: Before executing the following code, the value in eax was 1 What will be...

Assembly language:

Before executing the following code, the value in eax was 1

What will be the value in eax after executing the following code:

mov ebx, eax

shl eax, 4

shl ebx, 3

add eax, ebx

0 0
Add a comment Improve this question Transcribed image text
Answer #1
mov ebx, eax    ->  ebx = 1
shl eax, 4      ->  eax = eax * 16 = 16
shl ebx, 3      ->  ebx = ebx * 8 = 8
add eax, ebx    ->  eax = eax + ebx = 16 + 8 = 24

Value of eax after code is executed is 24
Answer: 24
Add a comment
Know the answer?
Add Answer to:
Assembly language: Before executing the following code, the value in eax was 1 What will be...
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