h8-300-regs.html

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

HTML
42 行
字号
<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-Regs">H8/300-Regs</a>,

Next:<a rel="next" accesskey="n" href="H8-300-Addressing.html#H8%2f300-Addressing">H8/300-Addressing</a>,

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

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

<hr><br>

</div>



<h5 class="subsection">Register Names</h5>



   <p>You can use predefined symbols of the form <code>r</code><var>n</var><code>h</code> and

<code>r</code><var>n</var><code>l</code> to refer to the H8/300 registers as sixteen 8-bit

general-purpose registers.  <var>n</var> is a digit from <code>0</code> to

<code>7</code>); for instance, both <code>r0h</code> and <code>r7l</code> are valid

register names.



   <p>You can also use the eight predefined symbols <code>r</code><var>n</var><code></code> to refer

to the H8/300 registers as 16-bit registers (you must use this form for

addressing).



   <p>On the H8/300H, you can also use the eight predefined symbols

<code>er</code><var>n</var><code></code> (<code>er0</code> <small class="dots">...</small> <code>er7</code>) to refer to the 32-bit

general purpose registers.



   <p>The two control registers are called <code>pc</code> (program counter; a

16-bit register, except on the H8/300H where it is 24 bits) and

<code>ccr</code> (condition code register; an 8-bit register).  <code>r7</code> is

used as the stack pointer, and can also be called <code>sp</code>.



   </body></html>



⌨️ 快捷键说明

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