06.02.2013 Views

C166/ST10 Cross-Assembler, Linker/Locator, Utilities ... - Tasking

C166/ST10 Cross-Assembler, Linker/Locator, Utilities ... - Tasking

C166/ST10 Cross-Assembler, Linker/Locator, Utilities ... - Tasking

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• • • • • • • •<br />

<strong>Assembler</strong> Controls 6−3<br />

6.1 INTRODUCTION<br />

<strong>Assembler</strong> controls are provided to alter the default behavior of the<br />

assembler. They can be specified on the command line or on control lines,<br />

embedded in the source file. A control line is a line with a dollar sign ($)<br />

on the first position. Such a line is not processed like a normal assembly<br />

source line, but as an assembler control line. Only one control per source<br />

line is allowed. An assembler control line may contain comments.<br />

The controls are classified as: primary or general.<br />

Primary controls affect the overall behavior of the assembler and remain<br />

in effect throughout the assembly. For this reason, primary controls<br />

may only be used on the invocation line or at the beginning of a<br />

source file, before the assembly starts. If you specify a primary control<br />

more than once, a warning message is given and the last definition is<br />

used. This enables you to override primary controls via the invocation<br />

line.<br />

General controls are used to control the assembler during assembly.<br />

Control lines containing general controls may appear anywhere in a<br />

source file and are also allowed in the invocation. When you specify<br />

general controls via the invocation line the corresponding general<br />

controls in the source file are ignored.<br />

The controls GEN, NOGEN, GENONLY and INCLUDE are implemented in<br />

the macro preprocessor. If one of these controls is encountered, the<br />

assembler generates a warning.<br />

The examples in this chapter are given for a PC environment.<br />

An overview of all assembler controls is listed in the next section.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!