|
PIC16LF18854 Datasheet, PDF (601/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture | |||
|
◁ |
PIC16(L)F18856/76
RRF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Rotate Right f through Carry
[ label ] RRF f,d
0 ï£ f ï£ 127
d ï [0,1]
See description below
C
The contents of register âfâ are rotated
one bit to the right through the Carry
flag. If âdâ is â0â, the result is placed in
the W register. If âdâ is â1â, the result is
placed back in register âfâ.
C
Register f
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Description:
Enter Sleep mode
[ label ] SLEEP
None
00h ï® WDT,
0 ï® WDT prescaler,
1 ï® TO,
0 ï® PD
TO, PD
The power-down Status bit, PD is
cleared. Time-out Status bit, TO is
set. Watchdog Timer and its
prescaler are cleared.
See Section 8.2 âSleep Modeâ for
more information.
SUBLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Subtract W from literal
[ label ] SUBLW k
0 ï£ï k ï£ï 255
k - (W) ï®ï ï¨W)
C, DC, Z
The W register is subtracted (2âs
complement method) from the 8-bit
literal âkâ. The result is placed in the W
register.
C=0
C=1
DC = 0
DC = 1
Wï¾k
Wï£k
W<3:0> ï¾ k<3:0>
W<3:0> ï£ k<3:0>
SUBWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Subtract W from f
[ label ] SUBWF f,d
0 ï£ï f ï£ï 127
d ï [0,1]
(f) - (W) ï®ï ï¨destination)
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.
C=0
C=1
DC = 0
DC = 1
Wï¾f
Wï£f
W<3:0> ï¾ f<3:0>
W<3:0> ï£ f<3:0>
SUBWFB
Syntax:
Operands:
Operation:
Status Affected:
Description:
Subtract W from f with Borrow
SUBWFB f {,d}
0 ï£ f ï£ 127
d ï [0,1]
(f) â (W) â (B) ï®ï dest
C, DC, Z
Subtract W and the BORROW flag
(CARRY) from register âfâ (2âs
complement method). If âdâ is â0â, the
result is stored in W. If âdâ is â1â, the
result is stored back in register âfâ.
ï£ 2016 Microchip Technology Inc.
Preliminary
DS40001824A-page 601
|
▷ |