annotate doc/manual/x29.html @ 448:5cccf90bf838 3.0 tip

Fixed bug with complex external references generating invalid relocations in the object file
author lost@l-w.ca
date Fri, 05 Nov 2010 22:27:00 -0600
parents b8bf63962a99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
434
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
2 <HTML
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
3 ><HEAD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
4 ><TITLE
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
5 >OS9 Modules</TITLE
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
6 ><META
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
7 NAME="GENERATOR"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
9 REL="HOME"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
10 TITLE="LW Tool Chain"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
11 HREF="index.html"><LINK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
12 REL="UP"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
13 TITLE="Output Formats"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
14 HREF="c18.html"><LINK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
15 REL="PREVIOUS"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
16 TITLE="DECB Binaries"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
17 HREF="x24.html"><LINK
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
18 REL="NEXT"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
19 TITLE="Object Files"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
20 HREF="x35.html"></HEAD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
21 ><BODY
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
22 CLASS="SECTION"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
23 BGCOLOR="#FFFFFF"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
24 TEXT="#000000"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
25 LINK="#0000FF"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
26 VLINK="#840084"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
27 ALINK="#0000FF"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
28 ><DIV
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
29 CLASS="NAVHEADER"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
30 ><TABLE
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
31 SUMMARY="Header navigation table"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
32 WIDTH="100%"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
33 BORDER="0"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
34 CELLPADDING="0"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
35 CELLSPACING="0"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
36 ><TR
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
37 ><TH
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
38 COLSPAN="3"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
39 ALIGN="center"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
40 >LW Tool Chain</TH
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
41 ></TR
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
42 ><TR
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
43 ><TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
44 WIDTH="10%"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
45 ALIGN="left"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
46 VALIGN="bottom"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
47 ><A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
48 HREF="x24.html"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
49 ACCESSKEY="P"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
50 >Prev</A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
51 ></TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
52 ><TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
53 WIDTH="80%"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
54 ALIGN="center"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
55 VALIGN="bottom"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
56 >Chapter 2. Output Formats</TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
57 ><TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
58 WIDTH="10%"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
59 ALIGN="right"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
60 VALIGN="bottom"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
61 ><A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
62 HREF="x35.html"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
63 ACCESSKEY="N"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
64 >Next</A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
65 ></TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
66 ></TR
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
67 ></TABLE
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
68 ><HR
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
69 ALIGN="LEFT"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
70 WIDTH="100%"></DIV
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
71 ><DIV
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
72 CLASS="SECTION"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
73 ><H1
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
74 CLASS="SECTION"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
75 ><A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
76 NAME="AEN29"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
77 >2.3. OS9 Modules</A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
78 ></H1
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
79 ><P
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
80 >&#13;Since version 2.5, LWASM is able to generate OS9 modules. The syntax is
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
81 basically the same as for other assemblers. A module starts with the MOD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
82 directive and ends with the EMOD directive. The OS9 directive is provided
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
83 as a shortcut for writing system calls.&#13;</P
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
84 ><P
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
85 >&#13;LWASM does NOT provide an OS9Defs file. You must provide your own. Also note
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
86 that the common practice of using "ifp1" around the inclusion of the OS9Defs
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
87 file is discouraged as it is pointless and can lead to unintentional
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
88 problems and phasing errors. Because LWASM reads each file exactly once,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
89 there is no benefit to restricting the inclusion to the first assembly pass.&#13;</P
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
90 ><P
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
91 >&#13;It is also critical to understand that unlike many OS9 assemblers, LWASM
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
92 does NOT maintain a separate data address counter. Thus, you must define
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
93 all your data offsets and so on outside of the mod/emod segment. It is,
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
94 therefore, likely that source code targeted at other assemblers will require
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
95 edits to build correctly.&#13;</P
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
96 ><P
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
97 >&#13;LWLINK does not, yet, have the ability to create OS9 modules from object
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
98 files.&#13;</P
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
99 ></DIV
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
100 ><DIV
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
101 CLASS="NAVFOOTER"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
102 ><HR
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
103 ALIGN="LEFT"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
104 WIDTH="100%"><TABLE
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
105 SUMMARY="Footer navigation table"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
106 WIDTH="100%"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
107 BORDER="0"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
108 CELLPADDING="0"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
109 CELLSPACING="0"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
110 ><TR
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
111 ><TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
112 WIDTH="33%"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
113 ALIGN="left"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
114 VALIGN="top"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
115 ><A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
116 HREF="x24.html"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
117 ACCESSKEY="P"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
118 >Prev</A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
119 ></TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
120 ><TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
121 WIDTH="34%"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
122 ALIGN="center"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
123 VALIGN="top"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
124 ><A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
125 HREF="index.html"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
126 ACCESSKEY="H"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
127 >Home</A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
128 ></TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
129 ><TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
130 WIDTH="33%"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
131 ALIGN="right"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
132 VALIGN="top"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
133 ><A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
134 HREF="x35.html"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
135 ACCESSKEY="N"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
136 >Next</A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
137 ></TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
138 ></TR
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
139 ><TR
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
140 ><TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
141 WIDTH="33%"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
142 ALIGN="left"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
143 VALIGN="top"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
144 >DECB Binaries</TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
145 ><TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
146 WIDTH="34%"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
147 ALIGN="center"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
148 VALIGN="top"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
149 ><A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
150 HREF="c18.html"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
151 ACCESSKEY="U"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
152 >Up</A
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
153 ></TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
154 ><TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
155 WIDTH="33%"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
156 ALIGN="right"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
157 VALIGN="top"
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
158 >Object Files</TD
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
159 ></TR
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
160 ></TABLE
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
161 ></DIV
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
162 ></BODY
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
163 ></HTML
b8bf63962a99 Added various generated files for release
lost@l-w.ca
parents:
diff changeset
164 >