272
|
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="c43.html"><LINK
|
|
15 REL="PREVIOUS"
|
|
16 TITLE="LWASM"
|
|
17 HREF="c43.html"><LINK
|
|
18 REL="NEXT"
|
|
19 TITLE="Source Format"
|
|
20 HREF="x151.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="c43.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="x151.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="AEN144"
|
|
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. While there is general
|
|
82 agreement on the pneumonics for most of the 6309 instructions, there is some
|
|
83 variance with the block transfer instructions. TFM for all four variations
|
|
84 seems to have gained the most traction and, thus, this is the form that is
|
|
85 recommended for LWASM. However, it also supports COPY, COPY-, IMP, EXP,
|
|
86 TFRP, TFRM, TFRS, and TFRR. It further adds COPY+ as a synomym for COPY,
|
|
87 IMPLODE for IMP, and EXPAND for EXP.</P
|
|
88 ><P
|
|
89 >By default, LWASM accepts 6309 instructions. However, using the
|
|
90 <CODE
|
|
91 CLASS="PARAMETER"
|
|
92 >--6809</CODE
|
|
93 > parameter, you can cause it to throw errors on
|
|
94 6309 instructions instead.</P
|
|
95 ><P
|
|
96 >The standard addressing mode specifiers are supported. These are the
|
|
97 hash sign ("#") for immediate mode, the less than sign ("<") for forced
|
|
98 eight bit modes, and the greater than sign (">") for forced sixteen bit modes.</P
|
|
99 ><P
|
|
100 >Additionally, LWASM supports using the asterisk ("*") to indicate
|
|
101 base page addressing. This should not be used in hand-written source code,
|
|
102 however, because it is non-standard and may or may not be present in future
|
|
103 versions of LWASM.</P
|
|
104 ></DIV
|
|
105 ><DIV
|
|
106 CLASS="NAVFOOTER"
|
|
107 ><HR
|
|
108 ALIGN="LEFT"
|
|
109 WIDTH="100%"><TABLE
|
|
110 SUMMARY="Footer navigation table"
|
|
111 WIDTH="100%"
|
|
112 BORDER="0"
|
|
113 CELLPADDING="0"
|
|
114 CELLSPACING="0"
|
|
115 ><TR
|
|
116 ><TD
|
|
117 WIDTH="33%"
|
|
118 ALIGN="left"
|
|
119 VALIGN="top"
|
|
120 ><A
|
|
121 HREF="c43.html"
|
|
122 ACCESSKEY="P"
|
|
123 >Prev</A
|
|
124 ></TD
|
|
125 ><TD
|
|
126 WIDTH="34%"
|
|
127 ALIGN="center"
|
|
128 VALIGN="top"
|
|
129 ><A
|
|
130 HREF="index.html"
|
|
131 ACCESSKEY="H"
|
|
132 >Home</A
|
|
133 ></TD
|
|
134 ><TD
|
|
135 WIDTH="33%"
|
|
136 ALIGN="right"
|
|
137 VALIGN="top"
|
|
138 ><A
|
|
139 HREF="x151.html"
|
|
140 ACCESSKEY="N"
|
|
141 >Next</A
|
|
142 ></TD
|
|
143 ></TR
|
|
144 ><TR
|
|
145 ><TD
|
|
146 WIDTH="33%"
|
|
147 ALIGN="left"
|
|
148 VALIGN="top"
|
|
149 >LWASM</TD
|
|
150 ><TD
|
|
151 WIDTH="34%"
|
|
152 ALIGN="center"
|
|
153 VALIGN="top"
|
|
154 ><A
|
|
155 HREF="c43.html"
|
|
156 ACCESSKEY="U"
|
|
157 >Up</A
|
|
158 ></TD
|
|
159 ><TD
|
|
160 WIDTH="33%"
|
|
161 ALIGN="right"
|
|
162 VALIGN="top"
|
|
163 >Source Format</TD
|
|
164 ></TR
|
|
165 ></TABLE
|
|
166 ></DIV
|
|
167 ></BODY
|
|
168 ></HTML
|
|
169 > |