as: Set
1
1 7.80 '.set SYMBOL, EXPRESSION'
1 ==============================
1
1 Set the value of SYMBOL to EXPRESSION. This changes SYMBOL's value and
1 type to conform to EXPRESSION. If SYMBOL was flagged as external, it
1 remains flagged (⇒Symbol Attributes).
1
1 You may '.set' a symbol many times in the same assembly provided that
1 the values given to the symbol are constants. Values that are based on
1 expressions involving other symbols are allowed, but some targets may
1 restrict this to only being done once per assembly. This is because
1 those targets do not set the addresses of symbols at assembly time, but
1 rather delay the assignment until a final link is performed. This
1 allows the linker a chance to change the code in the files, changing the
1 location of, and the relative distance between, various different
1 symbols.
1
1 If you '.set' a global symbol, the value stored in the object file is
1 the last value stored into it.
1
1 On Z80 'set' is a real instruction, use 'SYMBOL defl EXPRESSION'
1 instead.
1