Instruction Set Architecture—IP2022 User’s Manual 224 www.ubicom.com SWAP W,fr Swap High,Low Nibbles of fr into W Operation: W = fr3:0 || fr7:4 Bits affected: None Opcode: 0011 100f ffff ffff Description: This  instruction  exchanges  the  high-order  and
low-order nibbles (4-bit fields) of the value in the
specified  data  memory  location  and  moves  the
result  to  W.  The  data  memory  location  is  left
unchanged.
Cycles: 1 Example: swap  W,0x099 This example swaps the high-order and low-order
nibbles  of  the  value  in  data  memory  location
0x099 and moves the result into W. For example,
if  the  data  memory  location  holds  0xA5,  after
executing this instruction, W will hold 0x5A.