z8000-addressing.html

来自「gcc手册」· HTML 代码 · 共 53 行

HTML
53
字号
<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-Addressing">Z8000-Addressing</a>,

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

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

<hr><br>

</div>



<h5 class="subsection">Addressing Modes</h5>



   as understands the following addressing modes for the Z8000:



     <dl>

<dt><code>r</code><var>n</var><code></code>

     <dd>Register direct



     <br><dt><code>@r</code><var>n</var><code></code>

     <dd>Indirect register



     <br><dt><code></code><var>addr</var><code></code>

     <dd>Direct: the 16 bit or 24 bit address (depending on whether the assembler

is in segmented or unsegmented mode) of the operand is in the instruction.



     <br><dt><code>address(r</code><var>n</var><code>)</code>

     <dd>Indexed: the 16 or 24 bit address is added to the 16 bit register to produce

the final address in memory of the operand.



     <br><dt><code>r</code><var>n</var><code>(#</code><var>imm</var><code>)</code>

     <dd>Base Address: the 16 or 24 bit register is added to the 16 bit sign

extended immediate displacement to produce the final address in memory

of the operand.



     <br><dt><code>r</code><var>n</var><code>(r</code><var>m</var><code>)</code>

     <dd>Base Index: the 16 or 24 bit register r<var>n</var> is added to the sign

extended 16 bit index register r<var>m</var> to produce the final address in

memory of the operand.



     <br><dt><code>#</code><var>xx</var><code></code>

     <dd>Immediate data <var>xx</var>. 

</dl>



   </body></html>



⌨️ 快捷键说明

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