English
Language : 

DSPIC30F6010-20I Datasheet, PDF (165/222 Pages) Microchip Technology – dsPIC30F6010 Data Sheet
dsPIC30F6010
TABLE 23-2: INSTRUCTION SET OVERVIEW
Base
Instr
#
Assembly
Mnemonic
Assembly Syntax
Description
# of
words
# of
cycle
s
Status Flags
Affected
46 MOV
47 MOVSAC
48 MPY
49 MPY.N
50 MSC
51 MUL
52 NEG
53 NOP
MOV
f,Wn
Move f to Wn
1
MOV
f
Move f to f
1
MOV
f,WREG
Move f to WREG
1
MOV
#lit16,Wn
Move 16-bit literal to Wn
1
MOV.b #lit8,Wn
Move 8-bit literal to Wn
1
MOV
Wn,f
Move Wn to f
1
MOV
Wso,Wdo
Move Ws to Wd
1
MOV
WREG,f
Move WREG to f
1
MOV.D
Wns,Wd
Move Double from W(ns):W(ns+1) to Wd
1
MOV.D
Ws,Wnd
Move Double from Ws to W(nd+1):W(nd)
1
MOVSAC Acc,Wx,Wxd,Wy,Wyd,AWB
Prefetch and store accumulator
1
MPY
Wm*Wn,Acc,Wx,Wxd,Wy,Wyd
Multiply Wm by Wn to Accumulator
1
MPY
Square Wm to Accumulator
1
Wm*Wm,Acc,Wx,Wxd,Wy,Wyd
MPY.N
Wm*Wn,Acc,Wx,Wxd,Wy,Wyd -(Multiply Wm by Wn) to Accumulator
1
MSC
Wm*Wm,Acc,Wx,Wxd,Wy,Wyd, Multiply and Subtract from Accumulator
1
AWB
MUL.SS Wb,Ws,Wnd
{Wnd+1, Wnd} = signed(Wb) * signed(Ws)
1
MUL.SU Wb,Ws,Wnd
{Wnd+1, Wnd} = signed(Wb) * unsigned(Ws) 1
MUL.US Wb,Ws,Wnd
{Wnd+1, Wnd} = unsigned(Wb) * signed(Ws) 1
MUL.UU Wb,Ws,Wnd
{Wnd+1, Wnd} = unsigned(Wb) *
1
unsigned(Ws)
MUL.SU Wb,#lit5,Wnd
{Wnd+1, Wnd} = signed(Wb) * unsigned(lit5) 1
MUL.UU Wb,#lit5,Wnd
{Wnd+1, Wnd} = unsigned(Wb) *
1
unsigned(lit5)
MUL
f
W3:W2 = f * WREG
1
NEG
Acc
Negate Accumulator
1
NEG
f
f=f+1
1
NEG
f,WREG
WREG = f + 1
1
NEG
Ws,Wd
Wd = Ws + 1
1
NOP
No Operation
1
1 None
1 N,Z
1 N,Z
1 None
1 None
1 None
1 None
1 N,Z
2 None
2 None
1 None
1 OA,OB,OAB,
SA,SB,SAB
1 OA,OB,OAB,
SA,SB,SAB
1 None
1 OA,OB,OAB,
SA,SB,SAB
1 None
1 None
1 None
1 None
1 None
1 None
1 None
1 OA,OB,OAB,
SA,SB,SAB
1 C,DC,N,OV,Z
1 C,DC,N,OV,Z
1 C,DC,N,OV,Z
1 None
NOPR
No Operation
1
1 None
54 POP
55 PUSH
56 PWRSAV
57 RCALL
58 REPEAT
59 RESET
POP
f
POP
Wdo
POP.D Wnd
POP.S
PUSH
PUSH
PUSH.D
PUSH.S
PWRSAV
RCALL
RCALL
REPEAT
REPEAT
RESET
f
Wso
Wns
#lit1
Expr
Wn
#lit14
Wn
Pop f from top-of-stack (TOS)
1
Pop from top-of-stack (TOS) to Wdo
1
Pop from top-of-stack (TOS) to
1
W(nd):W(nd+1)
Pop Shadow Registers
1
Push f to top-of-stack (TOS)
1
Push Wso to top-of-stack (TOS)
1
Push W(ns):W(ns+1) to top-of-stack (TOS)
1
Push Shadow Registers
1
Go into Sleep or Idle mode
1
Relative Call
1
Computed Call
1
Repeat Next Instruction lit14+1 times
1
Repeat Next Instruction (Wn)+1 times
1
Software device Reset
1
1 None
1 None
2 None
1 All
1 None
1 None
2 None
1 None
1 WDTO,Sleep
2 None
2 None
1 None
1 None
1 None
60 RETFIE
RETFIE
Return from interrupt
1
3 (2) None
61 RETLW
62 RETURN
RETLW
RETURN
#lit10,Wn
Return with literal in Wn
Return from Subroutine
1
3 (2) None
1
3 (2) None
© 2006 Microchip Technology Inc.
DS70119E-page 163