 |
 |
Instructions for the Pic´s
|
INSTRUCTIONS THAT HANDLE REGISTrOS |
|
Mnemonic and operandos |
Description |
Cycles |
Flags |
|
ADDWF
|
f, d
|
Sum W and f
|
1
|
C, DC, Z
|
|
ANDWF
|
f, d
|
AND W with f
|
1
|
Z
|
|
CLRF
|
f
|
Flock f
|
1
|
Z
|
|
CLRW
|
---
|
Flock W
|
1
|
Z
|
|
COMF
|
f, d
|
It complements f
|
1
|
Z
|
|
DECF
|
f, d
|
Decrementa f
|
1
|
Z
|
|
DECFSZ
|
f, d
|
Decrementa f, if he is 0 jumps
|
1 (2)
|
None
|
|
INCF
|
f, d
|
It increases f
|
1
|
Z
|
|
INCFSZ
|
f, d
|
It increases f, if he is 0 jumps
|
1
|
None
|
|
IORWF
|
f, d
|
OR between W and f
|
1
|
Z
|
|
MOVF
|
f, d
|
It moves f
|
1
|
Z
|
|
MOVWF
|
f
|
It moves W to f
|
1
|
None
|
|
NOP
|
---
|
It does not operate
|
1
|
None
|
|
RLF
|
f, d
|
Defeat f to izqda. through carry
|
1
|
C
|
|
RRF
|
f, d
|
Defeat f to dcha. through carry
|
1
|
C
|
|
SUBWF
|
f, d
|
Subtraction to f reg. W
|
1
|
C, DC, Z
|
|
SWAPF
|
f, d
|
It interchanges f
|
1
|
None
|
|
XORWF
|
f, d
|
XOR of W with f
|
1
|
Z
|
|
INSTRUCTIONS THAT MANIPULATE BITS |
|
BCF
|
f, b
|
Flock bit of f
|
1
|
None
|
|
BSF
|
f, b
|
The bit of f puts to 1
|
1
|
None
|
|
BTFSC
|
f, b |
It verifies a bit of f and it jumps if he is 0
|
1 (2)
|
None
|
|
BTFSS
|
f, b
|
It verifies a bit of f and it jumps if he is 1
|
1 (2)
|
None
|
|
INSTRUCTIONS OF CONTROL AND IMMEDIATE OPERANDOS |
|
ANDLW
|
k
|
Immediate AND with W
|
1
|
Z
|
|
CALL
|
k
|
Call to subroutine
|
2
|
None
|
|
CLRWDT
|
k
|
Watchdog flock
|
1
|
TO, PS
|
|
GOTO
|
k
|
Unconditional jump
|
2
|
None
|
|
IORLW
|
k
|
Immediate OR with W
|
1
|
Z
|
|
MOVLW
|
k
|
It moves to W an immediate value
|
1
|
None
|
|
OPTION
|
k
|
It loads registry OPTION
|
1
|
None
|
|
RETLW
|
k
|
Return and load of W
|
2
|
None
|
|
SLEEP
|
---
|
It happens to rest state
|
1
|
TO, PS
|
|
TRIS
|
f
|
It loads the registry
|
1
|
None
|
|
XORLW
|
k
|
Exclusive OR to W
|
1
|
Z
|
|