Question

Given the following data and code, what is the hexadecimal value of register eax .data array1...

Given the following data and code, what is the hexadecimal value of register eax

.data

array1 WORD 10 DUP(?), 0, 0

.code mov eax, SIZEOF array1

a. 20

b. 21

c. 22

d. 24

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

array1 WORD 10 DUP(?), 0, 0

  • Creates an array of 10 unsigned duplicate word of 16 bit unassigned values.

mov eax, SIZEOF array1

  • Counts the number of bytes in the data declaration
  • equivalant to multiplying LENGTHOF by type which counts the number of elements in a single data declaration
  • Hence, the correct answer here is 24
Add a comment
Know the answer?
Add Answer to:
Given the following data and code, what is the hexadecimal value of register eax .data array1...
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