1AS(1)                       General Commands Manual                      AS(1)
2
3
4

NAME

6       as - assembler
7

SYNOPSIS

9       as [ - ] [ -o objfile ] file ...
10

DESCRIPTION

12       As  assembles  the  concatenation  of the named files.  If the optional
13       first argument - is used, all undefined symbols  in  the  assembly  are
14       treated as global.
15
16       The  output  of  the  assembly  is left on the file objfile; if that is
17       omitted, a.out is used.  It is executable if no errors occurred  during
18       the assembly, and if there were no unresolved external references.
19

FILES

21       /lib/as2       pass 2 of the assembler
22       /tmp/atm[1-3]? temporary
23       a.out          object
24

SEE ALSO

26       ld(1), nm(1), adb(1), a.out(5)
27       UNIX Assembler Manual by D. M. Ritchie
28

DIAGNOSTICS

30       When an input file cannot be read, its name followed by a question mark
31       is typed and assembly ceases.  When syntactic or semantic errors occur,
32       a  single-character diagnostic is typed out together with the line num‐
33       ber and the file name in which it occurred.  Errors  in  pass  1  cause
34       cancellation of pass 2.  The possible errors are:
35
36       )  Parentheses error
37       ]  Parentheses error
38       <  String not terminated properly
39       *  Indirection used illegally
40       .  Illegal assignment to `.'
41       a  Error in address
42       b  Branch instruction is odd or too remote
43       e  Error in expression
44       f  Error in local (`f' or `b') type symbol
45       g  Garbage (unknown) character
46       i  End of file inside an if
47       m  Multiply defined symbol as label
48       o  Word quantity assembled at odd address
49       p  `.' different in pass 1 and 2
50       r  Relocation error
51       u  Undefined symbol
52       x  Syntax error
53

BUGS

55       Syntax  errors  can  cause incorrect line numbers in following diagnos‐
56       tics.
57
58
59
60                                     PDP11                               AS(1)
Impressum