Crossware

Table of Contents        Previous topic       Next topic       

ASSEMBLER DIRECTIVES->Other Assembler Directives->SET

SET       Define Symbol Value (Variable)

The SET directive will define the symbol in the label field to have the value of the expression in the operand field.  Unlike with the EQU directive, the SET directive allows the symbol to subsequently be redefined by another SET directive.

Format:
    
<label>SET<expression><comment>

In addition the SET directive can be used to define a register symbol.  For example if you include the line:

RCounter     SET     R2

at the top of you assembler code then you can use RCounter whenever you would otherwise use R2.