English
Language : 

PIC24HJ64GP506-I Datasheet, PDF (229/292 Pages) Microchip Technology – High-Performance, 16-Bit Microcontrollers
PIC24HJXXXGPX06/X08/X10
TABLE 22-2: INSTRUCTION SET OVERVIEW (CONTINUED)
Base
Instr
#
Assembly
Mnemonic
Assembly Syntax
Description
47
RCALL
RCALL Expr
RCALL Wn
48
REPEAT REPEAT #lit14
REPEAT Wn
49
RESET
RESET
50
RETFIE RETFIE
51
RETLW
RETLW #lit10,Wn
52
RETURN RETURN
53
RLC
RLC
f
RLC
f,WREG
RLC
Ws,Wd
54
RLNC
RLNC
f
RLNC
f,WREG
RLNC
Ws,Wd
55
RRC
RRC
f
RRC
f,WREG
RRC
Ws,Wd
56
RRNC
RRNC
f
RRNC
f,WREG
RRNC
Ws,Wd
57
SE
SE
Ws,Wnd
58
SETM
SETM
f
SETM
WREG
SETM
Ws
59
SL
SL
f
SL
f,WREG
SL
Ws,Wd
SL
Wb,Wns,Wnd
SL
Wb,#lit5,Wnd
60
SUB
SUB
f
SUB
f,WREG
SUB
#lit10,Wn
SUB
Wb,Ws,Wd
SUB
Wb,#lit5,Wd
61
SUBB
SUBB
f
Relative Call
Computed Call
Repeat Next Instruction lit14 + 1 times
Repeat Next Instruction (Wn) + 1 times
Software device Reset
Return from interrupt
Return with literal in Wn
Return from Subroutine
f = Rotate Left through Carry f
WREG = Rotate Left through Carry f
Wd = Rotate Left through Carry Ws
f = Rotate Left (No Carry) f
WREG = Rotate Left (No Carry) f
Wd = Rotate Left (No Carry) Ws
f = Rotate Right through Carry f
WREG = Rotate Right through Carry f
Wd = Rotate Right through Carry Ws
f = Rotate Right (No Carry) f
WREG = Rotate Right (No Carry) f
Wd = Rotate Right (No Carry) Ws
Wnd = sign-extended Ws
f = 0xFFFF
WREG = 0xFFFF
Ws = 0xFFFF
f = Left Shift f
WREG = Left Shift f
Wd = Left Shift Ws
Wnd = Left Shift Wb by Wns
Wnd = Left Shift Wb by lit5
f = f – WREG
WREG = f – WREG
Wn = Wn – lit10
Wd = Wb – Ws
Wd = Wb – lit5
f = f – WREG – (C)
SUBB
f,WREG
WREG = f – WREG – (C)
SUBB
#lit10,Wn
Wn = Wn – lit10 – (C)
SUBB
Wb,Ws,Wd
Wd = Wb – Ws – (C)
62
SUBR
SUBB
SUBR
SUBR
SUBR
SUBR
Wb,#lit5,Wd
f
f,WREG
Wb,Ws,Wd
Wb,#lit5,Wd
Wd = Wb – lit5 – (C)
f = WREG – f
WREG = WREG – f
Wd = Ws – Wb
Wd = lit5 – Wb
63
SUBBR
SUBBR f
f = WREG – f – (C)
SUBBR f,WREG
WREG = WREG – f – (C)
SUBBR Wb,Ws,Wd
Wd = Ws – Wb – (C)
SUBBR Wb,#lit5,Wd
64
SWAP
SWAP.b Wn
SWAP
Wn
65
TBLRDH TBLRDH Ws,Wd
Wd = lit5 – Wb – (C)
Wn = nibble swap Wn
Wn = byte swap Wn
Read Prog<23:16> to Wd<7:0>
# of # of Status Flags
Words Cycles Affected
1
2
None
1
2
None
1
1
None
1
1
None
1
1
None
1
3 (2)
None
1
3 (2)
None
1
3 (2)
None
1
1
C,N,Z
1
1
C,N,Z
1
1
C,N,Z
1
1
N,Z
1
1
N,Z
1
1
N,Z
1
1
C,N,Z
1
1
C,N,Z
1
1
C,N,Z
1
1
N,Z
1
1
N,Z
1
1
N,Z
1
1
C,N,Z
1
1
None
1
1
None
1
1
None
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
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
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 C,DC,N,OV,Z
1
1 C,DC,N,OV,Z
1
1 None
1
1 None
1
2 None
© 2009 Microchip Technology Inc.
DS70175H-page 227