IFDEF - Execute If Symbol has Been Defined
Syntax
ifdef <label>
Description
If
<label>
has been previously defined, usually by issuing a#define
directive or by setting the value on the MPASM assembler command line, the conditional path is taken. Assembly will continue until a matchingelse
orendif
directive is encountered.Example
#define testing 1 ; set testing "on"
:
ifdef testing
<execute test code> ; this path would be executed.
endif
See Also
Microchip Technology Inc. Microchip's Web Site Voice: (480) 792-7200 Fax: (480) 899-9210 Microchip's E-mail Address |