root/doc/manual_html/Register-specify.html

/* [<][>][^][v][top][bottom][index][help] */
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Copyright (C) 2010-2023 j8takagi -->
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Register specify (YACASL2 - CASL II 処理システム)</title>

<meta name="description" content="Register specify (YACASL2 - CASL II 処理システム)">
<meta name="keywords" content="Register specify (YACASL2 - CASL II 処理システム)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html" rel="start" title="Top">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Register-and-memory.html" rel="up" title="Register and memory">
<link href="End-value.html" rel="next" title="End value">
<link href="Register-and-memory.html" rel="prev" title="Register and memory">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
<link rel="stylesheet" type="text/css" href="style.css">


</head>

<body lang="ja_JP">
<span id="Register-specify"></span><div class="header">
<p>
Next: <a href="End-value.html" accesskey="n" rel="next">End value</a>, Previous: <a href="Register-and-memory.html" accesskey="p" rel="prev">Register and memory</a>, Up: <a href="Register-and-memory.html" accesskey="u" rel="up">Register and memory</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<hr>
<span id="Te-Ding-norezisutawoBiao-Shi"></span><h4 class="subsection">2.3.1 特定のレジスタを表示</h4>

<p><samp>addl.casl</samp>のレジスタやメモリの中で、実行中に値が変化しているのはGR1だけです。
こうした場合は、<code>grep</code>を使って表示される内容を絞り込むことで動作を検証しやすくなります。
</p>
<div class="example">
<pre class="example">$ <kbd>casl2 -t addl.casl | grep 'GR1:'</kbd>
#0000: GR1:      0 = #0000 = 0000000000000000
#0002: GR1:      3 = #0003 = 0000000000000011
#0004: GR1:      5 = #0005 = 0000000000000101
#0006: GR1:      5 = #0005 = 0000000000000101
</pre></div>

<p>この内容を、先に出力したアセンブル結果と比較してください。
次の表のように、PRとGR1、命令行が対応していることがわかります。
</p>
<table>
<tr><td width="30%">PR</td><td width="30%">GR1</td><td width="40%">命令行</td></tr>
<tr><td width="30%">#0000</td><td width="30%">#0000</td><td width="40%">(なし)</td></tr>
<tr><td width="30%">#0002</td><td width="30%">#0003</td><td width="40%"><code>LD GR1,A</code></td></tr>
<tr><td width="30%">#0004</td><td width="30%">#0004</td><td width="40%"><code>ADDL GR1,B</code></td></tr>
<tr><td width="30%">#0006</td><td width="30%">#0006</td><td width="40%"><code>ST GR1,C</code></td></tr>
</table>




</body>
</html>

/* [<][>][^][v][top][bottom][index][help] */