User manual

Assembler directives ST Assembler-Linker
74/89 Doc ID 11392 Rev 4
Table 72. STRING
Purpose Define a byte-level string.
Format STRING <exp or “string”>,[,<exp or “string”>...]
Description
This directive forces the byte(s) in its argument list into the object code at the current
address. The arguments may be composed of complex expressions, which may even
include external labels. If the argument was an expression and had a value greater
than 255 the lower 8 bits of the expression are used and no errors are generated.
String argument(s) must be surrounded by double-quotes: these are translated into
ASCII and processed byte by byte. It's generally used for defining data tables.
Synonymous BYTE and DC.B.
Example
STRING 1,2,3 ; generates 01,02,03
STRING “HELLO” ; generates 48,45,4C,4C,4F
STRING “HELLO”,0 ; generates 48,45,4C,4C,4F,00
See also DC.B, BYTE, WORD, LONG, DC.W, DC.L, FCS
Table 73. SUBTTL
Purpose Define a subtitle for listing heading.
Format SUBTTL “<Subtitle string>”
Description
This directive is related to the TITLE directive: its argument is used as a subtitle at the
beginning of each page on a listing. We recommend that individual subtitles are
generated for each module in a program, while the TITLE is defined once in the
include file called by all the modules. This directive does not generate assembly code
or data.
Example SUBTTL “A/D control routines”
See also TITLE
Table 74. .TAB
Purpose Set listing field lengths.
Format .TAB <label>,<Opcode>,<operand>,<comment>
Description
Sets the size of the four source code fields for listings. The defaults of 0, 8, 16, 24 are
for 80-column printer; if yours can go wider, you need to tell the assembler using this
directive. The four fields are the width of the label field, the opcode field, operand and
comment. This directive does not generate assembly code or data.
Example .tab 10,6,16,40
See also .LIST, .NOLIST
Table 75. TEXAS
Purpose Texas Instruments-style radix specifier.
Format TEXAS