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

📄 m68k-syntax.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="M68K-Syntax">M68K-Syntax</a>,

Next:<a rel="next" accesskey="n" href="M68K-Moto-Syntax.html#M68K-Moto-Syntax">M68K-Moto-Syntax</a>,

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

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

<hr><br>

</div>



<h4 class="section">Syntax</h4>



   <p>This syntax for the Motorola 680x0 was developed at <small>MIT</small>.



   <p>The 680x0 version of <code>as</code> uses instructions names and

syntax compatible with the Sun assembler.  Intervening periods are

ignored; for example, <code>movl</code> is equivalent to <code>mov.l</code>.



   <p>In the following table <var>apc</var> stands for any of the address registers

(<code>%a0</code> through <code>%a7</code>), the program counter (<code>%pc</code>), the

zero-address relative to the program counter (<code>%zpc</code>), a suppressed

address register (<code>%za0</code> through <code>%za7</code>), or it may be omitted

entirely.  The use of <var>size</var> means one of <code>w</code> or <code>l</code>, and

it may be omitted, along with the leading colon, unless a scale is also

specified.  The use of <var>scale</var> means one of <code>1</code>, <code>2</code>,

<code>4</code>, or <code>8</code>, and it may always be omitted along with the

leading colon.



   <p>The following addressing modes are understood:

     <dl>

<dt><dfn>Immediate</dfn>

     <dd><code>#</code><var>number</var><code></code>



     <br><dt><dfn>Data Register</dfn>

     <dd><code>%d0</code> through <code>%d7</code>



     <br><dt><dfn>Address Register</dfn>

     <dd><code>%a0</code> through <code>%a7</code><br>

<code>%a7</code> is also known as <code>%sp</code>, i.e. the Stack Pointer.  <code>%a6</code>

is also known as <code>%fp</code>, the Frame Pointer.



     <br><dt><dfn>Address Register Indirect</dfn>

     <dd><code>%a0@</code> through <code>%a7@</code>



     <br><dt><dfn>Address Register Postincrement</dfn>

     <dd><code>%a0@+</code> through <code>%a7@+</code>



     <br><dt><dfn>Address Register Predecrement</dfn>

     <dd><code>%a0@-</code> through <code>%a7@-</code>



     <br><dt><dfn>Indirect Plus Offset</dfn>

     <dd><code></code><var>apc</var><code>@(</code><var>number</var><code>)</code>



     <br><dt><dfn>Index</dfn>

     <dd><code></code><var>apc</var><code>@(</code><var>number</var><code>,</code><var>register</var><code>:</code><var>size</var><code>:</code><var>scale</var><code>)</code>



     <p>The <var>number</var> may be omitted.



     <br><dt><dfn>Postindex</dfn>

     <dd><code></code><var>apc</var><code>@(</code><var>number</var><code>)@(</code><var>onumber</var><code>,</code><var>register</var><code>:</code><var>size</var><code>:</code><var>scale</var><code>)</code>



     <p>The <var>onumber</var> or the <var>register</var>, but not both, may be omitted.



     <br><dt><dfn>Preindex</dfn>

     <dd><code></code><var>apc</var><code>@(</code><var>number</var><code>,</code><var>register</var><code>:</code><var>size</var><code>:</code><var>scale</var><code>)@(</code><var>onumber</var><code>)</code>



     <p>The <var>number</var> may be omitted.  Omitting the <var>register</var> produces

the Postindex addressing mode.



     <br><dt><dfn>Absolute</dfn>

     <dd><code></code><var>symbol</var><code></code>, or <code></code><var>digits</var><code></code>, optionally followed by

<code>:b</code>, <code>:w</code>, or <code>:l</code>. 

</dl>



   </body></html>



⌨️ 快捷键说明

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