Rev. 1.50, 10/04, page 332 of 448
temp = (R[m]>>16)&0x0000FFFF;
R[n] = R[m]<<16;
R[n] |= temp;
PC += 2;
}
Example:
SWAP.B R0,R1 ;Before execution R0 = H'12345678
;After execution R1 = H'12347856
SWAP.W R0,R1 ;Before execution R0 = H'12345678
;After execution R1 = H'56781234