annotate doc/manual/x29.html @ 276:23034db7dd8a 2.5

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