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

📄 h8-300-opcodes.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="H8%2f300%20Opcodes">H8/300 Opcodes</a>,

Previous:<a rel="previous" accesskey="p" href="H8-300-Directives.html#H8%2f300%20Directives">H8/300 Directives</a>,

Up:<a rel="up" accesskey="u" href="H8-300-Dependent.html#H8%2f300-Dependent">H8/300-Dependent</a>

<hr><br>

</div>



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



   <p>For detailed information on the H8/300 machine instruction set, see

<cite>H8/300 Series Programming Manual</cite> (Hitachi ADE-602-025).  For

information specific to the H8/300H, see <cite>H8/300H Series

Programming Manual</cite> (Hitachi).



   <p><code>as</code> implements all the standard H8/300 opcodes.  No additional

pseudo-instructions are needed on this family.



   <p>Four H8/300 instructions (<code>add</code>, <code>cmp</code>, <code>mov</code>,

<code>sub</code>) are defined with variants using the suffixes <code>.b</code>,

<code>.w</code>, and <code>.l</code> to specify the size of a memory operand. 

<code>as</code> supports these suffixes, but does not require them;

since one of the operands is always a register, <code>as</code> can

deduce the correct size.



   <p>For example, since <code>r0</code> refers to a 16-bit register,

<pre class="example">     mov    r0,@foo

<br>is equivalent to<br>

     mov.w  r0,@foo

     </pre>



   <p>If you use the size suffixes, <code>as</code> issues a warning when

the suffix and the register size do not match.



   </body></html>



⌨️ 快捷键说明

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