⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 z8000-directives.html

📁 gcc手册
💻 HTML
字号:
<html lang="en">

<head>

<title>Using as</title>

<meta http-equiv="Content-Type" content="text/html">

<meta name="description" content="Using as">

<meta name="generator" content="makeinfo 4.3">

<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">

</head>

<body>

<div class="node">

<p>

Node:<a name="Z8000%20Directives">Z8000 Directives</a>,

Next:<a rel="next" accesskey="n" href="Z8000-Opcodes.html#Z8000%20Opcodes">Z8000 Opcodes</a>,

Previous:<a rel="previous" accesskey="p" href="Z8000-Syntax.html#Z8000%20Syntax">Z8000 Syntax</a>,

Up:<a rel="up" accesskey="u" href="Z8000-Dependent.html#Z8000-Dependent">Z8000-Dependent</a>

<hr><br>

</div>



<h4 class="section">Assembler Directives for the Z8000</h4>



   <p>The Z8000 port of as includes these additional assembler directives,

for compatibility with other Z8000 assemblers.  As shown, these do not

begin with <code>.</code> (unlike the ordinary as directives).



     <dl>

<dt><code>segm</code>

     <dd>Generates code for the segmented Z8001.



     <br><dt><code>unsegm</code>

     <dd>Generates code for the unsegmented Z8002.



     <br><dt><code>name</code>

     <dd>Synonym for <code>.file</code>



     <br><dt><code>global</code>

     <dd>Synonym for <code>.global</code>



     <br><dt><code>wval</code>

     <dd>Synonym for <code>.word</code>



     <br><dt><code>lval</code>

     <dd>Synonym for <code>.long</code>



     <br><dt><code>bval</code>

     <dd>Synonym for <code>.byte</code>



     <br><dt><code>sval</code>

     <dd>Assemble a string.  <code>sval</code> expects one string literal, delimited by

single quotes.  It assembles each byte of the string into consecutive

addresses.  You can use the escape sequence <code>%</code><var>xx</var><code></code> (where

<var>xx</var> represents a two-digit hexadecimal number) to represent the

character whose <small>ASCII</small> value is <var>xx</var>.  Use this feature to

describe single quote and other characters that may not appear in string

literals as themselves.  For example, the C statement <code>char&nbsp;*a&nbsp;=&nbsp;"he&nbsp;said&nbsp;\"it's&nbsp;50%&nbsp;off\"";</code> is represented in Z8000 assembly language

(shown with the assembler output in hex at the left) as



     <pre class="smallexample">          68652073    sval    'he said %22it%27s 50%25 off%22%00'

          61696420

          22697427

          73203530

          25206F66

          662200

          </pre>



     <br><dt><code>rsect</code>

     <dd>synonym for <code>.section</code>



     <br><dt><code>block</code>

     <dd>synonym for <code>.space</code>



     <br><dt><code>even</code>

     <dd>special case of <code>.align</code>; aligns output to even byte boundary. 

</dl>



   </body></html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -