SX Users Manual Rev. 3.1
100
© 2000 Scenix Semiconductor, Inc. All rights reserved.
www.scenix.com
Chapter 3 Instruction Set
3.6.30 MOV W,<>fr
Swap High/Low Nibbles of fr and Move to W
Operation:
W = <> fr
Bits affected:
none
Opcode:
0011 100f ffff
Description:
This instruction exchanges the high-order and low-order nibbles (4-bit segments) of
the value in the specified file register and moves the result to W. The file register is
left unchanged.
Cycles:
1
Example:
mov
W,<>$0B
This example swaps the high-order and low-order nibbles of the value in file
register 0Bh and moves the result into W. For example, if the file register contains
A5h, after executing this instruction, W will contain 5Ah.