 | AARM User's Guide Discontinued |  |
|
|
| EQU Assembler Statement| Arguments |
symbol EQU expression
| | Description | The EQU statement creates a new symbol named symbol with the value of the expression. Symbols created with EQU may not be redefined. The expression may be a register name or a simple relocatable expression with no forward references. Symbols defined with EQU may be used anywhere in operands, addresses, or expressions. Symbols defined as registers may be used anywhere a register is allowed. If a symbol defined with EQU is made PUBLIC, the expression must evaluate to a constant. Exported symbols include a name and a value but may not include fix-up methods. | | See Also | LIT, PUBLIC, SET | | Example |
VAL EQU 45+3 ; Simple definition
PUBLIC VAL ; Public definition
REG1 EQU R1 ; Register symbol definition
VAR EQU PUTCHAR ; Relocatable symbol definition
|
|
|