English
Language : 

PIC24FJ16MC101_12 Datasheet, PDF (246/350 Pages) Microchip Technology – 16-bit Microcontrollers (up to 32 KB Flash and 2 KB SRAM)
PIC24FJ16MC101/102 AND PIC24FJ32MC101/102/104
TABLE 24-2: INSTRUCTION SET OVERVIEW
Assembly
Mnemonic
Assembly Syntax
Description
ADD
ADDC
AND
ASR
BCLR
BRA
BSET
BSW
ADD
ADD
ADD
ADD
ADD
ADD
ADD
ADDC
ADDC
ADDC
ADDC
ADDC
AND
AND
AND
AND
AND
ASR
ASR
ASR
ASR
ASR
BCLR
BCLR
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BRA
BSET
BSET
BSW.C
BSW.Z
Acc
f
f,WREG
#lit10,Wn
Wb,Ws,Wd
Wb,#lit5,Wd
Wso,#Slit4,Acc
f
f,WREG
#lit10,Wn
Wb,Ws,Wd
Wb,#lit5,Wd
f
f,WREG
#lit10,Wn
Wb,Ws,Wd
Wb,#lit5,Wd
f
f,WREG
Ws,Wd
Wb,Wns,Wnd
Wb,#lit5,Wnd
f,#bit4
Ws,#bit4
C,Expr
GE,Expr
GEU,Expr
GT,Expr
GTU,Expr
LE,Expr
LEU,Expr
LT,Expr
LTU,Expr
N,Expr
NC,Expr
NN,Expr
NOV,Expr
NZ,Expr
OA,Expr
OB,Expr
OV,Expr
SA,Expr
SB,Expr
Expr
Z,Expr
Wn
f,#bit4
Ws,#bit4
Ws,Wb
Ws,Wb
Add Accumulators
f = f + WREG
WREG = f + WREG
Wd = lit10 + Wd
Wd = Wb + Ws
Wd = Wb + lit5
16-bit Signed Add to Accumulator
f = f + WREG + (C)
WREG = f + WREG + (C)
Wd = lit10 + Wd + (C)
Wd = Wb + Ws + (C)
Wd = Wb + lit5 + (C)
f = f .AND. WREG
WREG = f .AND. WREG
Wd = lit10 .AND. Wd
Wd = Wb .AND. Ws
Wd = Wb .AND. lit5
f = Arithmetic Right Shift f
WREG = Arithmetic Right Shift f
Wd = Arithmetic Right Shift Ws
Wnd = Arithmetic Right Shift Wb by Wns
Wnd = Arithmetic Right Shift Wb by lit5
Bit Clear f
Bit Clear Ws
Branch if Carry
Branch if greater than or equal
Branch if unsigned greater than or equal
Branch if greater than
Branch if unsigned greater than
Branch if less than or equal
Branch if unsigned less than or equal
Branch if less than
Branch if unsigned less than
Branch if Negative
Branch if Not Carry
Branch if Not Negative
Branch if Not Overflow
Branch if Not Zero
Branch if Accumulator A overflow
Branch if Accumulator B overflow
Branch if Overflow
Branch if Accumulator A saturated
Branch if Accumulator B saturated
Branch Unconditionally
Branch if Zero
Computed Branch
Bit Set f
Bit Set Ws
Write C bit to Ws<Wb>
Write Z bit to Ws<Wb>
# of # of Status Flags
Words Cycles Affected
1
1 OA,OB,SA,SB
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 OA,OB,SA,SB
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
N,Z
1
1
N,Z
1
1
N,Z
1
1
N,Z
1
1
N,Z
1
1
C,N,OV,Z
1
1
C,N,OV,Z
1
1
C,N,OV,Z
1
1
N,Z
1
1
N,Z
1
1
None
1
1
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
1 (2)
None
1
2
None
1
1 (2)
None
1
2
None
1
1
None
1
1
None
1
1
None
1
1
None
DS39997C-page 246
Preliminary
© 2011-2012 Microchip Technology Inc.