SX Users Manual Rev. 3.1
124
© 2000 Scenix Semiconductor, Inc. All rights reserved.
www.scenix.com
Chapter 3 Instruction Set
3.6.53 SWAP fr
Swap High/Low Nibbles of fr
Operation:
fr = <> fr
Bits affected:
none
Opcode:
0011 101f ffff
Description:
This instruction exchanges the high-order and low-order nibbles (4-bit segments) of
the specified file register.
Cycles:
1
Example:
swap
$0B
This example swaps the high-order and low-order nibbles of file register 0Bh. For
example, if the register contains A5h, after executing this instruction, the register
will contain 5Ah.