09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Programming Commands <strong>XENIX</strong> Programming<br />

as - Invokes the <strong>XENIX</strong> assembler.<br />

Syntax<br />

as [options ] file.s<br />

Description<br />

as is the <strong>XENIX</strong> assembler. It reads and assembles 80<strong>86</strong>/<strong>2<strong>86</strong></strong> assem bly language<br />

instructions from the source file named file.s and creates either a linkable object file<br />

named file.o or an executable program named a.out. The extension .s is recommended<br />

but not required. If this extension is not given, as displays a warning and continues<br />

processing.<br />

These options are available:<br />

-1<br />

-nl num<br />

Creates an assembly listing file called file.L. This file lists the source<br />

instructions, the assembled (binary) code for each instruction, and any<br />

assembly errors.<br />

Sets the maximum length of external symbols to num. Names longer than<br />

num are truncated before being copied to the external symbol table.<br />

-g Directs the assembler to interpret undefined symbols as globally-defined<br />

external symbols. If not given, undefined symbols cause an assembly error.<br />

-Mm Creates a middle model object file suitable for linking with other middle<br />

model object files. The resulting text segment is named FILE_TEXT, where<br />

FILE is the file argument, but in uppercase letters.<br />

-NT name<br />

-NM name<br />

-o objfile<br />

B-18<br />

Sets the text segment name of the assembled code to name. This option<br />

overrides the default text segment.<br />

Sets the module name of the assembled code to name. The option overrides<br />

the default module name.<br />

Copies the assembled instructions to the file named objfile. This file is<br />

executable only if no errors occur during the assembly. This option overrides<br />

the default object name.

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

Saved successfully!

Ooh no, something went wrong!