| <html lang="en"> |
| <head> |
| <title>M68HC11-Opts - Using as</title> |
| <meta http-equiv="Content-Type" content="text/html"> |
| <meta name="description" content="Using as"> |
| <meta name="generator" content="makeinfo 4.13"> |
| <link title="Top" rel="start" href="index.html#Top"> |
| <link rel="up" href="M68HC11_002dDependent.html#M68HC11_002dDependent" title="M68HC11-Dependent"> |
| <link rel="next" href="M68HC11_002dSyntax.html#M68HC11_002dSyntax" title="M68HC11-Syntax"> |
| <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> |
| <!-- |
| This file documents the GNU Assembler "as". |
| |
| Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| 2000, 2001, 2002, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| |
| Permission is granted to copy, distribute and/or modify this document |
| under the terms of the GNU Free Documentation License, Version 1.3 |
| or any later version published by the Free Software Foundation; |
| with no Invariant Sections, with no Front-Cover Texts, and with no |
| Back-Cover Texts. A copy of the license is included in the |
| section entitled ``GNU Free Documentation License''. |
| |
| --> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <style type="text/css"><!-- |
| pre.display { font-family:inherit } |
| pre.format { font-family:inherit } |
| pre.smalldisplay { font-family:inherit; font-size:smaller } |
| pre.smallformat { font-family:inherit; font-size:smaller } |
| pre.smallexample { font-size:smaller } |
| pre.smalllisp { font-size:smaller } |
| span.sc { font-variant:small-caps } |
| span.roman { font-family:serif; font-weight:normal; } |
| span.sansserif { font-family:sans-serif; font-weight:normal; } |
| --></style> |
| <link rel="stylesheet" type="text/css" href="../cs.css"> |
| </head> |
| <body> |
| <div class="node"> |
| <a name="M68HC11-Opts"></a> |
| <a name="M68HC11_002dOpts"></a> |
| <p> |
| Next: <a rel="next" accesskey="n" href="M68HC11_002dSyntax.html#M68HC11_002dSyntax">M68HC11-Syntax</a>, |
| Up: <a rel="up" accesskey="u" href="M68HC11_002dDependent.html#M68HC11_002dDependent">M68HC11-Dependent</a> |
| <hr> |
| </div> |
| |
| <h4 class="subsection">9.22.1 M68HC11 and M68HC12 Options</h4> |
| |
| <p><a name="index-options_002c-M68HC11-1199"></a><a name="index-M68HC11-options-1200"></a>The Motorola 68HC11 and 68HC12 version of <code>as</code> have a few machine |
| dependent options. |
| |
| |
| <a name="index-g_t_0040samp_007b_002dm68hc11_007d-1201"></a> |
| <dl><dt><code>-m68hc11</code><dd>This option switches the assembler in the M68HC11 mode. In this mode, |
| the assembler only accepts 68HC11 operands and mnemonics. It produces |
| code for the 68HC11. |
| |
| <p><a name="index-g_t_0040samp_007b_002dm68hc12_007d-1202"></a><br><dt><code>-m68hc12</code><dd>This option switches the assembler in the M68HC12 mode. In this mode, |
| the assembler also accepts 68HC12 operands and mnemonics. It produces |
| code for the 68HC12. A few 68HC11 instructions are replaced by |
| some 68HC12 instructions as recommended by Motorola specifications. |
| |
| <p><a name="index-g_t_0040samp_007b_002dm68hcs12_007d-1203"></a><br><dt><code>-m68hcs12</code><dd>This option switches the assembler in the M68HCS12 mode. This mode is |
| similar to ‘<samp><span class="samp">-m68hc12</span></samp>’ but specifies to assemble for the 68HCS12 |
| series. The only difference is on the assembling of the ‘<samp><span class="samp">movb</span></samp>’ |
| and ‘<samp><span class="samp">movw</span></samp>’ instruction when a PC-relative operand is used. |
| |
| <p><a name="index-g_t_0040samp_007b_002dmshort_007d-1204"></a><br><dt><code>-mshort</code><dd>This option controls the ABI and indicates to use a 16-bit integer ABI. |
| It has no effect on the assembled instructions. |
| This is the default. |
| |
| <p><a name="index-g_t_0040samp_007b_002dmlong_007d-1205"></a><br><dt><code>-mlong</code><dd>This option controls the ABI and indicates to use a 32-bit integer ABI. |
| |
| <p><a name="index-g_t_0040samp_007b_002dmshort_002ddouble_007d-1206"></a><br><dt><code>-mshort-double</code><dd>This option controls the ABI and indicates to use a 32-bit float ABI. |
| This is the default. |
| |
| <p><a name="index-g_t_0040samp_007b_002dmlong_002ddouble_007d-1207"></a><br><dt><code>-mlong-double</code><dd>This option controls the ABI and indicates to use a 64-bit float ABI. |
| |
| <p><a name="index-g_t_0040samp_007b_002d_002dstrict_002ddirect_002dmode_007d-1208"></a><br><dt><code>--strict-direct-mode</code><dd>You can use the ‘<samp><span class="samp">--strict-direct-mode</span></samp>’ option to disable |
| the automatic translation of direct page mode addressing into |
| extended mode when the instruction does not support direct mode. |
| For example, the ‘<samp><span class="samp">clr</span></samp>’ instruction does not support direct page |
| mode addressing. When it is used with the direct page mode, |
| <code>as</code> will ignore it and generate an absolute addressing. |
| This option prevents <code>as</code> from doing this, and the wrong |
| usage of the direct page mode will raise an error. |
| |
| <p><a name="index-g_t_0040samp_007b_002d_002dshort_002dbranches_007d-1209"></a><br><dt><code>--short-branches</code><dd>The ‘<samp><span class="samp">--short-branches</span></samp>’ option turns off the translation of |
| relative branches into absolute branches when the branch offset is |
| out of range. By default <code>as</code> transforms the relative |
| branch (‘<samp><span class="samp">bsr</span></samp>’, ‘<samp><span class="samp">bgt</span></samp>’, ‘<samp><span class="samp">bge</span></samp>’, ‘<samp><span class="samp">beq</span></samp>’, ‘<samp><span class="samp">bne</span></samp>’, |
| ‘<samp><span class="samp">ble</span></samp>’, ‘<samp><span class="samp">blt</span></samp>’, ‘<samp><span class="samp">bhi</span></samp>’, ‘<samp><span class="samp">bcc</span></samp>’, ‘<samp><span class="samp">bls</span></samp>’, |
| ‘<samp><span class="samp">bcs</span></samp>’, ‘<samp><span class="samp">bmi</span></samp>’, ‘<samp><span class="samp">bvs</span></samp>’, ‘<samp><span class="samp">bvs</span></samp>’, ‘<samp><span class="samp">bra</span></samp>’) into |
| an absolute branch when the offset is out of the -128 .. 127 range. |
| In that case, the ‘<samp><span class="samp">bsr</span></samp>’ instruction is translated into a |
| ‘<samp><span class="samp">jsr</span></samp>’, the ‘<samp><span class="samp">bra</span></samp>’ instruction is translated into a |
| ‘<samp><span class="samp">jmp</span></samp>’ and the conditional branches instructions are inverted and |
| followed by a ‘<samp><span class="samp">jmp</span></samp>’. This option disables these translations |
| and <code>as</code> will generate an error if a relative branch |
| is out of range. This option does not affect the optimization |
| associated to the ‘<samp><span class="samp">jbra</span></samp>’, ‘<samp><span class="samp">jbsr</span></samp>’ and ‘<samp><span class="samp">jbXX</span></samp>’ pseudo opcodes. |
| |
| <p><a name="index-g_t_0040samp_007b_002d_002dforce_002dlong_002dbranches_007d-1210"></a><br><dt><code>--force-long-branches</code><dd>The ‘<samp><span class="samp">--force-long-branches</span></samp>’ option forces the translation of |
| relative branches into absolute branches. This option does not affect |
| the optimization associated to the ‘<samp><span class="samp">jbra</span></samp>’, ‘<samp><span class="samp">jbsr</span></samp>’ and |
| ‘<samp><span class="samp">jbXX</span></samp>’ pseudo opcodes. |
| |
| <p><a name="index-g_t_0040samp_007b_002d_002dprint_002dinsn_002dsyntax_007d-1211"></a><br><dt><code>--print-insn-syntax</code><dd>You can use the ‘<samp><span class="samp">--print-insn-syntax</span></samp>’ option to obtain the |
| syntax description of the instruction when an error is detected. |
| |
| <p><a name="index-g_t_0040samp_007b_002d_002dprint_002dopcodes_007d-1212"></a><br><dt><code>--print-opcodes</code><dd>The ‘<samp><span class="samp">--print-opcodes</span></samp>’ option prints the list of all the |
| instructions with their syntax. The first item of each line |
| represents the instruction name and the rest of the line indicates |
| the possible operands for that instruction. The list is printed |
| in alphabetical order. Once the list is printed <code>as</code> |
| exits. |
| |
| <p><a name="index-g_t_0040samp_007b_002d_002dgenerate_002dexample_007d-1213"></a><br><dt><code>--generate-example</code><dd>The ‘<samp><span class="samp">--generate-example</span></samp>’ option is similar to ‘<samp><span class="samp">--print-opcodes</span></samp>’ |
| but it generates an example for each instruction instead. |
| </dl> |
| |
| </body></html> |
| |