SET - Define an Assembler Variable

MPASM Assembler

SET - Define an Assembler Variable

Syntax

<label> set <expr>

Description

<label> is assigned the value of the valid MPASM assembler expression specified by <expr>. The set directive is functionally equivalent to the equ directive except that set values may be subsequently altered by other set directives.

Example

area set 0

width set 0x12

length set 0x14

area set length * width

length set length + 1

See Also

EQU VARIABLE


Microchip Technology Inc.
Microchip's Web Site
Voice: (480) 792-7200
Fax: (480) 899-9210
Microchip's E-mail Address
PreviousNext