Question

Write a PIC18Fxx2 assembly program that takes the variable A and save into B in inverted the 110010102, then the program fini
0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWER:

1.

MOV AL, 11001010 ;setting value
MOV CL, 7
MOV DH, 1
MOV DL, 0

loopData: PUSH AX
   AND AL, DH
   PUSH CX
   MOV CL, DL
   SHR AL, CL
   POP CX
   MOV BH, AL
   SHL BH,CL
   OR CH,BH
   DEC CL
   INC DL
   SHL DH, 1
   POP AX
   CMP DL, 8
   JE END
   JMP LOOP1

END:

Add a comment
Know the answer?
Add Answer to:
Write a PIC18Fxx2 assembly program that takes the variable A and save into B in inverted the 110010102, then the program finishes with B 010100112-The 1. bit order. For example, if A variable A s...
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