Question

Please give the content of ports or registers and flags which was updated by the following statement:

P1OUT OXO4 BIS.B #0X01&P1OUT P1OUT

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

BIS.B      #0x01, &P1OUT

P1OUT = 0X04

Bis Instruction sets the bits in destination register (P1OUT) according to the immediate value mentioned in the instruction

0x01--> 0000 0001

0x04--> 0000 0100

BIS instruction simply OR’s the two valus and stores in destination

Which is 0000 0101 --> 0x05

Therefore P1OUT = 0x05

Add a comment
Know the answer?
Add Answer to:
Please give the content of ports or registers and flags which was updated by the following...
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