English
Language : 

PIC18F87K22 Datasheet, PDF (431/548 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Enhanced Flash Microcontrollers with 12-Bit A/D and nanoWatt XLP Technology
PIC18F87K22 FAMILY
FIGURE 29-1:
GENERAL FORMAT FOR INSTRUCTIONS
Byte-oriented file register operations
15
10 9 8 7
0
OPCODE d a
f (FILE #)
d = 0 for result destination to be WREG register
d = 1 for result destination to be file register (f)
a = 0 to force Access Bank
a = 1 for BSR to select bank
f = 8-bit file register address
Byte to Byte move operations (2-word)
15
12 11
OPCODE
0
f (Source FILE #)
15
12 11
0
1111
f (Destination FILE #)
f = 12-bit file register address
Bit-oriented file register operations
15
12 11
98 7
0
OPCODE b (BIT #) a
f (FILE #)
b = 3-bit position of bit in file register (f)
a = 0 to force Access Bank
a = 1 for BSR to select bank
f = 8-bit file register address
Literal operations
15
87
0
OPCODE
k (literal)
k = 8-bit immediate value
Control operations
CALL, GOTO and Branch operations
15
87
0
OPCODE
n<7:0> (literal)
15
12 11
0
1111
n<19:8> (literal)
n = 20-bit immediate value
15
87
0
OPCODE
S n<7:0> (literal)
15
12 11
0
1111
n<19:8> (literal)
S = Fast bit
15
11 10
0
OPCODE
n<10:0> (literal)
15
87
0
OPCODE
n<7:0> (literal)
Example Instruction
ADDWF MYREG, W, B
MOVFF MYREG1, MYREG2
BSF MYREG, bit, B
MOVLW 7Fh
GOTO Label
CALL MYFUNC
BRA MYFUNC
BC MYFUNC
 2010 Microchip Technology Inc.
Preliminary
DS39960B-page 431