|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <!-- This file documents the GNU Assembler "as".
-
- Copyright (C) 1991-2020 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".
- -->
- <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Z80 Options (Using as)</title>
-
- <meta name="description" content="Z80 Options (Using as)">
- <meta name="keywords" content="Z80 Options (Using as)">
- <meta name="resource-type" content="document">
- <meta name="distribution" content="global">
- <meta name="Generator" content="makeinfo">
- <link href="index.html#Top" rel="start" title="Top">
- <link href="AS-Index.html#AS-Index" rel="index" title="AS Index">
- <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
- <link href="Z80_002dDependent.html#Z80_002dDependent" rel="up" title="Z80-Dependent">
- <link href="Z80-Syntax.html#Z80-Syntax" rel="next" title="Z80 Syntax">
- <link href="Z80_002dDependent.html#Z80_002dDependent" rel="prev" title="Z80-Dependent">
- <style type="text/css">
- <!--
- a.summary-letter {text-decoration: none}
- blockquote.indentedblock {margin-right: 0em}
- blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
- blockquote.smallquotation {font-size: smaller}
- div.display {margin-left: 3.2em}
- div.example {margin-left: 3.2em}
- div.lisp {margin-left: 3.2em}
- div.smalldisplay {margin-left: 3.2em}
- div.smallexample {margin-left: 3.2em}
- div.smalllisp {margin-left: 3.2em}
- kbd {font-style: oblique}
- pre.display {font-family: inherit}
- pre.format {font-family: inherit}
- pre.menu-comment {font-family: serif}
- pre.menu-preformatted {font-family: serif}
- pre.smalldisplay {font-family: inherit; font-size: smaller}
- pre.smallexample {font-size: smaller}
- pre.smallformat {font-family: inherit; font-size: smaller}
- pre.smalllisp {font-size: smaller}
- span.nolinebreak {white-space: nowrap}
- span.roman {font-family: initial; font-weight: normal}
- span.sansserif {font-family: sans-serif; font-weight: normal}
- ul.no-bullet {list-style: none}
- -->
- </style>
-
-
- </head>
-
- <body lang="en">
- <a name="Z80-Options"></a>
- <div class="header">
- <p>
- Next: <a href="Z80-Syntax.html#Z80-Syntax" accesskey="n" rel="next">Z80 Syntax</a>, Up: <a href="Z80_002dDependent.html#Z80_002dDependent" accesskey="u" rel="up">Z80-Dependent</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
- </div>
- <hr>
- <a name="Command_002dline-Options-3"></a>
- <h4 class="subsection">9.56.1 Command-line Options</h4>
- <a name="index-Z80-options"></a>
- <a name="index-options-for-Z80"></a>
- <dl compact="compact">
- <dd>
- <a name="index-_002dmarch_003d-command_002dline-option_002c-Z80"></a>
- </dd>
- <dt><code>-march=<var>CPU</var>[-<var>EXT</var>…][+<var>EXT</var>…]</code></dt>
- <dd><p>This option specifies the target processor. The assembler will issue
- an error message if an attempt is made to assemble an instruction which
- will not execute on the target processor. The following processor names
- are recognized:
- <code>z80</code>,
- <code>z180</code>,
- <code>ez80</code>,
- <code>gbz80</code>,
- <code>z80n</code>,
- <code>r800</code>.
- In addition to the basic instruction set, the assembler can be told to
- accept some extention mnemonics. For example,
- <code>-march=z180+sli+infc</code> extends <var>z180</var> with <var>SLI</var> instructions and
- <var>IN F,(C)</var>. The following extentions are currently supported:
- <code>full</code> (all known instructions),
- <code>adl</code> (ADL CPU mode by default, eZ80 only),
- <code>sli</code> (instruction known as <var>SLI</var>, <var>SLL</var> or <var>SL1</var>),
- <code>xyhl</code> (instructions with halves of index registers: <var>IXL</var>, <var>IXH</var>,
- <var>IYL</var>, <var>IYH</var>),
- <code>xdcb</code> (instructions like <var>RotOp (II+d),R</var> and <var>BitOp n,(II+d),R</var>),
- <code>infc</code> (instruction <var>IN F,(C)</var> or <var>IN (C)</var>),
- <code>outc0</code> (instruction <var>OUT (C),0</var>).
- Note that rather than extending a basic instruction set, the extention
- mnemonics starting with <code>-</code> revoke the respective functionality:
- <code>-march=z80-full+xyhl</code> first removes all default extentions and adds
- support for index registers halves only.
- </p>
- <p>If this option is not specified then <code>-march=z80+xyhl+infc</code> is assumed.
- </p>
- <a name="index-_002dlocal_002dprefix-command_002dline-option_002c-Z80"></a>
- </dd>
- <dt><code>-local-prefix=<var>prefix</var></code></dt>
- <dd><p>Mark all labels with specified prefix as local. But such label can be
- marked global explicitly in the code. This option do not change default
- local label prefix <code>.L</code>, it is just adds new one.
- </p>
- <a name="index-_002dcolonless-command_002dline-option_002c-Z80"></a>
- </dd>
- <dt><code>-colonless</code></dt>
- <dd><p>Accept colonless labels. All symbols at line begin are treated as labels.
- </p>
- <a name="index-_002dsdcc-command_002dline-option_002c-Z80"></a>
- </dd>
- <dt><code>-sdcc</code></dt>
- <dd><p>Accept assembler code produced by SDCC.
- </p>
- <a name="index-_002dfp_002ds-command_002dline-option_002c-Z80"></a>
- </dd>
- <dt><code>-fp-s=<var>FORMAT</var></code></dt>
- <dd><p>Single precision floating point numbers format. Default: ieee754 (32 bit).
- </p>
- <a name="index-_002dfp_002dd-command_002dline-option_002c-Z80"></a>
- </dd>
- <dt><code>-fp-d=<var>FORMAT</var></code></dt>
- <dd><p>Double precision floating point numbers format. Default: ieee754 (64 bit).
- </p></dd>
- </dl>
-
- <p>Floating point numbers formats.
- </p><dl compact="compact">
- <dt><samp><code>ieee754</code></samp></dt>
- <dd><p>Single or double precision IEEE754 compatible format.
- </p>
- </dd>
- <dt><samp><code>half</code></samp></dt>
- <dd><p>Half precision IEEE754 compatible format (16 bits).
- </p>
- </dd>
- <dt><samp><code>single</code></samp></dt>
- <dd><p>Single precision IEEE754 compatible format (32 bits).
- </p>
- </dd>
- <dt><samp><code>double</code></samp></dt>
- <dd><p>Double precision IEEE754 compatible format (64 bits).
- </p>
- </dd>
- <dt><samp><code>zeda32</code></samp></dt>
- <dd><p>32 bit floating point format from z80float library by Zeda.
- </p>
- </dd>
- <dt><samp><code>math48</code></samp></dt>
- <dd><p>48 bit floating point format from Math48 package by Anders Hejlsberg.
- </p></dd>
- </dl>
-
- <a name="index-Z80-Syntax"></a>
- <hr>
- <div class="header">
- <p>
- Next: <a href="Z80-Syntax.html#Z80-Syntax" accesskey="n" rel="next">Z80 Syntax</a>, Up: <a href="Z80_002dDependent.html#Z80_002dDependent" accesskey="u" rel="up">Z80-Dependent</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
- </div>
-
-
-
- </body>
- </html>
|