A byte in memory at address $9000.
Write a program to clear bits 7 and 6, set bits 5 and 4, and toggle bits 3, 2, 1, and 0.
This is what I have, and it does not work.
ORG $9000
MOVE.B #00, D0
MOVE #7, D1
BCLR #7, D0
NEXT BTST D1,D0
BEQ ZERO
BCHG #7,D0
ZERO SUB.B #1,D1
BCC NEXT
EXIT TRAP #14
END $9000
Any help would be much appreciated