You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

162 lines
5.7KB

  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>Z8000 Directives (Using as)</title>
  16. <meta name="description" content="Z8000 Directives (Using as)">
  17. <meta name="keywords" content="Z8000 Directives (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="Z8000_002dDependent.html#Z8000_002dDependent" rel="up" title="Z8000-Dependent">
  25. <link href="Z8000-Opcodes.html#Z8000-Opcodes" rel="next" title="Z8000 Opcodes">
  26. <link href="Z8000_002dAddressing.html#Z8000_002dAddressing" rel="prev" title="Z8000-Addressing">
  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="Z8000-Directives"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="Z8000-Opcodes.html#Z8000-Opcodes" accesskey="n" rel="next">Z8000 Opcodes</a>, Previous: <a href="Z8000-Syntax.html#Z8000-Syntax" accesskey="p" rel="prev">Z8000 Syntax</a>, Up: <a href="Z8000_002dDependent.html#Z8000_002dDependent" accesskey="u" rel="up">Z8000-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="Assembler-Directives-for-the-Z8000"></a>
  63. <h4 class="subsection">9.57.3 Assembler Directives for the Z8000</h4>
  64. <a name="index-Z8000-directives"></a>
  65. <a name="index-directives_002c-Z8000"></a>
  66. <p>The Z8000 port of as includes additional assembler directives,
  67. for compatibility with other Z8000 assemblers. These do not begin with
  68. &lsquo;<samp>.</samp>&rsquo; (unlike the ordinary as directives).
  69. </p>
  70. <dl compact="compact">
  71. <dd><a name="index-segm"></a>
  72. </dd>
  73. <dt><code>segm</code></dt>
  74. <dd><a name="index-_002ez8001"></a>
  75. </dd>
  76. <dt><code>.z8001</code></dt>
  77. <dd><p>Generate code for the segmented Z8001.
  78. </p>
  79. <a name="index-unsegm"></a>
  80. </dd>
  81. <dt><code>unsegm</code></dt>
  82. <dd><a name="index-_002ez8002"></a>
  83. </dd>
  84. <dt><code>.z8002</code></dt>
  85. <dd><p>Generate code for the unsegmented Z8002.
  86. </p>
  87. <a name="index-name"></a>
  88. </dd>
  89. <dt><code>name</code></dt>
  90. <dd><p>Synonym for <code>.file</code>
  91. </p>
  92. <a name="index-global"></a>
  93. </dd>
  94. <dt><code>global</code></dt>
  95. <dd><p>Synonym for <code>.global</code>
  96. </p>
  97. <a name="index-wval"></a>
  98. </dd>
  99. <dt><code>wval</code></dt>
  100. <dd><p>Synonym for <code>.word</code>
  101. </p>
  102. <a name="index-lval"></a>
  103. </dd>
  104. <dt><code>lval</code></dt>
  105. <dd><p>Synonym for <code>.long</code>
  106. </p>
  107. <a name="index-bval"></a>
  108. </dd>
  109. <dt><code>bval</code></dt>
  110. <dd><p>Synonym for <code>.byte</code>
  111. </p>
  112. <a name="index-sval"></a>
  113. </dd>
  114. <dt><code>sval</code></dt>
  115. <dd><p>Assemble a string. <code>sval</code> expects one string literal, delimited by
  116. single quotes. It assembles each byte of the string into consecutive
  117. addresses. You can use the escape sequence &lsquo;<samp>%<var>xx</var></samp>&rsquo; (where
  118. <var>xx</var> represents a two-digit hexadecimal number) to represent the
  119. character whose <small>ASCII</small> value is <var>xx</var>. Use this feature to
  120. describe single quote and other characters that may not appear in string
  121. literals as themselves. For example, the C statement &lsquo;<samp>char&nbsp;*a&nbsp;=&nbsp;&quot;he&nbsp;said&nbsp;\&quot;it's&nbsp;50%&nbsp;off\&quot;&quot;;</samp>&rsquo;<!-- /@w --> is represented in Z8000 assembly language
  122. (shown with the assembler output in hex at the left) as
  123. </p>
  124. <div class="smallexample">
  125. <pre class="smallexample">68652073 sval 'he said %22it%27s 50%25 off%22%00'
  126. 61696420
  127. 22697427
  128. 73203530
  129. 25206F66
  130. 662200
  131. </pre></div>
  132. <a name="index-rsect"></a>
  133. </dd>
  134. <dt><code>rsect</code></dt>
  135. <dd><p>synonym for <code>.section</code>
  136. </p>
  137. <a name="index-block"></a>
  138. </dd>
  139. <dt><code>block</code></dt>
  140. <dd><p>synonym for <code>.space</code>
  141. </p>
  142. <a name="index-even"></a>
  143. </dd>
  144. <dt><code>even</code></dt>
  145. <dd><p>special case of <code>.align</code>; aligns output to even byte boundary.
  146. </p></dd>
  147. </dl>
  148. </body>
  149. </html>