Sat May 11, 2013 1:12 am
if <expr> ; directives for conditional assembly
else
endif
Example.
if version == 100
movlw D’10’
movwf io1,A
else
movlw D’26’
movwf io2,A
endif
end ; indicates the end of the program
reset code 0x00
goto start
#define <name> [<string>] ; defines a text substitution string
#define loop_cnt 30
#define sum3(x,y,z) (x + y + z)
#define seed 103
#undefine <label> ; deletes a substitution string
#include “<include_file>” (or #include <include_file>)
#include “lcd_util.asm” ; include the lcd_util.asm file from current directory
#include <p18F8680.inc> ; include the file p18F8680.inc from the installation
; directory of mplab.
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.