CompuServe Messages

#Swapping Bytes…

    15-Apr-89 23:13:50
Sb: #Swapping Bytes…
Fm: Dave Love 75126,2223
To: ALL
To anyone with 68000 assembler experience: What is the quickest way to swap the bytes in the low-order word of a register? For example, if D0 contains $xxyy, what is the quickest way to change it to $yyxx? Along the same lines, what is the quickest way to convert D0=$wwxxyyzz to D0=$zzyyxxww?