285
|
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 >Dialects</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="LWASM"
|
|
17 HREF="c35.html"><LINK
|
|
18 REL="NEXT"
|
|
19 TITLE="Source Format"
|
|
20 HREF="x126.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="c35.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="x126.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="AEN121"
|
|
77 >3.2. Dialects</A
|
|
78 ></H1
|
|
79 ><P
|
|
80 >LWASM supports all documented MC6809 instructions as defined by Motorola.
|
|
81 It also supports all known HD6309 instructions. There is some variation,
|
|
82 however, in the pneumonics used for the block transfer instructions. LWASM
|
|
83 uses TFM for all four of them as do several other assemblers. Others, such
|
|
84 as CCASM, use four separate opcodes for it (compare: copy+, copy-, implode,
|
|
85 and explode). There are advantages to both methods. However, it seems like
|
|
86 TFM has the most traction and thus, this is what LWASM supports. Support
|
|
87 for such variations may be added in the future.</P
|
|
88 ><P
|
|
89 >The standard addressing mode specifiers are supported. These are the
|
|
90 hash sign ("#") for immediate mode, the less than sign ("<") for forced
|
|
91 eight bit modes, and the greater than sign (">") for forced sixteen bit modes.</P
|
|
92 ><P
|
|
93 >Additionally, LWASM supports using the asterisk ("*") to indicate
|
|
94 base page addressing. This should not be used in hand-written source code,
|
|
95 however, because it is non-standard and may or may not be present in future
|
|
96 versions of LWASM.</P
|
|
97 ></DIV
|
|
98 ><DIV
|
|
99 CLASS="NAVFOOTER"
|
|
100 ><HR
|
|
101 ALIGN="LEFT"
|
|
102 WIDTH="100%"><TABLE
|
|
103 SUMMARY="Footer navigation table"
|
|
104 WIDTH="100%"
|
|
105 BORDER="0"
|
|
106 CELLPADDING="0"
|
|
107 CELLSPACING="0"
|
|
108 ><TR
|
|
109 ><TD
|
|
110 WIDTH="33%"
|
|
111 ALIGN="left"
|
|
112 VALIGN="top"
|
|
113 ><A
|
|
114 HREF="c35.html"
|
|
115 ACCESSKEY="P"
|
|
116 >Prev</A
|
|
117 ></TD
|
|
118 ><TD
|
|
119 WIDTH="34%"
|
|
120 ALIGN="center"
|
|
121 VALIGN="top"
|
|
122 ><A
|
|
123 HREF="index.html"
|
|
124 ACCESSKEY="H"
|
|
125 >Home</A
|
|
126 ></TD
|
|
127 ><TD
|
|
128 WIDTH="33%"
|
|
129 ALIGN="right"
|
|
130 VALIGN="top"
|
|
131 ><A
|
|
132 HREF="x126.html"
|
|
133 ACCESSKEY="N"
|
|
134 >Next</A
|
|
135 ></TD
|
|
136 ></TR
|
|
137 ><TR
|
|
138 ><TD
|
|
139 WIDTH="33%"
|
|
140 ALIGN="left"
|
|
141 VALIGN="top"
|
|
142 >LWASM</TD
|
|
143 ><TD
|
|
144 WIDTH="34%"
|
|
145 ALIGN="center"
|
|
146 VALIGN="top"
|
|
147 ><A
|
|
148 HREF="c35.html"
|
|
149 ACCESSKEY="U"
|
|
150 >Up</A
|
|
151 ></TD
|
|
152 ><TD
|
|
153 WIDTH="33%"
|
|
154 ALIGN="right"
|
|
155 VALIGN="top"
|
|
156 >Source Format</TD
|
|
157 ></TR
|
|
158 ></TABLE
|
|
159 ></DIV
|
|
160 ></BODY
|
|
161 ></HTML
|
|
162 > |