📄 m68hc11-syntax.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="M68HC11-Syntax">M68HC11-Syntax</a>,
Next:<a rel="next" accesskey="n" href="M68HC11-Float.html#M68HC11-Float">M68HC11-Float</a>,
Previous:<a rel="previous" accesskey="p" href="M68HC11-Opts.html#M68HC11-Opts">M68HC11-Opts</a>,
Up:<a rel="up" accesskey="u" href="M68HC11-Dependent.html#M68HC11-Dependent">M68HC11-Dependent</a>
<hr><br>
</div>
<h4 class="section">Syntax</h4>
<p>In the M68HC11 syntax, the instruction name comes first and it may
be followed by one or several operands (up to three). Operands are
separated by comma (<code>,</code>). In the normal mode,
<code>as</code> will complain if too many operands are specified for
a given instruction. In the MRI mode (turned on with <code>-M</code> option),
it will treat them as comments. Example:
<pre class="smallexample"> inx
lda #23
bset 2,x #4
brclr *bot #8 foo
</pre>
<p>The following addressing modes are understood:
<dl>
<dt><dfn>Immediate</dfn>
<dd><code>#</code><var>number</var><code></code>
<br><dt><dfn>Address Register</dfn>
<dd><code></code><var>number</var><code>,X</code>, <code></code><var>number</var><code>,Y</code>
<p>The <var>number</var> may be omitted in which case 0 is assumed.
<br><dt><dfn>Direct Addressing mode</dfn>
<dd><code>*</code><var>symbol</var><code></code>, or <code>*</code><var>digits</var><code></code>
<br><dt><dfn>Absolute</dfn>
<dd><code></code><var>symbol</var><code></code>, or <code></code><var>digits</var><code></code>
</dl>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -