Question

(a) The C instruction A 0x8001 where A is a 16-bit bus, can be used to do which operation? 1 mark (i) What will be the execution result of the C instruction i i 5 where i is a 16-bit number declared as short int i 0x8008 1 mark
0 0
Add a comment Improve this question Transcribed image text
Answer #1

i)
^= is a Bitwise exclusive or operator. A^=0x8001 is same as A = A ^ 0x8001

ii)
value of i = 0x8808 is 32776
>> is bitwise Right shift operator.
so,
i= i >> 5 means shifting value of 32776 by 5 bits.
ANS: 1024

Add a comment
Know the answer?
Add Answer to:
(a) (i) The 'C' instruction "A cap = 0times8001;", where A is a 16-bit bus, can 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