Question

1. How many bytes are allocated in total for the variables (va, vb, vc, vd, and ve)? 2. For each of the instructions highligh

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

Solution:

1)

va                DS.B 1
vb                DS.B        5
vc                DS.W       4
vd DC.B $01,$10,$AF,"1"
ve                DC.W      $01,$10,,$800,$806,"1","234"

         each B(byte) takes as 1 byte = 8 bits

         each W(word) taken as 2 byte = 16bits

So

va has(1*1)=1 byte

vb has (5*1)=5 bytes

vc has (4*2)=8 bytes

vd has (4*1)=4 bytes

ve has (2*6)=12 bytes

sorry For 2 i don't have enough knowledge.

Thank you, Have a great day:-)

Add a comment
Know the answer?
Add Answer to:
1. How many bytes are allocated in total for the variables (va, vb, vc, vd, and...
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
  • Thanks for the help 1. How many bytes are allocated in total for the variables (va...

    Thanks for the help 1. How many bytes are allocated in total for the variables (va vb, ve, vd, and ve)? 2. For cach of the instructions highlighted (boldface), derive the effective address of the memory variable (source) if any mmory variable is involved, and the contents of the register a or d (whichever one involved) right after the instruction is executed. Answer in hexadeci Asset all bytes in the variables va, vb and vc are inally zero. RAMStart EQU...

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