pic16c62b-20i-ss Microchip Technology Inc., pic16c62b-20i-ss Datasheet - Page 74

no-image

pic16c62b-20i-ss

Manufacturer Part Number
pic16c62b-20i-ss
Description
28-pin 8-bit Cmos Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet
PIC16C62B/72A
SUBLW
Syntax:
Operands:
Operation:
Status Affected: C, DC, Z
Description:
SUBWF
Syntax:
Operands:
Operation:
Status
Affected:
Description:
SWAPF
Syntax:
Operands:
Operation:
Status Affected:
Description:
DS35008B-page 74
Subtract W from f
[ label ]
0
d
(f) - (W)
C, DC, Z
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'.
Subtract W from Literal
[ label ]
0
k - (W)
The W register is subtracted (2’s com-
plement method) from the eight bit lit-
eral 'k'. The result is placed in the W
register.
Swap Nibbles in f
[ label ] SWAPF f,d
0
d
(f<3:0>)
(f<7:4>)
None
The upper and lower nibbles of regis-
ter 'f' are exchanged. If 'd' is 0, the
result is placed in W register. If 'd' is 1,
the result is placed in register 'f'.
f
k
[0,1]
f
[0,1]
127
255
127
SUBWF f,d
SUBLW k
W)
destination)
(destination<7:4>),
(destination<3:0>)
Preliminary
XORLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
XORWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Exclusive OR W with f
[ label ]
0
d
(W) .XOR. (f)
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 regis-
ter 'f'.
Exclusive OR Literal with W
[ label ]
0
(W) .XOR. k
Z
The contents of the W register are
XOR’ed with the eight bit literal 'k'.
The result is placed in the W regis-
ter.
f
[0,1]
k
127
1999 Microchip Technology Inc.
255
XORWF
XORLW k
destination)
W)
f,d

Related parts for pic16c62b-20i-ss