
2010 Microchip Technology Inc.
DS70138G-page 165
dsPIC30F3014/4013
48
MPY
Wm*Wn,Acc,Wx,Wxd,Wy,Wyd
Multiply Wm by Wn to Accumulator
1
OA,OB,OAB,
SA,SB,SAB
MPY
Wm*Wm,Acc,Wx,Wxd,Wy,Wyd
Square Wm to Accumulator
1
OA,OB,OAB,
SA,SB,SAB
49
MPY.N
Wm*Wn,Acc,Wx,Wxd,Wy,Wyd
-(Multiply Wm by Wn) to Accumulator
1
None
50
MSC
Wm*Wm,Acc,Wx,Wxd,Wy,Wyd
,
AWB
Multiply and Subtract from Accumulator
1
OA,OB,OAB,
SA,SB,SAB
51
MUL
MUL.SS
Wb,Ws,Wnd
{Wnd+1, Wnd} = Signed(Wb) * Signed(Ws)
1
None
MUL.SU
Wb,Ws,Wnd
{Wnd+1, Wnd} = Signed(Wb) *
Unsigned(Ws)
11
None
MUL.US
Wb,Ws,Wnd
{Wnd+1, Wnd} = Unsigned(Wb) *
Signed(Ws)
11
None
MUL.UU
Wb,Ws,Wnd
{Wnd+1, Wnd} = Unsigned(Wb) *
Unsigned(Ws)
11
None
MUL.SU
Wb,#lit5,Wnd
{Wnd+1, Wnd} = Signed(Wb) *
Unsigned(lit5)
11
None
MUL.UU
Wb,#lit5,Wnd
{Wnd+1, Wnd} = Unsigned(Wb) *
Unsigned(lit5)
11
None
MUL
f
W3:W2 = f * WREG
1
None
52
NEG
Acc
Negate Accumulator
1
OA,OB,OAB,
SA,SB,SAB
NEG
f
f = f + 1
1
C,DC,N,OV,Z
NEG
f,WREG
WREG = f + 1
1
C,DC,N,OV,Z
NEG
Ws,Wd
Wd = Ws + 1
1
C,DC,N,OV,Z
53
NOP
No Operation
1
None
NOPR
No Operation
1
None
54
POP
f
Pop f from Top-of-Stack (TOS)
1
None
POP
Wdo
Pop from Top-of-Stack (TOS) to Wdo
1
None
POP.D
Wnd
Pop from Top-of-Stack (TOS) to
W(nd):W(nd+1)
12
None
POP.S
Pop Shadow Registers
1
All
55
PUSH
f
Push f to Top-of-Stack (TOS)
1
None
PUSH
Wso
Push Wso to Top-of-Stack (TOS)
1
None
PUSH.D
Wns
Push W(ns):W(ns+1) to Top-of-Stack (TOS)
1
2
None
PUSH.S
Push Shadow Registers
1
None
56
PWRSAV
#lit1
Go into Sleep or Idle mode
1
WDTO, Sleep
57
RCALL
Expr
Relative Call
1
2
None
RCALL
Wn
Computed Call
1
2
None
58
REPEAT
#lit14
Repeat Next Instruction lit14+1 Times
1
None
REPEAT
Wn
Repeat Next Instruction (Wn)+1 Times
1
None
59
RESET
Software Device Reset
1
None
60
RETFIE
Return from Interrupt
1
3 (2)
None
61
RETLW
#lit10,Wn
Return with Literal in Wn
1
3 (2)
None
62
RETURN
Return from Subroutine
1
3 (2)
None
63
RLC
f
f = Rotate Left through Carry f
1
C,N,Z
RLC
f,WREG
WREG = Rotate Left through Carry f
1
C,N,Z
RLC
Ws,Wd
Wd = Rotate Left through Carry Ws
1
C,N,Z
64
RLNC
f
f = Rotate Left (No Carry) f
1
N,Z
RLNC
f,WREG
WREG = Rotate Left (No Carry) f
1
N,Z
RLNC
Ws,Wd
Wd = Rotate Left (No Carry) Ws
1
N,Z
65
RRC
f
f = Rotate Right through Carry f
1
C,N,Z
RRC
f,WREG
WREG = Rotate Right through Carry f
1
C,N,Z
RRC
Ws,Wd
Wd = Rotate Right through Carry Ws
1
C,N,Z
TABLE 21-2:
INSTRUCTION SET OVERVIEW (CONTINUED)
Base
Instr
#
Assembly
Mnemoni
c
Assembly Syntax
Description
# of
Words
# of
Cycles
Status Flags
Affected