APPENDIX 5. The PIC 18 Series instruction set
TABLE A5.1. The PIC 18 Series Standard Instruction Set Summary
Mnemonic, operandsDescriptionCycles16-bit instruction wordStatus affectedNotes
MsbLsb
BYTE-ORIENTED FILE REGISTER OPERATIONS
ADDWFf,d,aAdd WREG and f001001da0ffffffffC, DC, Z, OV, N1,2
ADDWFCf,d,aAdd WREG and Carry bit to f00100daffffffffC, DC, Z, OV, N1,2
ANDWFf,d,aAND WREG with f000101daffffffffZ, N1,2
CLRFf,aClear f0110101affffffffZ2
COMFf,d,aComplement f000111daffffffffZ, N1,2
CPFSEQf,aCompare f with WREG, skip =1 (2 or 3)0110001affffffffNone4
CPFSGTf,aCompare f with WREG, skip >1 (2 or 3)0110010affffffffNone4
CPFSLTf,aCompare f with WREG, skip <1 (2 or 3)0110000affffffffNone1,2
DECFf,d,aDecrement f000001daffffffffC, DC, Z, OV, N1,2,3,4
DECFSZ ...

Get Designing Embedded Systems with PIC Microcontrollers, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.