VARIABLE - Declare Symbol Variable
Syntax
variable <label>[=<expr>][,<label>[=<expr>]...]
Description
Creates symbols for use in MPASM assembler expressions. Variables and constants may be used interchangeably in expressions.
The variable directive creates a symbol that is functionally equivalent to those created by the
set
directive. The difference is that the variable directive does not require that symbols be initialized when they are declared.The
variable
values cannot be updated within an operand. You must place variable assignments, increments, and decrements on separate lines.Example
Please refer to the example given for the
constant
directive.See Also
Microchip Technology Inc. Microchip's Web Site Voice: (480) 792-7200 Fax: (480) 899-9210 Microchip's E-mail Address |