
dsPIC30F3014/4013
DS70138G-page 164
2010 Microchip Technology Inc.
29
DIV
DIV.S
Wm,Wn
Signed 16/16-Bit Integer Divide
1
18
N,Z,C,OV
DIV.SD
Wm,Wn
Signed 32/16-Bit Integer Divide
1
18
N,Z,C,OV
DIV.U
Wm,Wn
Unsigned 16/16-Bit Integer Divide
1
18
N,Z,C,OV
DIV.UD
Wm,Wn
Unsigned 32/16-Bit Integer Divide
1
18
N,Z,C,OV
30
DIVF
Wm,Wn
Signed 16/16-bit Fractional Divide
1
18
N,Z,C,OV
31
DO
#lit14,Expr
Do Code to PC+Expr, lit14 + 1 Times
2
None
DO
Wn,Expr
Do Code to PC+Expr, (Wn) + 1 Times
2
None
32
ED
Wm*Wm,Acc,Wx,Wy,Wxd
Euclidean Distance (no accumulate)
1
OA,OB,OAB,
SA,SB,SAB
33
EDAC
Wm*Wm,Acc,Wx,Wy,Wxd
Euclidean Distance
1
OA,OB,OAB,
SA,SB,SAB
34
EXCH
Wns,Wnd
Swap Wns with Wnd
1
None
35
FBCL
Ws,Wnd
Find Bit Change from Left (MSb) Side
1
C
36
FF1L
Ws,Wnd
Find First One from Left (MSb) Side
1
C
37
FF1R
Ws,Wnd
Find First One from Right (LSb) Side
1
C
38
GOTO
Expr
Go to address
2
None
GOTO
Wn
Go to indirect
1
2
None
39
INC
f
f = f + 1
1
C,DC,N,OV,Z
INC
f,WREG
WREG = f + 1
1
C,DC,N,OV,Z
INC
Ws,Wd
Wd = Ws + 1
1
C,DC,N,OV,Z
40
INC2
f
f = f + 2
1
C,DC,N,OV,Z
INC2
f,WREG
WREG = f + 2
1
C,DC,N,OV,Z
INC2
Ws,Wd
Wd = Ws + 2
1
C,DC,N,OV,Z
41
IOR
f
f = f .IOR. WREG
1
N,Z
IOR
f,WREG
WREG = f .IOR. WREG
1
N,Z
IOR
#lit10,Wn
Wd = lit10 .IOR. Wd
1
N,Z
IOR
Wb,Ws,Wd
Wd = Wb .IOR. Ws
1
N,Z
IOR
Wb,#lit5,Wd
Wd = Wb .IOR. lit5
1
N,Z
42
LAC
Wso,#Slit4,Acc
Load Accumulator
1
OA,OB,OAB,
SA,SB,SAB
43
LNK
#lit14
Link Frame Pointer
1
None
44
LSR
f
f = Logical Right Shift f
1
C,N,OV,Z
LSR
f,WREG
WREG = Logical Right Shift f
1
C,N,OV,Z
LSR
Ws,Wd
Wd = Logical Right Shift Ws
1
C,N,OV,Z
LSR
Wb,Wns,Wnd
Wnd = Logical Right Shift Wb by Wns
1
N,Z
LSR
Wb,#lit5,Wnd
Wnd = Logical Right Shift Wb by lit5
1
N,Z
45
MAC
Wm*Wn,Acc,Wx,Wxd,Wy,Wyd
,
AWB
Multiply and Accumulate
1
OA,OB,OAB,
SA,SB,SAB
MAC
Wm*Wm,Acc,Wx,Wxd,Wy,Wyd
Square and Accumulate
1
OA,OB,OAB,
SA,SB,SAB
46
MOV
f,Wn
Move f to Wn
1
None
MOV
f
Move f to f
1
N,Z
MOV
f,WREG
Move f to WREG
1
N,Z
MOV
#lit16,Wn
Move 16-Bit Literal to Wn
1
None
MOV.b
#lit8,Wn
Move 8-Bit Literal to Wn
1
None
MOV
Wn,f
Move Wn to f
1
None
MOV
Wso,Wdo
Move Ws to Wd
1
None
MOV
WREG,f
Move WREG to f
1
N,Z
MOV.D
Wns,Wd
Move Double from W(ns):W(ns+1) to Wd
1
2
None
MOV.D
Ws,Wnd
Move Double from Ws to W(nd+1):W(nd)
1
2
None
47
MOVSAC
Acc,Wx,Wxd,Wy,Wyd,AWB
Prefetch and Store Accumulator
1
None
TABLE 21-2:
INSTRUCTION SET OVERVIEW (CONTINUED)
Base
Instr
#
Assembly
Mnemoni
c
Assembly Syntax
Description
# of
Words
# of
Cycles
Status Flags
Affected