📄 sh-addressing.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="SH-Addressing">SH-Addressing</a>,
Previous:<a rel="previous" accesskey="p" href="SH-Regs.html#SH-Regs">SH-Regs</a>,
Up:<a rel="up" accesskey="u" href="SH-Syntax.html#SH%20Syntax">SH Syntax</a>
<hr><br>
</div>
<h5 class="subsection">Addressing Modes</h5>
<p><code>as</code> understands the following addressing modes for the SH.
<code>R</code><var>n</var><code></code> in the following refers to any of the numbered
registers, but <em>not</em> the control registers.
<dl>
<dt><code>R</code><var>n</var><code></code>
<dd>Register direct
<br><dt><code>@R</code><var>n</var><code></code>
<dd>Register indirect
<br><dt><code>@-R</code><var>n</var><code></code>
<dd>Register indirect with pre-decrement
<br><dt><code>@R</code><var>n</var><code>+</code>
<dd>Register indirect with post-increment
<br><dt><code>@(</code><var>disp</var><code>, R</code><var>n</var><code>)</code>
<dd>Register indirect with displacement
<br><dt><code>@(R0, R</code><var>n</var><code>)</code>
<dd>Register indexed
<br><dt><code>@(</code><var>disp</var><code>, GBR)</code>
<dd><code>GBR</code> offset
<br><dt><code>@(R0, GBR)</code>
<dd>GBR indexed
<br><dt><code></code><var>addr</var><code></code>
<dd><dt><code>@(</code><var>disp</var><code>, PC)</code>
<dd>PC relative address (for branch or for addressing memory). The
<code>as</code> implementation allows you to use the simpler form
<var>addr</var> anywhere a PC relative address is called for; the alternate
form is supported for compatibility with other assemblers.
<br><dt><code>#</code><var>imm</var><code></code>
<dd>Immediate data
</dl>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -