comparison doc/manual/x168.html @ 421:3c2e1f24cc7d 3.0-beta2

Added generated files for release
author lost@l-w.ca
date Sun, 19 Sep 2010 01:33:24 -0600
parents
children
comparison
equal deleted inserted replaced
420:7366deedfa85 421:3c2e1f24cc7d
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
2 <HTML
3 ><HEAD
4 ><TITLE
5 >Source Format</TITLE
6 ><META
7 NAME="GENERATOR"
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
9 REL="HOME"
10 TITLE="LW Tool Chain"
11 HREF="index.html"><LINK
12 REL="UP"
13 TITLE="LWASM"
14 HREF="c43.html"><LINK
15 REL="PREVIOUS"
16 TITLE="Dialects"
17 HREF="x161.html"><LINK
18 REL="NEXT"
19 TITLE="Symbols"
20 HREF="x177.html"></HEAD
21 ><BODY
22 CLASS="SECTION"
23 BGCOLOR="#FFFFFF"
24 TEXT="#000000"
25 LINK="#0000FF"
26 VLINK="#840084"
27 ALINK="#0000FF"
28 ><DIV
29 CLASS="NAVHEADER"
30 ><TABLE
31 SUMMARY="Header navigation table"
32 WIDTH="100%"
33 BORDER="0"
34 CELLPADDING="0"
35 CELLSPACING="0"
36 ><TR
37 ><TH
38 COLSPAN="3"
39 ALIGN="center"
40 >LW Tool Chain</TH
41 ></TR
42 ><TR
43 ><TD
44 WIDTH="10%"
45 ALIGN="left"
46 VALIGN="bottom"
47 ><A
48 HREF="x161.html"
49 ACCESSKEY="P"
50 >Prev</A
51 ></TD
52 ><TD
53 WIDTH="80%"
54 ALIGN="center"
55 VALIGN="bottom"
56 >Chapter 3. LWASM</TD
57 ><TD
58 WIDTH="10%"
59 ALIGN="right"
60 VALIGN="bottom"
61 ><A
62 HREF="x177.html"
63 ACCESSKEY="N"
64 >Next</A
65 ></TD
66 ></TR
67 ></TABLE
68 ><HR
69 ALIGN="LEFT"
70 WIDTH="100%"></DIV
71 ><DIV
72 CLASS="SECTION"
73 ><H1
74 CLASS="SECTION"
75 ><A
76 NAME="AEN168"
77 >3.3. Source Format</A
78 ></H1
79 ><P
80 >LWASM accepts plain text files in a relatively free form. It can handle
81 lines terminated with CR, LF, CRLF, or LFCR which means it should be able
82 to assemble files on any platform on which it compiles.</P
83 ><P
84 >Each line may start with a symbol. If a symbol is present, there must not
85 be any whitespace preceding it. It is legal for a line to contain nothing
86 but a symbol.</P
87 ><P
88 >The op code is separated from the symbol by whitespace. If there is
89 no symbol, there must be at least one white space character preceding it.
90 If applicable, the operand follows separated by whitespace. Following the
91 opcode and operand is an optional comment.</P
92 ><P
93 >A comment can also be introduced with a * or a ;. The comment character is
94 optional for end of statement comments. However, if a symbol is the only
95 thing present on the line other than the comment, the comment character is
96 mandatory to prevent the assembler from interpreting the comment as an opcode.</P
97 ><P
98 >For compatibility with the output generated by some C preprocessors, LWASM
99 will also ignore lines that begin with a #. This should not be used as a general
100 comment character, however.</P
101 ><P
102 >The opcode is not treated case sensitively. Neither are register names in
103 the operand fields. Symbols, however, are case sensitive.</P
104 ><P
105 > As of version 2.6, LWASM supports files with line numbers. If line
106 numbers are present, the line must start with a digit. The line number
107 itself must consist only of digits. The line number must then be followed
108 by either the end of the line or exactly one white space character. After
109 that white space character, the lines are interpreted exactly as above. </P
110 ></DIV
111 ><DIV
112 CLASS="NAVFOOTER"
113 ><HR
114 ALIGN="LEFT"
115 WIDTH="100%"><TABLE
116 SUMMARY="Footer navigation table"
117 WIDTH="100%"
118 BORDER="0"
119 CELLPADDING="0"
120 CELLSPACING="0"
121 ><TR
122 ><TD
123 WIDTH="33%"
124 ALIGN="left"
125 VALIGN="top"
126 ><A
127 HREF="x161.html"
128 ACCESSKEY="P"
129 >Prev</A
130 ></TD
131 ><TD
132 WIDTH="34%"
133 ALIGN="center"
134 VALIGN="top"
135 ><A
136 HREF="index.html"
137 ACCESSKEY="H"
138 >Home</A
139 ></TD
140 ><TD
141 WIDTH="33%"
142 ALIGN="right"
143 VALIGN="top"
144 ><A
145 HREF="x177.html"
146 ACCESSKEY="N"
147 >Next</A
148 ></TD
149 ></TR
150 ><TR
151 ><TD
152 WIDTH="33%"
153 ALIGN="left"
154 VALIGN="top"
155 >Dialects</TD
156 ><TD
157 WIDTH="34%"
158 ALIGN="center"
159 VALIGN="top"
160 ><A
161 HREF="c43.html"
162 ACCESSKEY="U"
163 >Up</A
164 ></TD
165 ><TD
166 WIDTH="33%"
167 ALIGN="right"
168 VALIGN="top"
169 >Symbols</TD
170 ></TR
171 ></TABLE
172 ></DIV
173 ></BODY
174 ></HTML
175 >