Question

HCS12 assembly language

E2.21 Write an instruction sequence to toggle the odd-number bits and clear the even-number bits of memory location at $66.

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

LOAD r1,$66 ; this instruction loads memory location $66 into register 1......... AND r1,0x55555555 ; this clears the even bits of register 1 ($66)........... EXOR r1,0x55555555 ; to toggle odd bits of register 1 ($66); EXOR represents exclusive OR operation............ STOR r1,$66 ; store register 1 to location $66...........

Add a comment
Know the answer?
Add Answer to:
HCS12 assembly language E2.21 Write an instruction sequence to toggle the odd-number bits and clear the...
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