English
Language : 

PIC24EP256GU810-I Datasheet, PDF (489/622 Pages) Electronic Film Capacitors, Inc. – 16-Bit Microcontrollers and Digital Signal Controllers with High-Speed PWM, USB and Advanced Analog
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
TABLE 30-2: INSTRUCTION SET OVERVIEW (CONTINUED)
Base
Instr
#
Assembly
Mnemonic
Assembly Syntax
Description
# of
# of Status Flags
Words Cycles(2) Affected
8
BSW
BSW.C Ws,Wb
Write C bit to Ws<Wb>
1
1
None
BSW.Z Ws,Wb
Write Z bit to Ws<Wb>
1
1
None
9
BTG
BTG
f,#bit4
Bit Toggle f
1
1
None
BTG
Ws,#bit4
Bit Toggle Ws
1
1
None
10 BTSC
BTSC
f,#bit4
Bit Test f, Skip if Clear
1
1
(2 or 3)
None
BTSC
Ws,#bit4
Bit Test Ws, Skip if Clear
1
1
(2 or 3)
None
11 BTSS
BTSS
f,#bit4
Bit Test f, Skip if Set
1
1
(2 or 3)
None
BTSS
Ws,#bit4
Bit Test Ws, Skip if Set
1
1
(2 or 3)
None
12 BTST
BTST
f,#bit4
Bit Test f
1
1
Z
BTST.C Ws,#bit4
Bit Test Ws to C
1
1
C
BTST.Z Ws,#bit4
Bit Test Ws to Z
1
1
Z
BTST.C Ws,Wb
Bit Test Ws<Wb> to C
1
1
C
BTST.Z Ws,Wb
Bit Test Ws<Wb> to Z
1
1
Z
13 BTSTS
BTSTS f,#bit4
Bit Test then Set f
1
1
Z
BTSTS.C Ws,#bit4
Bit Test Ws to C, then Set
1
1
C
BTSTS.Z Ws,#bit4
Bit Test Ws to Z, then Set
1
1
Z
14 CALL
CALL
lit23
Call subroutine
2
4
SFA
CALL
Wn
Call indirect subroutine
1
4
SFA
CALL.L Wn
Call indirect subroutine (long address)
1
4
SFA
15 CLR
CLR
f
f = 0x0000
1
1
None
CLR
WREG
WREG = 0x0000
1
1
None
CLR
Ws
CLR
Acc,Wx,Wxd,Wy,Wyd,AWB(1)
Ws = 0x0000
Clear Accumulator
1
1
None
1
1
OA,OB,SA,SB
16 CLRWDT CLRWDT
Clear Watchdog Timer
1
1
WDTO,Sleep
17 COM
COM
f
f=f
1
1
N,Z
COM
f,WREG
WREG = f
1
1
N,Z
COM
Ws,Wd
Wd = Ws
1
1
N,Z
18 CP
CP
f
Compare f with WREG
1
1
C,DC,N,OV,Z
CP
Wb,#lit8
Compare Wb with lit8
1
1
C,DC,N,OV,Z
CP
Wb,Ws
Compare Wb with Ws (Wb – Ws)
1
1
C,DC,N,OV,Z
19 CP0
CP0
f
Compare f with 0x0000
1
1
C,DC,N,OV,Z
CP0
Ws
Compare Ws with 0x0000
1
1
C,DC,N,OV,Z
20 CPB
CPB
f
Compare f with WREG, with Borrow
1
1
C,DC,N,OV,Z
CPB
Wb,#lit8
Compare Wb with lit8, with Borrow
1
1
C,DC,N,OV,Z
CPB
Wb,Ws
Compare Wb with Ws, with Borrow
(Wb – Ws – C)
1
1
C,DC,N,OV,Z
21 CPSEQ
CPSEQ Wb,Wn
Compare Wb with Wn, skip if =
1
1
(2 or 3)
None
CPBEQ
22 CPSGT
CPBEQ
CPSGT
Wb,Wn,Expr
Wb,Wn
Compare Wb with Wn, branch if =
Compare Wb with Wn, skip if >
1
1 (5)
1
1
(2 or 3)
None
None
CPBGT
CPBGT Wb,Wn,Expr
Compare Wb with Wn, branch if >
1
1 (5)
None
23 CPSLT
CPSLT Wb,Wn
Compare Wb with Wn, skip if <
1
1
(2 or 3)
None
CPBLT
CPBLT Wb,Wn,Expr
Compare Wb with Wn, branch if <
1
1 (5)
None
24 CPSNE
CPSNE Wb,Wn
Compare Wb with Wn, skip if 
1
1
(2 or 3)
None
CPBNE
CPBNE Wb,Wn,Expr
Compare Wb with Wn, branch if 
1
1 (5)
None
Note 1: This instruction is available in dsPIC33EPXXX(GP/MC/MU)806/810/814 devices only.
2: Read and Read-Modify-Write (e.g., bit operations and logical operations) on non-CPU SFRs incur an additional instruction cycle.
 2009-2012 Microchip Technology Inc.
DS70616G-page 489