annotate doc/manual/c10.html @ 274:3010e24bb9c5 2.5

Fix crashing on bad expressions on pass 2
author lost
date Mon, 31 Aug 2009 08:30:13 +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 >Introduction</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="PREVIOUS"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
13 TITLE="LW Tool Chain"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
14 HREF="index.html"><LINK
d5392bb5da3c Added generated files
lost
parents:
diff changeset
15 REL="NEXT"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
16 TITLE="Output Formats"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
17 HREF="c18.html"></HEAD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
18 ><BODY
d5392bb5da3c Added generated files
lost
parents:
diff changeset
19 CLASS="CHAPTER"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
20 BGCOLOR="#FFFFFF"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
21 TEXT="#000000"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
22 LINK="#0000FF"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
23 VLINK="#840084"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
24 ALINK="#0000FF"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
25 ><DIV
d5392bb5da3c Added generated files
lost
parents:
diff changeset
26 CLASS="NAVHEADER"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
27 ><TABLE
d5392bb5da3c Added generated files
lost
parents:
diff changeset
28 SUMMARY="Header navigation table"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
29 WIDTH="100%"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
30 BORDER="0"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
31 CELLPADDING="0"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
32 CELLSPACING="0"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
33 ><TR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
34 ><TH
d5392bb5da3c Added generated files
lost
parents:
diff changeset
35 COLSPAN="3"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
36 ALIGN="center"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
37 >LW Tool Chain</TH
d5392bb5da3c Added generated files
lost
parents:
diff changeset
38 ></TR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
39 ><TR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
40 ><TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
41 WIDTH="10%"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
42 ALIGN="left"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
43 VALIGN="bottom"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
44 ><A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
45 HREF="index.html"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
46 ACCESSKEY="P"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
47 >Prev</A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
48 ></TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
49 ><TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
50 WIDTH="80%"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
51 ALIGN="center"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
52 VALIGN="bottom"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
53 ></TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
54 ><TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
55 WIDTH="10%"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
56 ALIGN="right"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
57 VALIGN="bottom"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
58 ><A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
59 HREF="c18.html"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
60 ACCESSKEY="N"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
61 >Next</A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
62 ></TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
63 ></TR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
64 ></TABLE
d5392bb5da3c Added generated files
lost
parents:
diff changeset
65 ><HR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
66 ALIGN="LEFT"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
67 WIDTH="100%"></DIV
d5392bb5da3c Added generated files
lost
parents:
diff changeset
68 ><DIV
d5392bb5da3c Added generated files
lost
parents:
diff changeset
69 CLASS="CHAPTER"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
70 ><H1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
71 ><A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
72 NAME="AEN10"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
73 ></A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
74 >Chapter 1. Introduction</H1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
75 ><P
d5392bb5da3c Added generated files
lost
parents:
diff changeset
76 >The LW tool chain provides utilities for building binaries for MC6809 and
d5392bb5da3c Added generated files
lost
parents:
diff changeset
77 HD6309 CPUs. The tool chain includes a cross-assembler and a cross-linker
d5392bb5da3c Added generated files
lost
parents:
diff changeset
78 which support several styles of output.</P
d5392bb5da3c Added generated files
lost
parents:
diff changeset
79 ><DIV
d5392bb5da3c Added generated files
lost
parents:
diff changeset
80 CLASS="SECTION"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
81 ><H1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
82 CLASS="SECTION"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
83 ><A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
84 NAME="AEN13"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
85 >1.1. History</A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
86 ></H1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
87 ><P
d5392bb5da3c Added generated files
lost
parents:
diff changeset
88 >For a long time, I have had an interest in creating an operating system for
d5392bb5da3c Added generated files
lost
parents:
diff changeset
89 the Coco3. I finally started working on that project around the beginning of
d5392bb5da3c Added generated files
lost
parents:
diff changeset
90 2006. I had a number of assemblers I could choose from. Eventually, I settled
d5392bb5da3c Added generated files
lost
parents:
diff changeset
91 on one and started tinkering. After a while, I realized that assembler was not
d5392bb5da3c Added generated files
lost
parents:
diff changeset
92 going to be sufficient due to lack of macros and issues with forward references.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
93 Then I tried another which handled forward references correctly but still did
d5392bb5da3c Added generated files
lost
parents:
diff changeset
94 not support macros. I looked around at other assemblers and they all lacked
d5392bb5da3c Added generated files
lost
parents:
diff changeset
95 one feature or another that I really wanted for creating my operating system.</P
d5392bb5da3c Added generated files
lost
parents:
diff changeset
96 ><P
d5392bb5da3c Added generated files
lost
parents:
diff changeset
97 >The solution seemed clear at that point. I am a fair programmer so I figured
d5392bb5da3c Added generated files
lost
parents:
diff changeset
98 I could write an assembler that would do everything I wanted an assembler to
d5392bb5da3c Added generated files
lost
parents:
diff changeset
99 do. Thus the LWASM probject was born. After more than two years of on and off
d5392bb5da3c Added generated files
lost
parents:
diff changeset
100 work, version 1.0 of LWASM was released in October of 2008.</P
d5392bb5da3c Added generated files
lost
parents:
diff changeset
101 ><P
d5392bb5da3c Added generated files
lost
parents:
diff changeset
102 >As the aforementioned operating system project progressed further, it became
d5392bb5da3c Added generated files
lost
parents:
diff changeset
103 clear that while assembling the whole project through a single file was doable,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
104 it was not practical. When I found myself playing some fancy games with macros
d5392bb5da3c Added generated files
lost
parents:
diff changeset
105 in a bid to simulate sections, I realized I needed a means of assembling
d5392bb5da3c Added generated files
lost
parents:
diff changeset
106 source files separately and linking them later. This spawned a major development
d5392bb5da3c Added generated files
lost
parents:
diff changeset
107 effort to add an object file support to LWASM. It also spawned the LWLINK
d5392bb5da3c Added generated files
lost
parents:
diff changeset
108 project to provide a means to actually link the files.</P
d5392bb5da3c Added generated files
lost
parents:
diff changeset
109 ></DIV
d5392bb5da3c Added generated files
lost
parents:
diff changeset
110 ></DIV
d5392bb5da3c Added generated files
lost
parents:
diff changeset
111 ><DIV
d5392bb5da3c Added generated files
lost
parents:
diff changeset
112 CLASS="NAVFOOTER"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
113 ><HR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
114 ALIGN="LEFT"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
115 WIDTH="100%"><TABLE
d5392bb5da3c Added generated files
lost
parents:
diff changeset
116 SUMMARY="Footer navigation table"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
117 WIDTH="100%"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
118 BORDER="0"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
119 CELLPADDING="0"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
120 CELLSPACING="0"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
121 ><TR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
122 ><TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
123 WIDTH="33%"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
124 ALIGN="left"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
125 VALIGN="top"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
126 ><A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
127 HREF="index.html"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
128 ACCESSKEY="P"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
129 >Prev</A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
130 ></TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
131 ><TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
132 WIDTH="34%"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
133 ALIGN="center"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
134 VALIGN="top"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
135 ><A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
136 HREF="index.html"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
137 ACCESSKEY="H"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
138 >Home</A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
139 ></TD
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="right"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
143 VALIGN="top"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
144 ><A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
145 HREF="c18.html"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
146 ACCESSKEY="N"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
147 >Next</A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
148 ></TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
149 ></TR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
150 ><TR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
151 ><TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
152 WIDTH="33%"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
153 ALIGN="left"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
154 VALIGN="top"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
155 >LW Tool Chain</TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
156 ><TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
157 WIDTH="34%"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
158 ALIGN="center"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
159 VALIGN="top"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
160 >&nbsp;</TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
161 ><TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
162 WIDTH="33%"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
163 ALIGN="right"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
164 VALIGN="top"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
165 >Output Formats</TD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
166 ></TR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
167 ></TABLE
d5392bb5da3c Added generated files
lost
parents:
diff changeset
168 ></DIV
d5392bb5da3c Added generated files
lost
parents:
diff changeset
169 ></BODY
d5392bb5da3c Added generated files
lost
parents:
diff changeset
170 ></HTML
d5392bb5da3c Added generated files
lost
parents:
diff changeset
171 >