PIC12F609-H/MD MICROCHIP [Microchip Technology], PIC12F609-H/MD Datasheet - Page 137

no-image

PIC12F609-H/MD

Manufacturer Part Number
PIC12F609-H/MD
Description
8-Pin, Flash-Based 8-Bit CMOS Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
SUBWF
Syntax:
Operands:
Operation:
Status Affected: C, DC, Z
Description:
SWAPF
Syntax:
Operands:
Operation:
Status Affected:
Description:
XORLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
 2010 Microchip Technology Inc.
Subtract W from f
[ label ] SUBWF f,d
0 f 127
d  [0,1]
(f) - (W) destination)
Subtract (2’s complement method)
W register from register ‘f’. If ‘d’ is
‘0’, the result is stored in the W
register. If ‘d’ is ‘1’, the result is
stored back in register ‘f’.
C = 0
C = 1
DC = 0
DC = 1
(f<3:0>)  (destination<7:4>),
The upper and lower nibbles of
Swap Nibbles in f
[ label ] SWAPF f,d
0  f  127
d  [0,1]
(f<7:4>)  (destination<3:0>)
None
register ‘f’ are exchanged. If ‘d’ is
‘0’, the result is placed in the W
register. If ‘d’ is ‘1’, the result is
placed in register ‘f’.
Exclusive OR literal with W
[ label ] XORLW k
0 k 255
(W) .XOR. k W)
Z
The contents of the W register
are XOR’ed with the eight-bit
literal ‘k’. The result is placed in
the W register.
W  f
W  f
W<3:0>  f<3:0>
W<3:0>  f<3:0>
PIC12F609/615/617/12HV609/615
XORWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
[ label ] XORWF
0  f  127
d  [0,1]
(W) .XOR. (f) destination)
Z
Exclusive OR the contents of the
W register with register ‘f’. If ‘d’ is
‘0’, the result is stored in the W
register. If ‘d’ is ‘1’, the result is
stored back in register ‘f’.
Exclusive OR W with f
DS41302D-page 137
f,d

Related parts for PIC12F609-H/MD