User manual
Assembler directives ST Assembler-Linker
76/89 Doc ID 11392 Rev 4
Description
This directive forces the word(s) in its argument list into the object code at the current
address. The arguments may be composed of complex expressions that may even
include external labels. If the argument was an expression and had a value greater
than FFFF then the lower 16 bits of the expression are used and no errors are
generated. WORD sends the words with the least significant byte first.
It's generally used for defining data tables. Synonymous with DC.W.
Example WORD 1,2,3,4,$1234 ;0001,0002,0003,0004,1234
See also DC.B, BYTE, STRING, DC.W, LONG, DC.L
Table 79. WORDS
Purpose Default new label length word.
Format WORDS
Description
When a label is defined, four SEPARATE attributes are defined with its scope (internal
or external defined) value (actual numerical value of the label) relativity (the label is
ABSOLUTE or RELATIVE), and lastly length (BYTE, WORD, or LONG).
All these attributes except length are defined explicitly before or at the definition: you
can force the label to be of a certain length by giving a dot suffix, for example 'label.b'
forces it to byte length.
You may also define a default state for label length: the label is created to this length
unless otherwise forced with a suffix. The default is set to WORD at the start of the
assembly, but may be CHANGED by BYTES, WORDS or LONGS to the appropriate
length.
Example
WORDS
lab1 EQU 5 ; word length for lab1
See also BYTES, WORDS
Table 80. .XALL
Purpose List only code producing macro lines.
Format .XALL
Description
This directive forces a reduced listing of a macro expansion each time a macro is in-
voked. Only those lines of the macro that generated object code are listed. This instruc-
tion itself is not listed. This directive does not generate assembly code or data.
Example .XALL
See also .LALL,.SALL
Table 81. ZILOG
Purpose Force Zilog-style radix specifiers.
Format ZILOG
Table 78. WORD