Z8000-Directives.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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-2017 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 5.2, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <title>Using as: Z8000 Directives</title>
  15. <meta name="description" content="Using as: Z8000 Directives">
  16. <meta name="keywords" content="Using as: Z8000 Directives">
  17. <meta name="resource-type" content="document">
  18. <meta name="distribution" content="global">
  19. <meta name="Generator" content="makeinfo">
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  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.smallquotation {font-size: smaller}
  31. div.display {margin-left: 3.2em}
  32. div.example {margin-left: 3.2em}
  33. div.indentedblock {margin-left: 3.2em}
  34. div.lisp {margin-left: 3.2em}
  35. div.smalldisplay {margin-left: 3.2em}
  36. div.smallexample {margin-left: 3.2em}
  37. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  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.nocodebreak {white-space:nowrap}
  49. span.nolinebreak {white-space:nowrap}
  50. span.roman {font-family:serif; font-weight:normal}
  51. span.sansserif {font-family:sans-serif; font-weight:normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  57. <a name="Z8000-Directives"></a>
  58. <div class="header">
  59. <p>
  60. 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>
  61. </div>
  62. <hr>
  63. <a name="Assembler-Directives-for-the-Z8000"></a>
  64. <h4 class="subsection">9.55.3 Assembler Directives for the Z8000</h4>
  65. <a name="index-Z8000-directives"></a>
  66. <a name="index-directives_002c-Z8000"></a>
  67. <p>The Z8000 port of as includes additional assembler directives,
  68. for compatibility with other Z8000 assemblers. These do not begin with
  69. &lsquo;<samp>.</samp>&rsquo; (unlike the ordinary as directives).
  70. </p>
  71. <dl compact="compact">
  72. <dd><a name="index-segm"></a>
  73. </dd>
  74. <dt><code>segm</code></dt>
  75. <dd><a name="index-_002ez8001"></a>
  76. </dd>
  77. <dt><code>.z8001</code></dt>
  78. <dd><p>Generate code for the segmented Z8001.
  79. </p>
  80. <a name="index-unsegm"></a>
  81. </dd>
  82. <dt><code>unsegm</code></dt>
  83. <dd><a name="index-_002ez8002"></a>
  84. </dd>
  85. <dt><code>.z8002</code></dt>
  86. <dd><p>Generate code for the unsegmented Z8002.
  87. </p>
  88. <a name="index-name"></a>
  89. </dd>
  90. <dt><code>name</code></dt>
  91. <dd><p>Synonym for <code>.file</code>
  92. </p>
  93. <a name="index-global"></a>
  94. </dd>
  95. <dt><code>global</code></dt>
  96. <dd><p>Synonym for <code>.global</code>
  97. </p>
  98. <a name="index-wval"></a>
  99. </dd>
  100. <dt><code>wval</code></dt>
  101. <dd><p>Synonym for <code>.word</code>
  102. </p>
  103. <a name="index-lval"></a>
  104. </dd>
  105. <dt><code>lval</code></dt>
  106. <dd><p>Synonym for <code>.long</code>
  107. </p>
  108. <a name="index-bval"></a>
  109. </dd>
  110. <dt><code>bval</code></dt>
  111. <dd><p>Synonym for <code>.byte</code>
  112. </p>
  113. <a name="index-sval"></a>
  114. </dd>
  115. <dt><code>sval</code></dt>
  116. <dd><p>Assemble a string. <code>sval</code> expects one string literal, delimited by
  117. single quotes. It assembles each byte of the string into consecutive
  118. addresses. You can use the escape sequence &lsquo;<samp>%<var>xx</var></samp>&rsquo; (where
  119. <var>xx</var> represents a two-digit hexadecimal number) to represent the
  120. character whose <small>ASCII</small> value is <var>xx</var>. Use this feature to
  121. describe single quote and other characters that may not appear in string
  122. 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
  123. (shown with the assembler output in hex at the left) as
  124. </p>
  125. <div class="smallexample">
  126. <pre class="smallexample">68652073 sval 'he said %22it%27s 50%25 off%22%00'
  127. 61696420
  128. 22697427
  129. 73203530
  130. 25206F66
  131. 662200
  132. </pre></div>
  133. <a name="index-rsect"></a>
  134. </dd>
  135. <dt><code>rsect</code></dt>
  136. <dd><p>synonym for <code>.section</code>
  137. </p>
  138. <a name="index-block"></a>
  139. </dd>
  140. <dt><code>block</code></dt>
  141. <dd><p>synonym for <code>.space</code>
  142. </p>
  143. <a name="index-even"></a>
  144. </dd>
  145. <dt><code>even</code></dt>
  146. <dd><p>special case of <code>.align</code>; aligns output to even byte boundary.
  147. </p></dd>
  148. </dl>
  149. </body>
  150. </html>