English
Language : 

DSPIC30F3010_13 Datasheet, PDF (159/228 Pages) Microchip Technology – High-Performance,16-Bit Digital Signal Controllers
dsPIC30F3010/3011
TABLE 21-2: INSTRUCTION SET OVERVIEW (CONTINUED)
Base
Instr
#
Assembly
Mnemonic
Assembly Syntax
Description
9
BTG
10 BTSC
BTG
BTG
BTSC
f,#bit4
Ws,#bit4
f,#bit4
Bit Toggle f
Bit Toggle Ws
Bit Test f, Skip if Clear
BTSC
Ws,#bit4
Bit Test Ws, Skip if Clear
11 BTSS
BTSS
f,#bit4
Bit Test f, Skip if Set
BTSS
Ws,#bit4
Bit Test Ws, Skip if Set
12 BTST
13 BTSTS
14 CALL
15 CLR
16 CLRWDT
17 COM
18 CP
19 CP0
20 CPB
21 CPSEQ
BTST
BTST.C
BTST.Z
BTST.C
BTST.Z
BTSTS
BTSTS.C
BTSTS.Z
CALL
CALL
CLR
CLR
CLR
CLR
CLRWDT
COM
COM
COM
CP
CP
CP
CP0
CP0
CPB
CPB
CPB
f,#bit4
Ws,#bit4
Ws,#bit4
Ws,Wb
Ws,Wb
f,#bit4
Ws,#bit4
Ws,#bit4
lit23
Wn
f
WREG
Ws
Acc,Wx,Wxd,Wy,Wyd,AWB
f
f,WREG
Ws,Wd
f
Wb,#lit5
Wb,Ws
f
Ws
f
Wb,#lit5
Wb,Ws
CPSEQ Wb, Wn
Bit Test f
Bit Test Ws to C
Bit Test Ws to Z
Bit Test Ws<Wb> to C
Bit Test Ws<Wb> to Z
Bit Test then Set f
Bit Test Ws to C, then Set
Bit Test Ws to Z, then Set
Call Subroutine
Call Indirect Subroutine
f = 0x0000
WREG = 0x0000
Ws = 0x0000
Clear Accumulator
Clear Watchdog Timer
f=f
WREG = f
Wd = Ws
Compare f with WREG
Compare Wb with lit5
Compare Wb with Ws (Wb – Ws)
Compare f with 0x0000
Compare Ws with 0x0000
Compare f with WREG, with Borrow
Compare Wb with lit5, with Borrow
Compare Wb with Ws, with Borrow
(Wb – Ws – C)
Compare Wb with Wn, Skip if =
22 CPSGT
CPSGT Wb, Wn
Compare Wb with Wn, Skip if >
23 CPSLT
CPSLT Wb, Wn
Compare Wb with Wn, Skip if <
24 CPSNE
CPSNE Wb, Wn
Compare Wb with Wn, Skip if ≠
25 DAW
DAW
Wn
Wn = Decimal Adjust Wn
# of
words
# of
cycle
s
Status Flags
Affected
1
1 None
1
1 None
1
1 None
(2 or
3)
1
1 None
(2 or
3)
1
1 None
(2 or
3)
1
1 None
(2 or
3)
1
1Z
1
1C
1
1Z
1
1C
1
1Z
1
1Z
1
1C
1
1Z
2
2 None
1
2 None
1
1 None
1
1 None
1
1 None
1
1 OA,OB,SA,SB
1
1 WDTO,Sleep
1
1 N,Z
1
1 N,Z
1
1 N,Z
1
1 C,DC,N,OV,Z
1
1 C,DC,N,OV,Z
1
1 C,DC,N,OV,Z
1
1 C,DC,N,OV,Z
1
1 C,DC,N,OV,Z
1
1 C,DC,N,OV,Z
1
1 C,DC,N,OV,Z
1
1 C,DC,N,OV,Z
1
1 None
(2 or
3)
1
1 None
(2 or
3)
1
1 None
(2 or
3)
1
1 None
(2 or
3)
1
1C
© 2010 Microchip Technology Inc.
DS70141F-page 159