#Swapping Bytes…
16-Apr-89 01:38:12
Sb: #44129-#Swapping Bytes…
Fm: Don Curtis/SYSOP 76703,4321
To: Dave Love 75126,2223
I don't use 68000 assembly, but looking at the Motorola book, it seems
you're looking for the SWAP command which swaps the 2 16bit halves of a
register:
SWAP d0
For the 2nd, where you move the 8 high bits into the 8 low bits
then it would appear an ROL command would work:
ROL #8,d0
You might check them in your manual, they may or may not be what
you're looking for.