455
|
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 >Convenience Instructions</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="c62.html"><LINK
|
|
15 REL="PREVIOUS"
|
|
16 TITLE="Assembler Modes and Pragmas"
|
|
17 HREF="x659.html"><LINK
|
|
18 REL="NEXT"
|
|
19 TITLE="Cycle Counts"
|
|
20 HREF="x805.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="x659.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="x805.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="CONVINST"
|
|
77 >3.11. Convenience Instructions</A
|
|
78 ></H1
|
|
79 ><P
|
|
80 > Similar to the 6800 compatibility instructions (pragma 6800compat) these
|
|
81 pragma 6809conv and pragma 6309conv enable convenience extensions to the
|
|
82 6809 and 6309 instruction set. Originally intended for compatibility with
|
|
83 the MACRO-80c assembler, these have proven useful in large codebases that
|
|
84 target both the 6809 and the 6309.</P
|
|
85 ><P
|
|
86 > The 6809 extensions are straightforward with the exception of "TSTD" which
|
|
87 assembles as "STD -2,S". A benefit of using these is they will "just work"
|
|
88 and take on their 6309 equivalent when you enable 6309 assembly mode.
|
|
89 Supported instructions: ASRD, CLRD, COMD, LSLD, LSRD, NEGD, TSTD.</P
|
|
90 ><P
|
|
91 > 6309 extensions are based on common patterns described by Chris Burke and
|
|
92 Darren Atkinson in their 6309 documentation and include the following
|
|
93 instructions: ASRQ, CLRQ, COMQ, LSLE, LSLF, LSLQ, LSRQ, NEGE,
|
|
94 NEGF, NEGW, NEGQ, TSTQ.</P
|
|
95 ></DIV
|
|
96 ><DIV
|
|
97 CLASS="NAVFOOTER"
|
|
98 ><HR
|
|
99 ALIGN="LEFT"
|
|
100 WIDTH="100%"><TABLE
|
|
101 SUMMARY="Footer navigation table"
|
|
102 WIDTH="100%"
|
|
103 BORDER="0"
|
|
104 CELLPADDING="0"
|
|
105 CELLSPACING="0"
|
|
106 ><TR
|
|
107 ><TD
|
|
108 WIDTH="33%"
|
|
109 ALIGN="left"
|
|
110 VALIGN="top"
|
|
111 ><A
|
|
112 HREF="x659.html"
|
|
113 ACCESSKEY="P"
|
|
114 >Prev</A
|
|
115 ></TD
|
|
116 ><TD
|
|
117 WIDTH="34%"
|
|
118 ALIGN="center"
|
|
119 VALIGN="top"
|
|
120 ><A
|
|
121 HREF="index.html"
|
|
122 ACCESSKEY="H"
|
|
123 >Home</A
|
|
124 ></TD
|
|
125 ><TD
|
|
126 WIDTH="33%"
|
|
127 ALIGN="right"
|
|
128 VALIGN="top"
|
|
129 ><A
|
|
130 HREF="x805.html"
|
|
131 ACCESSKEY="N"
|
|
132 >Next</A
|
|
133 ></TD
|
|
134 ></TR
|
|
135 ><TR
|
|
136 ><TD
|
|
137 WIDTH="33%"
|
|
138 ALIGN="left"
|
|
139 VALIGN="top"
|
|
140 >Assembler Modes and Pragmas</TD
|
|
141 ><TD
|
|
142 WIDTH="34%"
|
|
143 ALIGN="center"
|
|
144 VALIGN="top"
|
|
145 ><A
|
|
146 HREF="c62.html"
|
|
147 ACCESSKEY="U"
|
|
148 >Up</A
|
|
149 ></TD
|
|
150 ><TD
|
|
151 WIDTH="33%"
|
|
152 ALIGN="right"
|
|
153 VALIGN="top"
|
|
154 >Cycle Counts</TD
|
|
155 ></TR
|
|
156 ></TABLE
|
|
157 ></DIV
|
|
158 ></BODY
|
|
159 ></HTML
|
|
160 > |