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