comparison doc/manual/x126.html @ 178:fd24bb443925 2.2

Added html docs
author lost
date Wed, 04 Mar 2009 03:48:39 +0000
parents
children
comparison
equal deleted inserted replaced
177:d340e9c8191f 178:fd24bb443925
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="c35.html"><LINK
15 REL="PREVIOUS"
16 TITLE="Dialects"
17 HREF="x121.html"><LINK
18 REL="NEXT"
19 TITLE="Symbols"
20 HREF="x135.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="x121.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="x135.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="AEN126"
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 >LWASM does not support line numbers in the file.</P
106 ></DIV
107 ><DIV
108 CLASS="NAVFOOTER"
109 ><HR
110 ALIGN="LEFT"
111 WIDTH="100%"><TABLE
112 SUMMARY="Footer navigation table"
113 WIDTH="100%"
114 BORDER="0"
115 CELLPADDING="0"
116 CELLSPACING="0"
117 ><TR
118 ><TD
119 WIDTH="33%"
120 ALIGN="left"
121 VALIGN="top"
122 ><A
123 HREF="x121.html"
124 ACCESSKEY="P"
125 >Prev</A
126 ></TD
127 ><TD
128 WIDTH="34%"
129 ALIGN="center"
130 VALIGN="top"
131 ><A
132 HREF="index.html"
133 ACCESSKEY="H"
134 >Home</A
135 ></TD
136 ><TD
137 WIDTH="33%"
138 ALIGN="right"
139 VALIGN="top"
140 ><A
141 HREF="x135.html"
142 ACCESSKEY="N"
143 >Next</A
144 ></TD
145 ></TR
146 ><TR
147 ><TD
148 WIDTH="33%"
149 ALIGN="left"
150 VALIGN="top"
151 >Dialects</TD
152 ><TD
153 WIDTH="34%"
154 ALIGN="center"
155 VALIGN="top"
156 ><A
157 HREF="c35.html"
158 ACCESSKEY="U"
159 >Up</A
160 ></TD
161 ><TD
162 WIDTH="33%"
163 ALIGN="right"
164 VALIGN="top"
165 >Symbols</TD
166 ></TR
167 ></TABLE
168 ></DIV
169 ></BODY
170 ></HTML
171 >