Table of Contents Previous topic Next topic
CROSS ASSEMBLER->Assembler Expressions->Symbols
Symbols in the expression take the value assigned to them in other parts of the source program.
Two special symbols generated by the cross assembler are '$' and NARG (or narg).
'$' When this is used as a symbol it takes the current value of the program counter.
NARG This is only allowed within a macro definition and takes the value, during the expansion of the macro, equal to the number of arguments used in the macro call.
In addition, if a symbol represents a bit addressable byte, it can be used to address a bit within that byte by appending a period to it followed by an expression specifying the position of the bit within the byte.
bit3 equ 3
test data 20h