root/doc_inner/gnu_global/S/2784.html

/* [<][>][^][v][top][bottom][index][help] */
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>doc/manual_html/Register-and-memory.html</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.6.5' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/2921.html'>doc</a>/<a href='../files/2926.html'>manual_html</a>/Register-and-memory.html</h2>
<em class='comment'>/* [&lt;][&gt;][^][v][top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
<hr />
<pre>
<a id='L1' name='L1'></a>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
<a id='L2' name='L2'></a>&lt;html&gt;
<a id='L3' name='L3'></a>&lt;!-- Copyright (C) 2010-2021 j8takagi --&gt;
<a id='L4' name='L4'></a>&lt;!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ --&gt;
<a id='L5' name='L5'></a>&lt;head&gt;
<a id='L6' name='L6'></a>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
<a id='L7' name='L7'></a>&lt;title&gt;Register and memory (YACASL2 - CASL II 処理システム)&lt;/title&gt;
<a id='L8' name='L8'></a>
<a id='L9' name='L9'></a>&lt;meta name="description" content="Register and memory (YACASL2 - CASL II 処理システム)"&gt;
<a id='L10' name='L10'></a>&lt;meta name="keywords" content="Register and memory (YACASL2 - CASL II 処理システム)"&gt;
<a id='L11' name='L11'></a>&lt;meta name="resource-type" content="document"&gt;
<a id='L12' name='L12'></a>&lt;meta name="distribution" content="global"&gt;
<a id='L13' name='L13'></a>&lt;meta name="Generator" content="makeinfo"&gt;
<a id='L14' name='L14'></a>&lt;link href="index.html" rel="start" title="Top"&gt;
<a id='L15' name='L15'></a>&lt;link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"&gt;
<a id='L16' name='L16'></a>&lt;link href="Sample-usage.html" rel="up" title="Sample usage"&gt;
<a id='L17' name='L17'></a>&lt;link href="Register-specify.html" rel="next" title="Register specify"&gt;
<a id='L18' name='L18'></a>&lt;link href="Assemble-result.html" rel="prev" title="Assemble result"&gt;
<a id='L19' name='L19'></a>&lt;style type="text/css"&gt;
<a id='L20' name='L20'></a>&lt;!--
<a id='L21' name='L21'></a>a.summary-letter {text-decoration: none}
<a id='L22' name='L22'></a>blockquote.indentedblock {margin-right: 0em}
<a id='L23' name='L23'></a>div.display {margin-left: 3.2em}
<a id='L24' name='L24'></a>div.example {margin-left: 3.2em}
<a id='L25' name='L25'></a>div.lisp {margin-left: 3.2em}
<a id='L26' name='L26'></a>kbd {font-style: oblique}
<a id='L27' name='L27'></a>pre.display {font-family: inherit}
<a id='L28' name='L28'></a>pre.format {font-family: inherit}
<a id='L29' name='L29'></a>pre.menu-comment {font-family: serif}
<a id='L30' name='L30'></a>pre.menu-preformatted {font-family: serif}
<a id='L31' name='L31'></a>span.nolinebreak {white-space: nowrap}
<a id='L32' name='L32'></a>span.roman {font-family: initial; font-weight: normal}
<a id='L33' name='L33'></a>span.sansserif {font-family: sans-serif; font-weight: normal}
<a id='L34' name='L34'></a>ul.no-bullet {list-style: none}
<a id='L35' name='L35'></a>--&gt;
<a id='L36' name='L36'></a>&lt;/style&gt;
<a id='L37' name='L37'></a>&lt;link rel="stylesheet" type="text/css" href="style.css"&gt;
<a id='L38' name='L38'></a>
<a id='L39' name='L39'></a>
<a id='L40' name='L40'></a>&lt;/head&gt;
<a id='L41' name='L41'></a>
<a id='L42' name='L42'></a>&lt;body lang="ja_JP"&gt;
<a id='L43' name='L43'></a>&lt;span id="Register-and-memory"&gt;&lt;/span&gt;&lt;div class="header"&gt;
<a id='L44' name='L44'></a>&lt;p&gt;
<a id='L45' name='L45'></a>Next: &lt;a href="Only-assemble.html" accesskey="n" rel="next"&gt;Only assemble&lt;/a&gt;, Previous: &lt;a href="Assemble-result.html" accesskey="p" rel="prev"&gt;Assemble result&lt;/a&gt;, Up: &lt;a href="Sample-usage.html" accesskey="u" rel="up"&gt;Sample usage&lt;/a&gt; &amp;nbsp; [&lt;a href="index.html#SEC_Contents" title="Table of contents" rel="contents"&gt;Contents&lt;/a&gt;]&lt;/p&gt;
<a id='L46' name='L46'></a>&lt;/div&gt;
<a id='L47' name='L47'></a>&lt;hr&gt;
<a id='L48' name='L48'></a>&lt;span id="Shi-Xing-Shi-norezisutatomemoriwoBiao-Shi"&gt;&lt;/span&gt;&lt;h3 class="section"&gt;2.3 実行時のレジスタとメモリを表示&lt;/h3&gt;
<a id='L49' name='L49'></a>
<a id='L50' name='L50'></a>&lt;p&gt;YACASL2では実行中のCPUのレジスタとメモリの内容をそれぞれ、&lt;samp&gt;-t&lt;/samp&gt;と&lt;samp&gt;-d&lt;/samp&gt;を指定することで表示できます。
<a id='L51' name='L51'></a>&lt;/p&gt;
<a id='L52' name='L52'></a>&lt;p&gt;また、&lt;samp&gt;-M&lt;/samp&gt;で、仮想マシンCOMET II のメモリ容量を語(16 ビット)単位で指定できます。
<a id='L53' name='L53'></a>小さいプログラムを実行するときは、メモリ容量を小さくすれば結果が見やすくなります。
<a id='L54' name='L54'></a>&lt;/p&gt;
<a id='L55' name='L55'></a>&lt;table class="menu" border="0" cellspacing="0"&gt;
<a id='L56' name='L56'></a>&lt;tr&gt;&lt;td align="left" valign="top"&gt;&amp;bull; &lt;a href="Register-specify.html" accesskey="1"&gt;Register specify&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;&lt;td align="left" valign="top"&gt;特定のレジスタを表示
<a id='L57' name='L57'></a>&lt;/td&gt;&lt;/tr&gt;
<a id='L58' name='L58'></a>&lt;tr&gt;&lt;td align="left" valign="top"&gt;&amp;bull; &lt;a href="End-value.html" accesskey="2"&gt;End value&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;&lt;td align="left" valign="top"&gt;
<a id='L59' name='L59'></a>&lt;/td&gt;&lt;/tr&gt;
<a id='L60' name='L60'></a>&lt;tr&gt;&lt;td align="left" valign="top"&gt;&amp;bull; &lt;a href="Step-count.html" accesskey="3"&gt;Step count&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;&lt;td align="left" valign="top"&gt;プログラムのステップ数を表示
<a id='L61' name='L61'></a>&lt;/td&gt;&lt;/tr&gt;
<a id='L62' name='L62'></a>&lt;/table&gt;
<a id='L63' name='L63'></a>
<a id='L64' name='L64'></a>&lt;p&gt;&lt;samp&gt;addl.casl&lt;/samp&gt;では、次のようにCPUのレジスタとメモリの内容を表示できます。
<a id='L65' name='L65'></a>&lt;/p&gt;
<a id='L66' name='L66'></a>&lt;div class="example"&gt;
<a id='L67' name='L67'></a>&lt;pre class="example"&gt;$ &lt;kbd&gt;casl2 -t -d -M16 addl.casl | less&lt;/kbd&gt;
<a id='L68' name='L68'></a>
<a id='L69' name='L69'></a>Assemble addl.casl (0)
<a id='L70' name='L70'></a>
<a id='L71' name='L71'></a>Assemble addl.casl (1)
<a id='L72' name='L72'></a>
<a id='L73' name='L73'></a>Executing machine codes
<a id='L74' name='L74'></a>#0000: Register::::
<a id='L75' name='L75'></a>#0000: GR0:      0 = #0000 = 0000000000000000
<a id='L76' name='L76'></a>#0000: GR1:      0 = #0000 = 0000000000000000
<a id='L77' name='L77'></a>#0000: GR2:      0 = #0000 = 0000000000000000
<a id='L78' name='L78'></a>#0000: GR3:      0 = #0000 = 0000000000000000
<a id='L79' name='L79'></a>#0000: GR4:      0 = #0000 = 0000000000000000
<a id='L80' name='L80'></a>#0000: GR5:      0 = #0000 = 0000000000000000
<a id='L81' name='L81'></a>#0000: GR6:      0 = #0000 = 0000000000000000
<a id='L82' name='L82'></a>#0000: GR7:      0 = #0000 = 0000000000000000
<a id='L83' name='L83'></a>#0000: SP:      16 = #0010 = 0000000000010000
<a id='L84' name='L84'></a>#0000: PR:       0 = #0000 = 0000000000000000
<a id='L85' name='L85'></a>#0000: FR (OF SF ZF): 000
<a id='L86' name='L86'></a>#0000: Memory::::
<a id='L87' name='L87'></a>#0000: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F
<a id='L88' name='L88'></a>       -------------------------------------------------------------------------------------
<a id='L89' name='L89'></a>#0000: 0000: 1010 0007 2210 0008 1110 0009 8100 0003 0002 0000 0000 0000 0000 0000 0000 0000
<a id='L90' name='L90'></a>
<a id='L91' name='L91'></a>#0002: Register::::
<a id='L92' name='L92'></a>#0002: GR0:      0 = #0000 = 0000000000000000
<a id='L93' name='L93'></a>#0002: GR1:      3 = #0003 = 0000000000000011
<a id='L94' name='L94'></a>#0002: GR2:      0 = #0000 = 0000000000000000
<a id='L95' name='L95'></a>#0002: GR3:      0 = #0000 = 0000000000000000
<a id='L96' name='L96'></a>#0002: GR4:      0 = #0000 = 0000000000000000
<a id='L97' name='L97'></a>#0002: GR5:      0 = #0000 = 0000000000000000
<a id='L98' name='L98'></a>#0002: GR6:      0 = #0000 = 0000000000000000
<a id='L99' name='L99'></a>#0002: GR7:      0 = #0000 = 0000000000000000
<a id='L100' name='L100'></a>#0002: SP:      16 = #0010 = 0000000000010000
<a id='L101' name='L101'></a>#0002: PR:       2 = #0002 = 0000000000000010
<a id='L102' name='L102'></a>#0002: FR (OF SF ZF): 000
<a id='L103' name='L103'></a>#0002: Memory::::
<a id='L104' name='L104'></a>#0002: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F
<a id='L105' name='L105'></a>       -------------------------------------------------------------------------------------
<a id='L106' name='L106'></a>#0002: 0000: 1010 0007 2210 0008 1110 0009 8100 0003 0002 0000 0000 0000 0000 0000 0000 0000
<a id='L107' name='L107'></a>
<a id='L108' name='L108'></a>#0004: Register::::
<a id='L109' name='L109'></a>#0004: GR0:      0 = #0000 = 0000000000000000
<a id='L110' name='L110'></a>#0004: GR1:      5 = #0005 = 0000000000000101
<a id='L111' name='L111'></a>#0004: GR2:      0 = #0000 = 0000000000000000
<a id='L112' name='L112'></a>#0004: GR3:      0 = #0000 = 0000000000000000
<a id='L113' name='L113'></a>#0004: GR4:      0 = #0000 = 0000000000000000
<a id='L114' name='L114'></a>#0004: GR5:      0 = #0000 = 0000000000000000
<a id='L115' name='L115'></a>#0004: GR6:      0 = #0000 = 0000000000000000
<a id='L116' name='L116'></a>#0004: GR7:      0 = #0000 = 0000000000000000
<a id='L117' name='L117'></a>#0004: SP:      16 = #0010 = 0000000000010000
<a id='L118' name='L118'></a>#0004: PR:       4 = #0004 = 0000000000000100
<a id='L119' name='L119'></a>#0004: FR (OF SF ZF): 000
<a id='L120' name='L120'></a>#0004: Memory::::
<a id='L121' name='L121'></a>#0004: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F
<a id='L122' name='L122'></a>       -------------------------------------------------------------------------------------
<a id='L123' name='L123'></a>#0004: 0000: 1010 0007 2210 0008 1110 0009 8100 0003 0002 0000 0000 0000 0000 0000 0000 0000
<a id='L124' name='L124'></a>
<a id='L125' name='L125'></a>#0006: Register::::
<a id='L126' name='L126'></a>#0006: GR0:      0 = #0000 = 0000000000000000
<a id='L127' name='L127'></a>#0006: GR1:      5 = #0005 = 0000000000000101
<a id='L128' name='L128'></a>#0006: GR2:      0 = #0000 = 0000000000000000
<a id='L129' name='L129'></a>#0006: GR3:      0 = #0000 = 0000000000000000
<a id='L130' name='L130'></a>#0006: GR4:      0 = #0000 = 0000000000000000
<a id='L131' name='L131'></a>#0006: GR5:      0 = #0000 = 0000000000000000
<a id='L132' name='L132'></a>#0006: GR6:      0 = #0000 = 0000000000000000
<a id='L133' name='L133'></a>#0006: GR7:      0 = #0000 = 0000000000000000
<a id='L134' name='L134'></a>#0006: SP:      16 = #0010 = 0000000000010000
<a id='L135' name='L135'></a>#0006: PR:       6 = #0006 = 0000000000000110
<a id='L136' name='L136'></a>#0006: FR (OF SF ZF): 000
<a id='L137' name='L137'></a>#0006: Memory::::
<a id='L138' name='L138'></a>#0006: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F
<a id='L139' name='L139'></a>       -------------------------------------------------------------------------------------
<a id='L140' name='L140'></a>#0006: 0000: 1010 0007 2210 0008 1110 0009 8100 0003 0002 0005 0000 0000 0000 0000 0000 0000
<a id='L141' name='L141'></a>&lt;/pre&gt;&lt;/div&gt;
<a id='L142' name='L142'></a>
<a id='L143' name='L143'></a>&lt;hr&gt;
<a id='L144' name='L144'></a>&lt;div class="header"&gt;
<a id='L145' name='L145'></a>&lt;p&gt;
<a id='L146' name='L146'></a>Next: &lt;a href="Only-assemble.html" accesskey="n" rel="next"&gt;Only assemble&lt;/a&gt;, Previous: &lt;a href="Assemble-result.html" accesskey="p" rel="prev"&gt;Assemble result&lt;/a&gt;, Up: &lt;a href="Sample-usage.html" accesskey="u" rel="up"&gt;Sample usage&lt;/a&gt; &amp;nbsp; [&lt;a href="index.html#SEC_Contents" title="Table of contents" rel="contents"&gt;Contents&lt;/a&gt;]&lt;/p&gt;
<a id='L147' name='L147'></a>&lt;/div&gt;
<a id='L148' name='L148'></a>
<a id='L149' name='L149'></a>
<a id='L150' name='L150'></a>
<a id='L151' name='L151'></a>&lt;/body&gt;
<a id='L152' name='L152'></a>&lt;/html&gt;
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;][^][v]<a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
</body>
</html>

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