toolchain/share/doc/as.html/S12Z-Options.html

71 lines
3.6 KiB
HTML
Raw Permalink Normal View History

2024-01-10 05:24:32 +00:00
<html lang="en">
<head>
<title>S12Z Options - 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="S12Z_002dDependent.html#S12Z_002dDependent" title="S12Z-Dependent">
<link rel="next" href="S12Z-Syntax.html#S12Z-Syntax" title="S12Z 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-2019 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>
</head>
<body>
<div class="node">
<a name="S12Z-Options"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="S12Z-Syntax.html#S12Z-Syntax">S12Z Syntax</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="S12Z_002dDependent.html#S12Z_002dDependent">S12Z-Dependent</a>
<hr>
</div>
<h4 class="subsection">9.24.1 S12Z Options</h4>
<p><a name="index-options_002c-S12Z-1517"></a><a name="index-S12Z-options-1518"></a>
The S12Z version of <code>as</code> recognizes the following options:
<dl>
<dt>&lsquo;<samp><span class="samp">-mreg-prefix=</span><var>prefix</var></samp>&rsquo;<dd><a name="index-g_t_0040samp_007b_002dmreg_002dprefix_003d_0040var_007bprefix_007d_007d-option_002c-reg_002dprefix-1519"></a>You can use the &lsquo;<samp><span class="samp">-mreg-prefix=</span><var>pfx</var></samp>&rsquo; option to indicate
that the assembler should expect all register names to be prefixed with the
string <var>pfx</var>.
<p>For an explanation of what this means and why it might be needed,
see <a href="S12Z-Register-Notation.html#S12Z-Register-Notation">S12Z Register Notation</a>.
<br><dt>&lsquo;<samp><span class="samp">-mdollar-hex</span></samp>&rsquo;<dd><a name="index-g_t_0040samp_007b_002dmdollar_002dhex_007d-option_002c-dollar_002dhex-1520"></a><a name="index-hexadecimal-prefix_002c-S12Z-1521"></a>The &lsquo;<samp><span class="samp">-mdollar-hex</span></samp>&rsquo; option affects the way that literal hexadecimal constants
are represented. When this option is specified, the assembler will consider
the &lsquo;<samp><span class="samp">$</span></samp>&rsquo; character as the start of a hexadecimal integer constant. Without
this option, the standard value of &lsquo;<samp><span class="samp">0x</span></samp>&rsquo; is expected.
<p>If you use this option, then you cannot have symbol names starting with &lsquo;<samp><span class="samp">$</span></samp>&rsquo;.
&lsquo;<samp><span class="samp">-mdollar-hex</span></samp>&rsquo; is implied if the &lsquo;<samp><span class="samp">--traditional-format</span></samp>&rsquo;
(see <a href="traditional_002dformat.html#traditional_002dformat">traditional-format</a>) is used.
</dl>
</body></html>