PIC17CXX Instruction Set


SWAPF


Syntax : SWAPF f,d

Description : The upper and lower nibbles of register 'f' are exchanged.
              If 'd' is 0 the result is stored in the W register.
              If 'd' is 1 the result is stored back in register 'f'.

Function : f<3:0> → d<7:4>,   f<7:4> → d<3:0>

Hex code : 1Cff

Bit field:
0001 110d ffff ffff

Words : 1

Cycles : 1

Affected flags : None

See also :   ---
Previous    Upper level    Next