In PIC16 series, RISC(Reduced Instruction Set Computer) is adopted and the number of the instructions to use is 35 kinds.
When clicking the mnemonic of each instruction, you can jump to the instruction specification.
The terminology explanation |
Mnemonic | : The assembler language which made an operation code plain |
Operands | : The specification part except the operation code |
MSb | : Most Significant bit |
LSb | : Least Significant bit |
Flag | : The field of the STAUS register |
Mnemonic
Operands | Operation explanation | Instruction code | Flag |
|
Byte-oriented file register operations |
ADDWF | f, d | Add W and f | | C, DC, Z |
ANDWF | f, d | AND W with f | | Z |
CLRF | f | Clear f | | Z |
CLRW | - | Clear W | | Z |
COMF | f, d | Complement f | | Z |
DECF | f, d | Decrement f | | Z |
DECFSZ | f, d | Decrement f, Skip if 0 | |
|
INCF | f, d | Increment f | | Z |
INCFSZ | f, d | Increment f, Skip if 0 | |
|
IORWF | f, d | Inclusive OR W with f | | Z |
MOVF | f, d | Move f | | Z |
MOVWF | f | Move W to f | |
|
NOP | - | No Operation | |
|
RLF | f, d | Rotate Left f through Carry | | C |
RRF | f, d | Rotate Right f through Carry | | C |
SUBWF | f, d | Subtract W from f | | C, DC, Z |
SWAPF | f, d | Swap nibbles in f | |
|
XORWF | f, d | Exclusive OR W with f | | Z |
Bit-oriented file register operations |
BCF | f, b | Bit Clear f | |
|
BSF | f, b | Bit Set f | |
|
BTFSC | f, b | Bit Test f, Skip if Clear | |
|
BTFSS | f, b | Bit Test f, Skip if Set | |
|
Literal and control operations |
ADDLW | k | Add literal and W | | C, DC, Z |
ANDLW | k | AND literal with W | | Z |
CALL | k | Call subroutine | |
|
CLRWDT | - | Clear Watchdog Timer | | |
GOTO | k | Go to address | |
|
IORLW | k | Inclusive OR literal with W | | Z |
MOVLW | k | Move literal to W | |
|
RETFIE | - | Return from interrupt | |
|
RETLW | k | Return with literal in W | |
|
RETURN | - | Return from Subroutine | |
|
SLEEP | - | Go into stanby mode | | |
SUBLW | k | Subtract W from literal | | C, DC, Z |
XORLW | k | Exclusive OR literal with W | | Z |
x : Don't care |
|