
 2010 Microchip Technology Inc.
DS70135G-page 169
dsPIC30F4011/4012
9
BTG
f,#bit4
Bit Toggle f
1
None
BTG
Ws,#bit4
Bit Toggle Ws
1
None
10
BTSC
f,#bit4
Bit Test f, Skip if Clear
1
(2 or 3)
None
BTSC
Ws,#bit4
Bit Test Ws, Skip if Clear
1
(2 or 3)
None
11
BTSS
f,#bit4
Bit Test f, Skip if Set
1
(2 or 3)
None
BTSS
Ws,#bit4
Bit Test Ws, Skip if Set
1
(2 or 3)
None
12
BTST
f,#bit4
Bit Test f
1
Z
BTST.C
Ws,#bit4
Bit Test Ws to C
1
C
BTST.Z
Ws,#bit4
Bit Test Ws to Z
1
Z
BTST.C
Ws,Wb
Bit Test Ws<Wb> to C
1
C
BTST.Z
Ws,Wb
Bit Test Ws<Wb> to Z
1
Z
13
BTSTS
f,#bit4
Bit Test then Set f
1
Z
BTSTS.C
Ws,#bit4
Bit Test Ws to C, then Set
1
C
BTSTS.Z
Ws,#bit4
Bit Test Ws to Z, then Set
1
Z
14
CALL
lit23
Call subroutine
2
None
CALL
Wn
Call indirect subroutine
1
2
None
15
CLR
f
f = 0x0000
1
None
CLR
WREG
WREG = 0x0000
1
None
CLR
Ws
Ws = 0x0000
1
None
CLR
Acc,Wx,Wxd,Wy,Wyd,AWB
Clear Accumulator
1
OA, OB, SA, SB
16
CLRWDT
Clear Watchdog Timer
1
WDTO, Sleep
17
COM
f
f = f
11
N, Z
COM
f,WREG
WREG = f
11
N, Z
COM
Ws,Wd
Wd = Ws
11
N, Z
18
CP
f
Compare f with WREG
1
C, DC, N, OV, Z
CP
Wb,#lit5
Compare Wb with lit5
1
C, DC, N, OV, Z
CP
Wb,Ws
Compare Wb with Ws (Wb – Ws)
1
C, DC, N, OV, Z
19
CP0
f
Compare f with 0x0000
1
C, DC, N, OV, Z
CP0
Ws
Compare Ws with 0x0000
1
C, DC, N, OV, Z
20
CPB
f
Compare f with WREG, with Borrow
1
C, DC, N, OV, Z
CPB
Wb,#lit5
Compare Wb with lit5, with Borrow
1
C, DC, N, OV, Z
CPB
Wb,Ws
Compare Wb with Ws, with Borrow
(Wb – Ws – C)
1
C, DC, N, OV, Z
21
CPSEQ
Wb, Wn
Compare Wb with Wn, skip if =
1
(2 or 3)
None
22
CPSGT
Wb, Wn
Compare Wb with Wn, skip if >
1
(2 or 3)
None
23
CPSLT
Wb, Wn
Compare Wb with Wn, skip if <
1
(2 or 3)
None
24
CPSNE
Wb, Wn
Compare Wb with Wn, skip if
≠
11
(2 or 3)
None
25
DAW
Wn
Wn = decimal adjust Wn
1
C
26
DEC
f
f = f –1
1
C, DC, N, OV, Z
DEC
f,WREG
WREG = f –1
1
C, DC, N, OV, Z
DEC
Ws,Wd
Wd = Ws – 1
1
C, DC, N, OV, Z
27
DEC2
f
f = f – 2
1
C, DC, N, OV, Z
DEC2
f,WREG
WREG = f – 2
1
C, DC, N, OV, Z
DEC2
Ws,Wd
Wd = Ws – 2
1
C, DC, N, OV, Z
28
DISI
#lit14
Disable Interrupts for k instruction cycles
1
None
TABLE 22-2:
INSTRUCTION SET OVERVIEW (CONTINUED)
Base
Instr
#
Assembly
Mnemonic
Assembly Syntax
Description
# of
words
# of
cycles
Status Flags
Affected