Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Z80-Options.html 7.0KB

3 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- This file documents the GNU Assembler "as".
  4. Copyright (C) 1991-2020 Free Software Foundation, Inc.
  5. Permission is granted to copy, distribute and/or modify this document
  6. under the terms of the GNU Free Documentation License, Version 1.3
  7. or any later version published by the Free Software Foundation;
  8. with no Invariant Sections, with no Front-Cover Texts, and with no
  9. Back-Cover Texts. A copy of the license is included in the
  10. section entitled "GNU Free Documentation License".
  11. -->
  12. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <title>Z80 Options (Using as)</title>
  16. <meta name="description" content="Z80 Options (Using as)">
  17. <meta name="keywords" content="Z80 Options (Using as)">
  18. <meta name="resource-type" content="document">
  19. <meta name="distribution" content="global">
  20. <meta name="Generator" content="makeinfo">
  21. <link href="index.html#Top" rel="start" title="Top">
  22. <link href="AS-Index.html#AS-Index" rel="index" title="AS Index">
  23. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  24. <link href="Z80_002dDependent.html#Z80_002dDependent" rel="up" title="Z80-Dependent">
  25. <link href="Z80-Syntax.html#Z80-Syntax" rel="next" title="Z80 Syntax">
  26. <link href="Z80_002dDependent.html#Z80_002dDependent" rel="prev" title="Z80-Dependent">
  27. <style type="text/css">
  28. <!--
  29. a.summary-letter {text-decoration: none}
  30. blockquote.indentedblock {margin-right: 0em}
  31. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  32. blockquote.smallquotation {font-size: smaller}
  33. div.display {margin-left: 3.2em}
  34. div.example {margin-left: 3.2em}
  35. div.lisp {margin-left: 3.2em}
  36. div.smalldisplay {margin-left: 3.2em}
  37. div.smallexample {margin-left: 3.2em}
  38. div.smalllisp {margin-left: 3.2em}
  39. kbd {font-style: oblique}
  40. pre.display {font-family: inherit}
  41. pre.format {font-family: inherit}
  42. pre.menu-comment {font-family: serif}
  43. pre.menu-preformatted {font-family: serif}
  44. pre.smalldisplay {font-family: inherit; font-size: smaller}
  45. pre.smallexample {font-size: smaller}
  46. pre.smallformat {font-family: inherit; font-size: smaller}
  47. pre.smalllisp {font-size: smaller}
  48. span.nolinebreak {white-space: nowrap}
  49. span.roman {font-family: initial; font-weight: normal}
  50. span.sansserif {font-family: sans-serif; font-weight: normal}
  51. ul.no-bullet {list-style: none}
  52. -->
  53. </style>
  54. </head>
  55. <body lang="en">
  56. <a name="Z80-Options"></a>
  57. <div class="header">
  58. <p>
  59. 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> &nbsp; [<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>
  60. </div>
  61. <hr>
  62. <a name="Command_002dline-Options-3"></a>
  63. <h4 class="subsection">9.56.1 Command-line Options</h4>
  64. <a name="index-Z80-options"></a>
  65. <a name="index-options-for-Z80"></a>
  66. <dl compact="compact">
  67. <dd>
  68. <a name="index-_002dmarch_003d-command_002dline-option_002c-Z80"></a>
  69. </dd>
  70. <dt><code>-march=<var>CPU</var>[-<var>EXT</var>&hellip;][+<var>EXT</var>&hellip;]</code></dt>
  71. <dd><p>This option specifies the target processor. The assembler will issue
  72. an error message if an attempt is made to assemble an instruction which
  73. will not execute on the target processor. The following processor names
  74. are recognized:
  75. <code>z80</code>,
  76. <code>z180</code>,
  77. <code>ez80</code>,
  78. <code>gbz80</code>,
  79. <code>z80n</code>,
  80. <code>r800</code>.
  81. In addition to the basic instruction set, the assembler can be told to
  82. accept some extention mnemonics. For example,
  83. <code>-march=z180+sli+infc</code> extends <var>z180</var> with <var>SLI</var> instructions and
  84. <var>IN F,(C)</var>. The following extentions are currently supported:
  85. <code>full</code> (all known instructions),
  86. <code>adl</code> (ADL CPU mode by default, eZ80 only),
  87. <code>sli</code> (instruction known as <var>SLI</var>, <var>SLL</var> or <var>SL1</var>),
  88. <code>xyhl</code> (instructions with halves of index registers: <var>IXL</var>, <var>IXH</var>,
  89. <var>IYL</var>, <var>IYH</var>),
  90. <code>xdcb</code> (instructions like <var>RotOp (II+d),R</var> and <var>BitOp n,(II+d),R</var>),
  91. <code>infc</code> (instruction <var>IN F,(C)</var> or <var>IN (C)</var>),
  92. <code>outc0</code> (instruction <var>OUT (C),0</var>).
  93. Note that rather than extending a basic instruction set, the extention
  94. mnemonics starting with <code>-</code> revoke the respective functionality:
  95. <code>-march=z80-full+xyhl</code> first removes all default extentions and adds
  96. support for index registers halves only.
  97. </p>
  98. <p>If this option is not specified then <code>-march=z80+xyhl+infc</code> is assumed.
  99. </p>
  100. <a name="index-_002dlocal_002dprefix-command_002dline-option_002c-Z80"></a>
  101. </dd>
  102. <dt><code>-local-prefix=<var>prefix</var></code></dt>
  103. <dd><p>Mark all labels with specified prefix as local. But such label can be
  104. marked global explicitly in the code. This option do not change default
  105. local label prefix <code>.L</code>, it is just adds new one.
  106. </p>
  107. <a name="index-_002dcolonless-command_002dline-option_002c-Z80"></a>
  108. </dd>
  109. <dt><code>-colonless</code></dt>
  110. <dd><p>Accept colonless labels. All symbols at line begin are treated as labels.
  111. </p>
  112. <a name="index-_002dsdcc-command_002dline-option_002c-Z80"></a>
  113. </dd>
  114. <dt><code>-sdcc</code></dt>
  115. <dd><p>Accept assembler code produced by SDCC.
  116. </p>
  117. <a name="index-_002dfp_002ds-command_002dline-option_002c-Z80"></a>
  118. </dd>
  119. <dt><code>-fp-s=<var>FORMAT</var></code></dt>
  120. <dd><p>Single precision floating point numbers format. Default: ieee754 (32 bit).
  121. </p>
  122. <a name="index-_002dfp_002dd-command_002dline-option_002c-Z80"></a>
  123. </dd>
  124. <dt><code>-fp-d=<var>FORMAT</var></code></dt>
  125. <dd><p>Double precision floating point numbers format. Default: ieee754 (64 bit).
  126. </p></dd>
  127. </dl>
  128. <p>Floating point numbers formats.
  129. </p><dl compact="compact">
  130. <dt><samp><code>ieee754</code></samp></dt>
  131. <dd><p>Single or double precision IEEE754 compatible format.
  132. </p>
  133. </dd>
  134. <dt><samp><code>half</code></samp></dt>
  135. <dd><p>Half precision IEEE754 compatible format (16 bits).
  136. </p>
  137. </dd>
  138. <dt><samp><code>single</code></samp></dt>
  139. <dd><p>Single precision IEEE754 compatible format (32 bits).
  140. </p>
  141. </dd>
  142. <dt><samp><code>double</code></samp></dt>
  143. <dd><p>Double precision IEEE754 compatible format (64 bits).
  144. </p>
  145. </dd>
  146. <dt><samp><code>zeda32</code></samp></dt>
  147. <dd><p>32 bit floating point format from z80float library by Zeda.
  148. </p>
  149. </dd>
  150. <dt><samp><code>math48</code></samp></dt>
  151. <dd><p>48 bit floating point format from Math48 package by Anders Hejlsberg.
  152. </p></dd>
  153. </dl>
  154. <a name="index-Z80-Syntax"></a>
  155. <hr>
  156. <div class="header">
  157. <p>
  158. 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> &nbsp; [<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>
  159. </div>
  160. </body>
  161. </html>