SLAU131V October 2004 – February 2020
.asg R13, stack_ptr ; stack pointer
The .eval directive evaluates the expression and assigns the string value of the result to the substitution symbol. If the expression is not well defined, the assembler generates an error and assigns the null string to the symbol. The syntax of the .eval directive is:
.evalwell-defined expression, substitution symbol |
Example 4 shows arithmetic being performed on substitution symbols.