PIC16CXX 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<0:3> → d<4:7>,   f<4:7> → d<0:3>

Hex code : 0Eff

Bit field:
00 1110 dfff ffff

Words : 1

Cycles : 1

Affected flags : None

See also :   ---
Previous    Upper level    Next