root/doc_inner/doxygen/html/exec_8c_source.html

/* [<][>][^][v][top][bottom][index][help] */
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>YACASL2: src/exec.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  extensions: ["tex2jax.js"],
  jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="http://www.mathjax.org/mathjax/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">YACASL2
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search',false);
  $(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">exec.c</div></div>
</div><!--header-->
<div class="contents">
<a href="exec_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#include &quot;<a class="code" href="exec_8h.html">exec.h</a>&quot;</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#include &quot;<a class="code" href="monitor_8h.html">monitor.h</a>&quot;</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="keywordtype">char</span> *<a class="code hl_function" href="exec_8c.html#a5a98a9f0712105d8d84c29c429d514cf">pr2str</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> pr);</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a1e47c758142963870b2ef1bec9f3b9e4">svcin</a>();</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a4053d08bb471ddbefcd2dc34d2411217">svcout</a>();</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#ada7422171e8f62c1a29649aa92f8e210">setfr</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> adr);</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> <a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> oprx);</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> <a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> oprx);</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span><a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> adr, <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> oprx);</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span><a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> <a class="code hl_function" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> adr, <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> oprx);</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span></div>
<div class="foldopen" id="foldopen00073" data-start="{" data-end="};">
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="exec_8c.html#ab099816057db779f14b1b0bd89341e62">   73</a></span><span class="keyword">static</span> <a class="code hl_typedef" href="cerr_8h.html#a3636a4b86cca574b3786f76f5231ffe5">CERR</a> <a class="code hl_variable" href="exec_8c.html#ab099816057db779f14b1b0bd89341e62">cerr_exec</a>[] = {</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>    { 201, <span class="stringliteral">&quot;Program Register (PR) - memory overflow&quot;</span> },</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>    { 202, <span class="stringliteral">&quot;Stack Pointer (SP) - stack overflow&quot;</span> },</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>    { 203, <span class="stringliteral">&quot;Stack Pointer (SP) - stack underflow&quot;</span> },</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>    { 204, <span class="stringliteral">&quot;OP in word #1 - not command code&quot;</span> },</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>    { 205, <span class="stringliteral">&quot;r/r1 in word #1 - not GR&quot;</span> },</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>    { 206, <span class="stringliteral">&quot;x/r2 in word #1 - not GR&quot;</span> },</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>    { 207, <span class="stringliteral">&quot;address in word #2 - out of memory&quot;</span> },</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>    { 208, <span class="stringliteral">&quot;SVC input - memory overflow&quot;</span> },</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>    { 209, <span class="stringliteral">&quot;SVC output - memory overflow&quot;</span> },</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>    { 214, <span class="stringliteral">&quot;CPU Clocks - not positive integer&quot;</span> },</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>    { 215, <span class="stringliteral">&quot;Memory Size - not integer or out of range: 1 - 65536&quot;</span> },</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>};</div>
</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="struct_8h.html#afdbb7e7d9e799a0e0814654774763d18">   90</a></span><a class="code hl_struct" href="struct_e_x_e_c_m_o_d_e.html">EXECMODE</a> <a class="code hl_variable" href="struct_8h.html#afdbb7e7d9e799a0e0814654774763d18">execmode</a> = {<span class="keyword">false</span>, <span class="keyword">false</span>, <span class="keyword">false</span>, 0, 0xFFFF, <span class="keyword">false</span>, <span class="keyword">false</span>, <span class="keyword">false</span>};</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span> </div>
<div class="foldopen" id="foldopen00092" data-start="{" data-end="}">
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="exec_8h.html#a464c627be6598d74aff7cedc860b6e03">   92</a></span><a class="code hl_typedef" href="struct_8h.html#a850f47aba27f4d034b3ac7f3368a67b3">CLOCK</a> <a class="code hl_function" href="exec_8c.html#a464c627be6598d74aff7cedc860b6e03">clock_str2clock</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *str) {</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>    <span class="keywordtype">long</span> val = <a class="code hl_function" href="cmem_8h.html#ad18f5a21ccec37cf8f67bc4f39cee7bb">str2l_range</a>(str, 1, LONG_MAX, <span class="stringliteral">&quot;Clock&quot;</span>);</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>    <span class="keywordflow">if</span>(val &gt; <a class="code hl_enumvalue" href="struct_8h.html#a3163ec8332252a40b7609df6cc48a6e6ac9db03b60111f9c385cf16cfe1f01d29">MAX_CLOCKS</a>) {</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>        val = <a class="code hl_enumvalue" href="struct_8h.html#a3163ec8332252a40b7609df6cc48a6e6ac9db03b60111f9c385cf16cfe1f01d29">MAX_CLOCKS</a>;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>        fprintf(stderr, <span class="stringliteral">&quot;Info - %s: Clock frequency exceeds maximum. Set to %ld\n&quot;</span>, str, val);</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>    }</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>    <span class="keywordflow">return</span> (<a class="code hl_typedef" href="struct_8h.html#a850f47aba27f4d034b3ac7f3368a67b3">CLOCK</a>)val;</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>}</div>
</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span> </div>
<div class="foldopen" id="foldopen00101" data-start="{" data-end="}">
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="exec_8c.html#a5a98a9f0712105d8d84c29c429d514cf">  101</a></span><span class="keywordtype">char</span> *<a class="code hl_function" href="exec_8c.html#a5a98a9f0712105d8d84c29c429d514cf">pr2str</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> pr)</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>{</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>    <span class="keywordtype">char</span> *str = <a class="code hl_function" href="cmem_8h.html#ab59996fd09e57355900e5d0f6a772297">malloc_chk</a>(<a class="code hl_enumvalue" href="cerr_8h.html#a311490462fe850f51cc9896c35411d22a388a5ba12695376b375b9f183f219fcf">CERRSTRSIZE</a> + 1, <span class="stringliteral">&quot;pr2str.pr&quot;</span>);</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>    sprintf(str, <span class="stringliteral">&quot;PR:#%04X&quot;</span>, pr);</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>    <span class="keywordflow">return</span> str;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>}</div>
</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span> </div>
<div class="foldopen" id="foldopen00109" data-start="{" data-end="}">
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="exec_8c.html#a1e47c758142963870b2ef1bec9f3b9e4">  109</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a1e47c758142963870b2ef1bec9f3b9e4">svcin</a>()</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>{</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>    <span class="keywordtype">char</span> *buf = <a class="code hl_function" href="cmem_8h.html#ab59996fd09e57355900e5d0f6a772297">malloc_chk</a>(<a class="code hl_enumvalue" href="exec_8h.html#a4e0a6f969a932f5910581de8d4a46f04a56190d5ca1ea4a8db3741d97f33c9d9c">INSIZE</a> + 1, <span class="stringliteral">&quot;svcin.buf&quot;</span>);</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span> </div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span>    <span class="keywordflow">if</span>(fgets(buf, <a class="code hl_enumvalue" href="exec_8h.html#a4e0a6f969a932f5910581de8d4a46f04a56190d5ca1ea4a8db3741d97f33c9d9c">INSIZE</a>, stdin) == NULL) {</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[1]] = 0x0;</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[2]] = 0xFFFF;</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>        <a class="code hl_define" href="cmem_8h.html#a105949c59c998e38aad80266afac92bf">FREE</a>(buf);</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>        <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>    }</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; <a class="code hl_enumvalue" href="exec_8h.html#a4e0a6f969a932f5910581de8d4a46f04a56190d5ca1ea4a8db3741d97f33c9d9c">INSIZE</a>; i++) {</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>        <span class="keywordflow">if</span>(!buf[i] || buf[i] == <span class="charliteral">&#39;\n&#39;</span>) {</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>            <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>        }</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span>        <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[1] + i &gt;= <a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;end) {</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>            <a class="code hl_function" href="cerr_8h.html#ac878972bcd42a554769270aadf8c6bbe">setcerr</a>(208, <span class="stringliteral">&quot;&quot;</span>);    <span class="comment">/* SVC input - memory overflow */</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span>            <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>        }</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[1] + i] = buf[i];</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[2]] = i + 1;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>    }</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>    <a class="code hl_define" href="cmem_8h.html#a105949c59c998e38aad80266afac92bf">FREE</a>(buf);</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>}</div>
</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span> </div>
<div class="foldopen" id="foldopen00133" data-start="{" data-end="}">
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="exec_8c.html#a4053d08bb471ddbefcd2dc34d2411217">  133</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a4053d08bb471ddbefcd2dc34d2411217">svcout</a>()</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>{</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>    <span class="keywordtype">int</span> i;</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w;</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span> </div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>    <span class="keywordflow">for</span>(i = 0; i &lt; <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[2]]; i++) {</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>        <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[1] + i &gt;= <a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;end) {</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>            <a class="code hl_function" href="cerr_8h.html#ac878972bcd42a554769270aadf8c6bbe">setcerr</a>(209, <span class="stringliteral">&quot;&quot;</span>);    <span class="comment">/* SVC output - memory overflow */</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span>            <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>        }</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>        <span class="comment">/* 「JIS X 0201ラテン文字・片仮名用8ビット符号で規定する文字の符号表」</span></div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span><span class="comment">           に記載された文字と、改行(CR)/タブを表示 */</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>        <span class="comment">/* それ以外の文字は、「.」で表す */</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>        <span class="keywordflow">if</span>(((w = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[1]+i]) &gt;= 0x20 &amp;&amp; w &lt;= 0x7E) ||    <span class="comment">/* JIS X 0201ラテン文字 */</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>           (w &gt;= 0xA0 &amp;&amp; w &lt;= 0xFE) ||                                       <span class="comment">/* JIS X 0201片仮名用8ビット符号 */</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span>           w == 0xA || w == <span class="charliteral">&#39;\t&#39;</span>)</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span>        {</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>            putchar((<span class="keywordtype">char</span>)w);</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>        } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>            putchar(<span class="charliteral">&#39;.&#39;</span>);</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>        }</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>    }</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span>}</div>
</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span> </div>
<div class="foldopen" id="foldopen00157" data-start="{" data-end="}">
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"><a class="line" href="exec_8c.html#ada7422171e8f62c1a29649aa92f8e210">  157</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#ada7422171e8f62c1a29649aa92f8e210">setfr</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> adr)</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span>{</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = 0x0;</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span>    <span class="comment">/* 第15ビットが1のとき、SFは1 */</span></div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span>    <span class="keywordflow">if</span>((adr &amp; 0x8000) == 0x8000) {</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d">SF</a>;</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>    }</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span>    <span class="comment">/* 演算結果が0のとき、ZFは1 */</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>    <span class="keywordflow">if</span>(adr == 0x0) {</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a>;</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>    }</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span>}</div>
</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span> </div>
<div class="foldopen" id="foldopen00170" data-start="{" data-end="}">
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">  170</a></span><a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> <a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> oprx)</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span>{</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> r = 0;</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>    <span class="keywordtype">char</span> *s = NULL;</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span> </div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span>    <span class="keywordflow">if</span>((r = ((oprx &amp; 0x00F0) &gt;&gt;4)) &gt; <a class="code hl_enumvalue" href="struct_8h.html#a3163ec8332252a40b7609df6cc48a6e6a8fa6b56ad50d439c542216068ede577d">GRSIZE</a> - 1) {</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span>        <a class="code hl_function" href="cerr_8h.html#ac878972bcd42a554769270aadf8c6bbe">setcerr</a>(205, s = <a class="code hl_function" href="exec_8c.html#a5a98a9f0712105d8d84c29c429d514cf">pr2str</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr));    <span class="comment">/* r/r1 in word #1 - not GR */</span></div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span>        <a class="code hl_define" href="cmem_8h.html#a105949c59c998e38aad80266afac92bf">FREE</a>(s);</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span>        <span class="keywordflow">return</span> 0x0;</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span>    }</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span>    <span class="keywordflow">return</span> r;</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span>}</div>
</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span> </div>
<div class="foldopen" id="foldopen00183" data-start="{" data-end="}">
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"><a class="line" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">  183</a></span><a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> <a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> oprx)</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span>{</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> x = 0;</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span>    <span class="keywordtype">char</span> *s = NULL;</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span> </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span>    <span class="keywordflow">if</span>((x = (oprx &amp; 0x000F)) &gt; <a class="code hl_enumvalue" href="struct_8h.html#a3163ec8332252a40b7609df6cc48a6e6a8fa6b56ad50d439c542216068ede577d">GRSIZE</a> - 1) {</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span>        <a class="code hl_function" href="cerr_8h.html#ac878972bcd42a554769270aadf8c6bbe">setcerr</a>(206, s = <a class="code hl_function" href="exec_8c.html#a5a98a9f0712105d8d84c29c429d514cf">pr2str</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr));    <span class="comment">/* r/r1 in word #1 - not GR */</span></div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span>        <a class="code hl_define" href="cmem_8h.html#a105949c59c998e38aad80266afac92bf">FREE</a>(s);</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span>        <span class="keywordflow">return</span> 0x0;</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span>    }</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno">  193</span>    <span class="keywordflow">return</span> x;</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span>}</div>
</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span> </div>
<div class="foldopen" id="foldopen00196" data-start="{" data-end="}">
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"><a class="line" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">  196</a></span><a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> adr, <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> oprx)</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span>{</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> a = adr;</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno">  199</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> x = <a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(oprx);</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span> </div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span>    <span class="keywordflow">if</span>(x &gt; 0) {</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>        a += <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[x];</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span>    }</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span>    <span class="keywordflow">return</span> a;</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span>}</div>
</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span> </div>
<div class="foldopen" id="foldopen00207" data-start="{" data-end="}">
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"><a class="line" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">  207</a></span><a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> <a class="code hl_function" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> adr, <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> oprx)</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span>{</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> a = 0;</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span>    <span class="keywordtype">char</span> *s = NULL;</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span> </div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno">  212</span>    <span class="keywordflow">if</span>((a = <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(adr, oprx)) &gt;= <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memsize) {</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span>        <a class="code hl_function" href="cerr_8h.html#ac878972bcd42a554769270aadf8c6bbe">setcerr</a>(207, s = <a class="code hl_function" href="exec_8c.html#a5a98a9f0712105d8d84c29c429d514cf">pr2str</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1));    <span class="comment">/* address in word #2 - out of memory */</span></div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span>        <a class="code hl_define" href="cmem_8h.html#a105949c59c998e38aad80266afac92bf">FREE</a>(s);</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span>        <span class="keywordflow">return</span> 0x0;</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span>    }</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span>    <span class="keywordflow">return</span> <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[a];</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span>}</div>
</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span> </div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span><span class="comment">/* exec.hで定義された関数群 */</span></div>
<div class="foldopen" id="foldopen00221" data-start="{" data-end="}">
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"><a class="line" href="exec_8h.html#aa9ea43a7831385fcd73e33e0675b2441">  221</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#aa9ea43a7831385fcd73e33e0675b2441">addcerrlist_exec</a>()</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span>{</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span>    <a class="code hl_function" href="cerr_8h.html#a4d0e0d9cf66be33e95ca2c73d2ea2c63">addcerrlist</a>(<a class="code hl_define" href="cmem_8h.html#abd34d9a0fac0c592a7b76395011bb370">ARRAYSIZE</a>(<a class="code hl_variable" href="exec_8c.html#ab099816057db779f14b1b0bd89341e62">cerr_exec</a>), <a class="code hl_variable" href="exec_8c.html#ab099816057db779f14b1b0bd89341e62">cerr_exec</a>);</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno">  224</span>}</div>
</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno">  225</span> </div>
<div class="foldopen" id="foldopen00226" data-start="{" data-end="}">
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"><a class="line" href="exec_8h.html#a9feb7476507383309c8e3ff2648016f3">  226</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a9feb7476507383309c8e3ff2648016f3">nop</a>()</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno">  227</span>{</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;NOP&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac157bdf0b85a40d2619cbc8bc1ae5fe2">NONE</a>);</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno">  229</span>}</div>
</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno">  230</span> </div>
<div class="foldopen" id="foldopen00231" data-start="{" data-end="}">
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"><a class="line" href="exec_8h.html#a6d5cc82de56424225abccace3db62ec0">  231</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a6d5cc82de56424225abccace3db62ec0">ld_r_adr_x</a>()</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span>{</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno">  233</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno">  234</span>    <a class="code hl_function" href="exec_8c.html#ada7422171e8f62c1a29649aa92f8e210">setfr</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0])] = <a class="code hl_function" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a>(w[1], w[0]));</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno">  235</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;LD&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno">  236</span>}</div>
</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span> </div>
<div class="foldopen" id="foldopen00238" data-start="{" data-end="}">
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"><a class="line" href="exec_8h.html#af855901d936e8f58a9e2454a33911e25">  238</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#af855901d936e8f58a9e2454a33911e25">ld_r1_r2</a>()</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno">  239</span>{</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno">  240</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr]};</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno">  241</span>    <a class="code hl_function" href="exec_8c.html#ada7422171e8f62c1a29649aa92f8e210">setfr</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0])] = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(w[0])]);</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno">  242</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;LD&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac82f34e8304fe6bd020a6123a6692349">R1_R2</a>);</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span>}</div>
</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span> </div>
<div class="foldopen" id="foldopen00245" data-start="{" data-end="}">
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"><a class="line" href="exec_8h.html#a1bf1cd600d07bee6db29b0bdfd56aa1d">  245</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a1bf1cd600d07bee6db29b0bdfd56aa1d">st</a>()</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno">  246</span>{</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno">  247</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0])] = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0])];</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;ST&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span>}</div>
</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span> </div>
<div class="foldopen" id="foldopen00252" data-start="{" data-end="}">
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"><a class="line" href="exec_8h.html#ad363b2008859f55495d91f77bb4b91d5">  252</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#ad363b2008859f55495d91f77bb4b91d5">lad</a>()</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span>{</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno">  255</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0])] = <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]);</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno">  256</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;LAD&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno">  257</span>}</div>
</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno">  258</span> </div>
<div class="foldopen" id="foldopen00259" data-start="{" data-end="}">
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"><a class="line" href="exec_8c.html#a3df9da6aa6a2a63511b4395d7b4c1736">  259</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a3df9da6aa6a2a63511b4395d7b4c1736">adda</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> r, <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> val)</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno">  260</span>{</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno">  261</span>    <span class="keywordtype">long</span> tmp;</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span> </div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno">  263</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = 0x0;</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span>    <span class="comment">/* 引数の値を16ビット符号付整数として加算し、オーバーフローをチェック */</span></div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span>    assert(<span class="keyword">sizeof</span>(<span class="keywordtype">short</span>) * 8 == 16 &amp;&amp; (<span class="keywordtype">short</span>)0xFFFF == -1);</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span>    <span class="keywordflow">if</span>((tmp = (<span class="keywordtype">short</span>)(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r]) + (<span class="keywordtype">short</span>)val) &gt; 32767 || tmp &lt; -32768) {</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a721d4f1eaa4a30661aaef3353e5305e2">OF</a>;</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span>    }</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span>    <span class="comment">/* 加算した結果を、WORD値に戻す */</span></div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] = (<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a>)(tmp &amp; 0xFFFF);</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno">  271</span>    <span class="keywordflow">if</span>((<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &amp; 0x8000) == 0x8000) {</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d">SF</a>;</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span>    } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] == 0x0) {</div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno">  274</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a>;</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span>    }</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno">  276</span>}</div>
</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno">  277</span> </div>
<div class="foldopen" id="foldopen00278" data-start="{" data-end="}">
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"><a class="line" href="exec_8h.html#a842893508b5fafe459eb48127187259d">  278</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a842893508b5fafe459eb48127187259d">adda_r_adr_x</a>()</div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno">  279</span>{</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno">  280</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno">  281</span>    <a class="code hl_function" href="exec_8c.html#a3df9da6aa6a2a63511b4395d7b4c1736">adda</a>(<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]), <a class="code hl_function" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a>(w[1], w[0]));</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;ADDA&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno">  283</span>}</div>
</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno">  284</span> </div>
<div class="foldopen" id="foldopen00285" data-start="{" data-end="}">
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"><a class="line" href="exec_8h.html#a45e600d2faad863defabbf2ed8e2e32e">  285</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a45e600d2faad863defabbf2ed8e2e32e">adda_r1_r2</a>()</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span>{</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr]};</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span>    <a class="code hl_function" href="exec_8c.html#a3df9da6aa6a2a63511b4395d7b4c1736">adda</a>(<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]), <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(w[0])]);</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno">  289</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;ADDA&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac82f34e8304fe6bd020a6123a6692349">R1_R2</a>);</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span>}</div>
</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno">  291</span> </div>
<div class="foldopen" id="foldopen00292" data-start="{" data-end="}">
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"><a class="line" href="exec_8h.html#aafb6990b0fc60cf0904bc39db338e45f">  292</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#aafb6990b0fc60cf0904bc39db338e45f">suba_r_adr_x</a>()</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno">  293</span>{</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno">  294</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno">  295</span>    <a class="code hl_function" href="exec_8c.html#a3df9da6aa6a2a63511b4395d7b4c1736">adda</a>(<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]), ~(<a class="code hl_function" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a>(w[1], w[0])) + 1);</div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno">  296</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;SUBA&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno">  297</span>}</div>
</div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno">  298</span> </div>
<div class="foldopen" id="foldopen00299" data-start="{" data-end="}">
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"><a class="line" href="exec_8h.html#a22994d21dc29edf6a3d9967472f90c3e">  299</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a22994d21dc29edf6a3d9967472f90c3e">suba_r1_r2</a>()</div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno">  300</span>{</div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno">  301</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr]};</div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span>    <a class="code hl_function" href="exec_8c.html#a3df9da6aa6a2a63511b4395d7b4c1736">adda</a>(<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]), ~(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(w[0])]) + 1);</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;SUBA&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac82f34e8304fe6bd020a6123a6692349">R1_R2</a>);</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span>}</div>
</div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span> </div>
<div class="foldopen" id="foldopen00306" data-start="{" data-end="}">
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"><a class="line" href="exec_8c.html#a9572294f36af139552ce68778a1576b0">  306</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a9572294f36af139552ce68778a1576b0">addl_gr</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> r, <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> val, <span class="keywordtype">bool</span> add)</div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno">  307</span>{</div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno">  308</span>    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> o = 0;</div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno">  309</span>    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> s = 0;</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno">  310</span> </div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span>    o = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r];</div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno">  312</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = 0;    <span class="comment">/* flag initialize */</span></div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno">  313</span> </div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno">  314</span>    <span class="keywordflow">if</span>(add == <span class="keyword">true</span>) {</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno">  315</span>        s = o + val;</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno">  316</span>        <span class="keywordflow">if</span>(s &gt; 0xFFFF) {</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span>            <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a721d4f1eaa4a30661aaef3353e5305e2">OF</a>;</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno">  318</span>        }</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno">  319</span>    } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno">  320</span>        <span class="keywordflow">if</span>(o &lt; val) {</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno">  321</span>            <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a721d4f1eaa4a30661aaef3353e5305e2">OF</a>;</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno">  322</span>        }</div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno">  323</span>        s = o + (~val + 1);</div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno">  324</span>        <span class="keywordflow">if</span>(s &gt; 0xFFFF) {</div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno">  325</span>            s &amp;= 0xFFFF;</div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno">  326</span>        }</div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno">  327</span>    }</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno">  328</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] = (<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a>)s;</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span> </div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno">  330</span>    <span class="keywordflow">if</span>((s &amp; 0x8000) == 0x8000) {</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno">  331</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d">SF</a>;</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno">  332</span>    }</div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno">  333</span>    <span class="keywordflow">else</span> <span class="keywordflow">if</span>(s == 0x0) {</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno">  334</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a>;</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno">  335</span>    }</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno">  336</span>}</div>
</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno">  337</span> </div>
<div class="foldopen" id="foldopen00338" data-start="{" data-end="}">
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"><a class="line" href="exec_8h.html#ab2628c311f9978fc4dd77f5fa14719ca">  338</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#ab2628c311f9978fc4dd77f5fa14719ca">addl_r_adr_x</a>()</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno">  339</span>{</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno">  340</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno">  341</span>    <a class="code hl_function" href="exec_8c.html#a9572294f36af139552ce68778a1576b0">addl_gr</a>(<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]), <a class="code hl_function" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a>(w[1], w[0]), <span class="keyword">true</span>);</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno">  342</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;ADDL&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno">  343</span>}</div>
</div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno">  344</span> </div>
<div class="foldopen" id="foldopen00345" data-start="{" data-end="}">
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"><a class="line" href="exec_8h.html#a87aedf3673723c6a6f2f98bd7b1110b2">  345</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a87aedf3673723c6a6f2f98bd7b1110b2">addl_r1_r2</a>()</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno">  346</span>{</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno">  347</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr]};</div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno">  348</span>    <a class="code hl_function" href="exec_8c.html#a9572294f36af139552ce68778a1576b0">addl_gr</a>(<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]), <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(w[0])], <span class="keyword">true</span>);</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno">  349</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;ADDL&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac82f34e8304fe6bd020a6123a6692349">R1_R2</a>);</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno">  350</span>}</div>
</div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno">  351</span> </div>
<div class="foldopen" id="foldopen00352" data-start="{" data-end="}">
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"><a class="line" href="exec_8h.html#a49245ab507ecf7f59a9dc5339fde754d">  352</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a49245ab507ecf7f59a9dc5339fde754d">subl_r_adr_x</a>()</div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno">  353</span>{</div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno">  354</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno">  355</span>    <a class="code hl_function" href="exec_8c.html#a9572294f36af139552ce68778a1576b0">addl_gr</a>(<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]), <a class="code hl_function" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a>(w[1], w[0]), <span class="keyword">false</span>);</div>
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno">  356</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;SUBL&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno">  357</span>}</div>
</div>
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno">  358</span> </div>
<div class="foldopen" id="foldopen00359" data-start="{" data-end="}">
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"><a class="line" href="exec_8h.html#a942a112cf0f379e9f4a9c65401207208">  359</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a942a112cf0f379e9f4a9c65401207208">subl_r1_r2</a>()</div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno">  360</span>{</div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno">  361</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr]};</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span>    <a class="code hl_function" href="exec_8c.html#a9572294f36af139552ce68778a1576b0">addl_gr</a>(<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]), <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(w[0])], <span class="keyword">false</span>);</div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno">  363</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;SUBL&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac82f34e8304fe6bd020a6123a6692349">R1_R2</a>);</div>
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno">  364</span>}</div>
</div>
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno">  365</span> </div>
<div class="foldopen" id="foldopen00366" data-start="{" data-end="}">
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno"><a class="line" href="exec_8h.html#a11f68b1d3b4a23cf5b977986001e8790">  366</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a11f68b1d3b4a23cf5b977986001e8790">and_r_adr_x</a>()</div>
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno">  367</span>{</div>
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno">  368</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno">  369</span>    <a class="code hl_function" href="exec_8c.html#ada7422171e8f62c1a29649aa92f8e210">setfr</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0])] &amp;= <a class="code hl_function" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a>(w[1], w[0]));</div>
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno">  370</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;AND&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno">  371</span>}</div>
</div>
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno">  372</span> </div>
<div class="foldopen" id="foldopen00373" data-start="{" data-end="}">
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno"><a class="line" href="exec_8h.html#aa900f72574e89c5e97f9571a1f2ef999">  373</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#aa900f72574e89c5e97f9571a1f2ef999">and_r1_r2</a>()</div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno">  374</span>{</div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno">  375</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr]};</div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno">  376</span>    <a class="code hl_function" href="exec_8c.html#ada7422171e8f62c1a29649aa92f8e210">setfr</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0])] &amp;= <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(w[0])]);</div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno">  377</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;AND&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac82f34e8304fe6bd020a6123a6692349">R1_R2</a>);</div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno">  378</span>}</div>
</div>
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno">  379</span> </div>
<div class="foldopen" id="foldopen00380" data-start="{" data-end="}">
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"><a class="line" href="exec_8h.html#aaf94d17e5d9c08f17d065478c494cb2a">  380</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#aaf94d17e5d9c08f17d065478c494cb2a">or_r_adr_x</a>()</div>
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno">  381</span>{</div>
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno">  382</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00383" name="l00383"></a><span class="lineno">  383</span>    <a class="code hl_function" href="exec_8c.html#ada7422171e8f62c1a29649aa92f8e210">setfr</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0])] |= <a class="code hl_function" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a>(w[1], w[0]));</div>
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno">  384</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;OR&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno">  385</span>}</div>
</div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno">  386</span> </div>
<div class="foldopen" id="foldopen00387" data-start="{" data-end="}">
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno"><a class="line" href="exec_8h.html#aedd10f3b4f5a43d804bfa3a2c950599a">  387</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#aedd10f3b4f5a43d804bfa3a2c950599a">or_r1_r2</a>()</div>
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno">  388</span>{</div>
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno">  389</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr]};</div>
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno">  390</span>    <a class="code hl_function" href="exec_8c.html#ada7422171e8f62c1a29649aa92f8e210">setfr</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0])] |= <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(w[0])]);</div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno">  391</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;OR&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac82f34e8304fe6bd020a6123a6692349">R1_R2</a>);</div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno">  392</span>}</div>
</div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno">  393</span> </div>
<div class="foldopen" id="foldopen00394" data-start="{" data-end="}">
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno"><a class="line" href="exec_8h.html#ae0ddc2d504b2bab98fc63e3f098436f6">  394</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#ae0ddc2d504b2bab98fc63e3f098436f6">xor_r_adr_x</a>()</div>
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno">  395</span>{</div>
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno">  396</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno">  397</span>    <a class="code hl_function" href="exec_8c.html#ada7422171e8f62c1a29649aa92f8e210">setfr</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0])] ^= <a class="code hl_function" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a>(w[1], w[0]));</div>
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno">  398</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;XOR&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno">  399</span>}</div>
</div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno">  400</span> </div>
<div class="foldopen" id="foldopen00401" data-start="{" data-end="}">
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno"><a class="line" href="exec_8h.html#a47c70d8d0495bc3170382bfb482c3e09">  401</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a47c70d8d0495bc3170382bfb482c3e09">xor_r1_r2</a>()</div>
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno">  402</span>{</div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno">  403</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr]};</div>
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno">  404</span>    <a class="code hl_function" href="exec_8c.html#ada7422171e8f62c1a29649aa92f8e210">setfr</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0])] ^= <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(w[0])]);</div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno">  405</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;XOR&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac82f34e8304fe6bd020a6123a6692349">R1_R2</a>);</div>
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno">  406</span>}</div>
</div>
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno">  407</span> </div>
<div class="foldopen" id="foldopen00408" data-start="{" data-end="}">
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"><a class="line" href="exec_8c.html#a9fb3dcc98fcc76ac8d3ee30f07503344">  408</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a9fb3dcc98fcc76ac8d3ee30f07503344">cpa</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> r, <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> val)</div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span>{</div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno">  410</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = 0;</div>
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno">  411</span>    <span class="keywordflow">if</span>((<span class="keywordtype">short</span>)<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &lt; (<span class="keywordtype">short</span>)val) {</div>
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno">  412</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d">SF</a>;</div>
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno">  413</span>    } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] == val) {</div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno">  414</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a>;</div>
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno">  415</span>    }</div>
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno">  416</span>}</div>
</div>
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno">  417</span> </div>
<div class="foldopen" id="foldopen00418" data-start="{" data-end="}">
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno"><a class="line" href="exec_8h.html#aa8a4de731fba67bb2a76f74f029cfe1d">  418</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#aa8a4de731fba67bb2a76f74f029cfe1d">cpa_r_adr_x</a>()</div>
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno">  419</span>{</div>
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno">  420</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno">  421</span>    <a class="code hl_function" href="exec_8c.html#a9fb3dcc98fcc76ac8d3ee30f07503344">cpa</a>(<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]), <a class="code hl_function" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a>(w[1], w[0]));</div>
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno">  422</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;CPA&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno">  423</span>}</div>
</div>
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno">  424</span> </div>
<div class="foldopen" id="foldopen00425" data-start="{" data-end="}">
<div class="line"><a id="l00425" name="l00425"></a><span class="lineno"><a class="line" href="exec_8h.html#a95534aefaeb46d9f0549468c2bd9cc7d">  425</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a95534aefaeb46d9f0549468c2bd9cc7d">cpa_r1_r2</a>()</div>
<div class="line"><a id="l00426" name="l00426"></a><span class="lineno">  426</span>{</div>
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno">  427</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr]};</div>
<div class="line"><a id="l00428" name="l00428"></a><span class="lineno">  428</span>    <a class="code hl_function" href="exec_8c.html#a9fb3dcc98fcc76ac8d3ee30f07503344">cpa</a>(<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]), <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(w[0])]);</div>
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno">  429</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;CPA&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac82f34e8304fe6bd020a6123a6692349">R1_R2</a>);</div>
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno">  430</span>}</div>
</div>
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno">  431</span> </div>
<div class="foldopen" id="foldopen00432" data-start="{" data-end="}">
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno"><a class="line" href="exec_8c.html#a26131751fd368a197c00a4502714fd3e">  432</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a26131751fd368a197c00a4502714fd3e">cpl</a>(<a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> r, <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> val)</div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno">  433</span>{</div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno">  434</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = 0x0;</div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno">  435</span>    <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &lt; val) {</div>
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno">  436</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d">SF</a>;</div>
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno">  437</span>    } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] == val) {</div>
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno">  438</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a>;</div>
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno">  439</span>    }</div>
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno">  440</span>}</div>
</div>
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno">  441</span> </div>
<div class="foldopen" id="foldopen00442" data-start="{" data-end="}">
<div class="line"><a id="l00442" name="l00442"></a><span class="lineno"><a class="line" href="exec_8h.html#a2b836cc590ced28ba18cca2c230ba905">  442</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a2b836cc590ced28ba18cca2c230ba905">cpl_r_adr_x</a>()</div>
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno">  443</span>{</div>
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno">  444</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00445" name="l00445"></a><span class="lineno">  445</span>    <a class="code hl_function" href="exec_8c.html#a26131751fd368a197c00a4502714fd3e">cpl</a>(<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]), <a class="code hl_function" href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a>(w[1], w[0]));</div>
<div class="line"><a id="l00446" name="l00446"></a><span class="lineno">  446</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;CPL&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno">  447</span>}</div>
</div>
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno">  448</span> </div>
<div class="foldopen" id="foldopen00449" data-start="{" data-end="}">
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno"><a class="line" href="exec_8h.html#a87b13998ec6e7483f951c45b63a1e06e">  449</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a87b13998ec6e7483f951c45b63a1e06e">cpl_r1_r2</a>()</div>
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno">  450</span>{</div>
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno">  451</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr]};</div>
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno">  452</span>    <a class="code hl_function" href="exec_8c.html#a26131751fd368a197c00a4502714fd3e">cpl</a>(<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]), <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a>(w[0])]);</div>
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno">  453</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;CPL&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac82f34e8304fe6bd020a6123a6692349">R1_R2</a>);</div>
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno">  454</span>}</div>
</div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno">  455</span> </div>
<div class="foldopen" id="foldopen00456" data-start="{" data-end="}">
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno"><a class="line" href="exec_8h.html#a50fbe64e68dc9ba1b228ae5f6280e978">  456</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a50fbe64e68dc9ba1b228ae5f6280e978">sla</a>()</div>
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno">  457</span>{</div>
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno">  458</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno">  459</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> r = <a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]);</div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno">  460</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> sign = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &amp; 0x8000;</div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno">  461</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> last = 0;</div>
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno">  462</span> </div>
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno">  463</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = 0;</div>
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno">  464</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &amp;= 0x7FFF;</div>
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno">  465</span>    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]); i++) {</div>
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno">  466</span>        last = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &amp; 0x4000;</div>
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno">  467</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &lt;&lt;= 1;</div>
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno">  468</span>    }</div>
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno">  469</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] = sign | (<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &amp; 0x7FFF);</div>
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno">  470</span>    <span class="comment">/* OFに、レジスタから最後に送り出されたビットの値を設定 */</span></div>
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno">  471</span>    <span class="keywordflow">if</span>(last &gt; 0x0) {</div>
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno">  472</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a721d4f1eaa4a30661aaef3353e5305e2">OF</a>;</div>
<div class="line"><a id="l00473" name="l00473"></a><span class="lineno">  473</span>    }</div>
<div class="line"><a id="l00474" name="l00474"></a><span class="lineno">  474</span>    <span class="comment">/* 符号(第15ビット)が1のとき、SFは1 */</span></div>
<div class="line"><a id="l00475" name="l00475"></a><span class="lineno">  475</span>    <span class="keywordflow">if</span>(sign &gt; 0x0) {</div>
<div class="line"><a id="l00476" name="l00476"></a><span class="lineno">  476</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d">SF</a>;</div>
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno">  477</span>    }</div>
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno">  478</span>    <span class="comment">/* 演算結果が0のとき、ZFは1 */</span></div>
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno">  479</span>    <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] == 0x0) {</div>
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno">  480</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a>;</div>
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno">  481</span>    }</div>
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno">  482</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;SLA&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno">  483</span>}</div>
</div>
<div class="line"><a id="l00484" name="l00484"></a><span class="lineno">  484</span> </div>
<div class="foldopen" id="foldopen00485" data-start="{" data-end="}">
<div class="line"><a id="l00485" name="l00485"></a><span class="lineno"><a class="line" href="exec_8h.html#a2caae245775260efa873a69864ca27ec">  485</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a2caae245775260efa873a69864ca27ec">sra</a>()</div>
<div class="line"><a id="l00486" name="l00486"></a><span class="lineno">  486</span>{</div>
<div class="line"><a id="l00487" name="l00487"></a><span class="lineno">  487</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00488" name="l00488"></a><span class="lineno">  488</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> r = <a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]);</div>
<div class="line"><a id="l00489" name="l00489"></a><span class="lineno">  489</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> sign = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &amp; 0x8000;</div>
<div class="line"><a id="l00490" name="l00490"></a><span class="lineno">  490</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> last = 0;</div>
<div class="line"><a id="l00491" name="l00491"></a><span class="lineno">  491</span> </div>
<div class="line"><a id="l00492" name="l00492"></a><span class="lineno">  492</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = 0;</div>
<div class="line"><a id="l00493" name="l00493"></a><span class="lineno">  493</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &amp;= 0x7FFF;</div>
<div class="line"><a id="l00494" name="l00494"></a><span class="lineno">  494</span>    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]); i++) {</div>
<div class="line"><a id="l00495" name="l00495"></a><span class="lineno">  495</span>        last = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &amp; 0x1;</div>
<div class="line"><a id="l00496" name="l00496"></a><span class="lineno">  496</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &gt;&gt;= 1;</div>
<div class="line"><a id="l00497" name="l00497"></a><span class="lineno">  497</span>        <span class="keywordflow">if</span>(sign &gt; 0) {</div>
<div class="line"><a id="l00498" name="l00498"></a><span class="lineno">  498</span>            <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] |= 0x4000;</div>
<div class="line"><a id="l00499" name="l00499"></a><span class="lineno">  499</span>        }</div>
<div class="line"><a id="l00500" name="l00500"></a><span class="lineno">  500</span>    }</div>
<div class="line"><a id="l00501" name="l00501"></a><span class="lineno">  501</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] = sign | <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r];</div>
<div class="line"><a id="l00502" name="l00502"></a><span class="lineno">  502</span>    <span class="comment">/* OFに、レジスタから最後に送り出されたビットの値を設定 */</span></div>
<div class="line"><a id="l00503" name="l00503"></a><span class="lineno">  503</span>    <span class="keywordflow">if</span>(last &gt; 0x0) {</div>
<div class="line"><a id="l00504" name="l00504"></a><span class="lineno">  504</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a721d4f1eaa4a30661aaef3353e5305e2">OF</a>;</div>
<div class="line"><a id="l00505" name="l00505"></a><span class="lineno">  505</span>    }</div>
<div class="line"><a id="l00506" name="l00506"></a><span class="lineno">  506</span>    <span class="comment">/* 符号(第15ビット)が1のとき、SFは1 */</span></div>
<div class="line"><a id="l00507" name="l00507"></a><span class="lineno">  507</span>    <span class="keywordflow">if</span>(sign &gt; 0x0) {</div>
<div class="line"><a id="l00508" name="l00508"></a><span class="lineno">  508</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d">SF</a>;</div>
<div class="line"><a id="l00509" name="l00509"></a><span class="lineno">  509</span>    }</div>
<div class="line"><a id="l00510" name="l00510"></a><span class="lineno">  510</span>    <span class="comment">/* 演算結果が0のとき、ZFは1 */</span></div>
<div class="line"><a id="l00511" name="l00511"></a><span class="lineno">  511</span>    <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] == 0x0) {</div>
<div class="line"><a id="l00512" name="l00512"></a><span class="lineno">  512</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a>;</div>
<div class="line"><a id="l00513" name="l00513"></a><span class="lineno">  513</span>    }</div>
<div class="line"><a id="l00514" name="l00514"></a><span class="lineno">  514</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;SRA&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00515" name="l00515"></a><span class="lineno">  515</span>}</div>
</div>
<div class="line"><a id="l00516" name="l00516"></a><span class="lineno">  516</span> </div>
<div class="foldopen" id="foldopen00517" data-start="{" data-end="}">
<div class="line"><a id="l00517" name="l00517"></a><span class="lineno"><a class="line" href="exec_8h.html#ab99930605184cfa5303cc01126a56e1e">  517</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#ab99930605184cfa5303cc01126a56e1e">sll</a>()</div>
<div class="line"><a id="l00518" name="l00518"></a><span class="lineno">  518</span>{</div>
<div class="line"><a id="l00519" name="l00519"></a><span class="lineno">  519</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00520" name="l00520"></a><span class="lineno">  520</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> last = 0;</div>
<div class="line"><a id="l00521" name="l00521"></a><span class="lineno">  521</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> r = <a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]);</div>
<div class="line"><a id="l00522" name="l00522"></a><span class="lineno">  522</span> </div>
<div class="line"><a id="l00523" name="l00523"></a><span class="lineno">  523</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = 0x0;</div>
<div class="line"><a id="l00524" name="l00524"></a><span class="lineno">  524</span>    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]); i++) {</div>
<div class="line"><a id="l00525" name="l00525"></a><span class="lineno">  525</span>        last = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &amp; 0x8000;</div>
<div class="line"><a id="l00526" name="l00526"></a><span class="lineno">  526</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &lt;&lt;= 1;</div>
<div class="line"><a id="l00527" name="l00527"></a><span class="lineno">  527</span>    }</div>
<div class="line"><a id="l00528" name="l00528"></a><span class="lineno">  528</span>    <span class="comment">/* OFに、レジスタから最後に送り出されたビットの値を設定 */</span></div>
<div class="line"><a id="l00529" name="l00529"></a><span class="lineno">  529</span>    <span class="keywordflow">if</span>(last &gt; 0x0) {</div>
<div class="line"><a id="l00530" name="l00530"></a><span class="lineno">  530</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a721d4f1eaa4a30661aaef3353e5305e2">OF</a>;</div>
<div class="line"><a id="l00531" name="l00531"></a><span class="lineno">  531</span>    }</div>
<div class="line"><a id="l00532" name="l00532"></a><span class="lineno">  532</span>    <span class="comment">/* 第15ビットが1のとき、SFは1 */</span></div>
<div class="line"><a id="l00533" name="l00533"></a><span class="lineno">  533</span>    <span class="keywordflow">if</span>((<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &amp; 0x8000) &gt; 0x0) {</div>
<div class="line"><a id="l00534" name="l00534"></a><span class="lineno">  534</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d">SF</a>;</div>
<div class="line"><a id="l00535" name="l00535"></a><span class="lineno">  535</span>    }</div>
<div class="line"><a id="l00536" name="l00536"></a><span class="lineno">  536</span>    <span class="comment">/* 演算結果が0のとき、ZFは1 */</span></div>
<div class="line"><a id="l00537" name="l00537"></a><span class="lineno">  537</span>    <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] == 0x0) {</div>
<div class="line"><a id="l00538" name="l00538"></a><span class="lineno">  538</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a>;</div>
<div class="line"><a id="l00539" name="l00539"></a><span class="lineno">  539</span>    }</div>
<div class="line"><a id="l00540" name="l00540"></a><span class="lineno">  540</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;SLL&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00541" name="l00541"></a><span class="lineno">  541</span>}</div>
</div>
<div class="line"><a id="l00542" name="l00542"></a><span class="lineno">  542</span> </div>
<div class="foldopen" id="foldopen00543" data-start="{" data-end="}">
<div class="line"><a id="l00543" name="l00543"></a><span class="lineno"><a class="line" href="exec_8h.html#a5bcad970d4680db5812f151837317d5d">  543</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a5bcad970d4680db5812f151837317d5d">srl</a>()</div>
<div class="line"><a id="l00544" name="l00544"></a><span class="lineno">  544</span>{</div>
<div class="line"><a id="l00545" name="l00545"></a><span class="lineno">  545</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00546" name="l00546"></a><span class="lineno">  546</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> last = 0;</div>
<div class="line"><a id="l00547" name="l00547"></a><span class="lineno">  547</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> r = <a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0]);</div>
<div class="line"><a id="l00548" name="l00548"></a><span class="lineno">  548</span> </div>
<div class="line"><a id="l00549" name="l00549"></a><span class="lineno">  549</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr = 0x0;</div>
<div class="line"><a id="l00550" name="l00550"></a><span class="lineno">  550</span>    <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]); i++) {</div>
<div class="line"><a id="l00551" name="l00551"></a><span class="lineno">  551</span>        last = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &amp; 0x0001;</div>
<div class="line"><a id="l00552" name="l00552"></a><span class="lineno">  552</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &gt;&gt;= 1;</div>
<div class="line"><a id="l00553" name="l00553"></a><span class="lineno">  553</span>    }</div>
<div class="line"><a id="l00554" name="l00554"></a><span class="lineno">  554</span>    <span class="comment">/* OFに、レジスタから最後に送り出されたビットの値を設定 */</span></div>
<div class="line"><a id="l00555" name="l00555"></a><span class="lineno">  555</span>    <span class="keywordflow">if</span>(last &gt; 0x0) {</div>
<div class="line"><a id="l00556" name="l00556"></a><span class="lineno">  556</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a721d4f1eaa4a30661aaef3353e5305e2">OF</a>;</div>
<div class="line"><a id="l00557" name="l00557"></a><span class="lineno">  557</span>    }</div>
<div class="line"><a id="l00558" name="l00558"></a><span class="lineno">  558</span>    <span class="comment">/* 第15ビットが1のとき、SFは1 */</span></div>
<div class="line"><a id="l00559" name="l00559"></a><span class="lineno">  559</span>    <span class="keywordflow">if</span>((<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] &amp; 0x8000) &gt; 0x0) {</div>
<div class="line"><a id="l00560" name="l00560"></a><span class="lineno">  560</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d">SF</a>;</div>
<div class="line"><a id="l00561" name="l00561"></a><span class="lineno">  561</span>    }</div>
<div class="line"><a id="l00562" name="l00562"></a><span class="lineno">  562</span>    <span class="comment">/* 演算結果が0のとき、ZFは1 */</span></div>
<div class="line"><a id="l00563" name="l00563"></a><span class="lineno">  563</span>    <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[r] == 0x0) {</div>
<div class="line"><a id="l00564" name="l00564"></a><span class="lineno">  564</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr += <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a>;</div>
<div class="line"><a id="l00565" name="l00565"></a><span class="lineno">  565</span>    }</div>
<div class="line"><a id="l00566" name="l00566"></a><span class="lineno">  566</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;SRL&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a>);</div>
<div class="line"><a id="l00567" name="l00567"></a><span class="lineno">  567</span>}</div>
</div>
<div class="line"><a id="l00568" name="l00568"></a><span class="lineno">  568</span> </div>
<div class="foldopen" id="foldopen00569" data-start="{" data-end="}">
<div class="line"><a id="l00569" name="l00569"></a><span class="lineno"><a class="line" href="exec_8h.html#a1efabca6b8fda702ce74ae81fccad453">  569</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a1efabca6b8fda702ce74ae81fccad453">jmi</a>()</div>
<div class="line"><a id="l00570" name="l00570"></a><span class="lineno">  570</span>{</div>
<div class="line"><a id="l00571" name="l00571"></a><span class="lineno">  571</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00572" name="l00572"></a><span class="lineno">  572</span>    <span class="keywordflow">if</span>((<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr &amp; <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d">SF</a>) &gt; 0) {</div>
<div class="line"><a id="l00573" name="l00573"></a><span class="lineno">  573</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr = <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]);</div>
<div class="line"><a id="l00574" name="l00574"></a><span class="lineno">  574</span>    } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00575" name="l00575"></a><span class="lineno">  575</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;JMI&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766aa563615d1f9228e498ba281495479270">ADR_X</a>);</div>
<div class="line"><a id="l00576" name="l00576"></a><span class="lineno">  576</span>    }</div>
<div class="line"><a id="l00577" name="l00577"></a><span class="lineno">  577</span>}</div>
</div>
<div class="line"><a id="l00578" name="l00578"></a><span class="lineno">  578</span> </div>
<div class="foldopen" id="foldopen00579" data-start="{" data-end="}">
<div class="line"><a id="l00579" name="l00579"></a><span class="lineno"><a class="line" href="exec_8h.html#a7111e5918a8b56adc99b8d78e6da0328">  579</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a7111e5918a8b56adc99b8d78e6da0328">jnz</a>()</div>
<div class="line"><a id="l00580" name="l00580"></a><span class="lineno">  580</span>{</div>
<div class="line"><a id="l00581" name="l00581"></a><span class="lineno">  581</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00582" name="l00582"></a><span class="lineno">  582</span>    <span class="keywordflow">if</span>((<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr &amp; <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a>) == 0) {</div>
<div class="line"><a id="l00583" name="l00583"></a><span class="lineno">  583</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr = <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]);</div>
<div class="line"><a id="l00584" name="l00584"></a><span class="lineno">  584</span>    } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00585" name="l00585"></a><span class="lineno">  585</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;JNZ&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766aa563615d1f9228e498ba281495479270">ADR_X</a>);</div>
<div class="line"><a id="l00586" name="l00586"></a><span class="lineno">  586</span>    }</div>
<div class="line"><a id="l00587" name="l00587"></a><span class="lineno">  587</span>}</div>
</div>
<div class="line"><a id="l00588" name="l00588"></a><span class="lineno">  588</span> </div>
<div class="foldopen" id="foldopen00589" data-start="{" data-end="}">
<div class="line"><a id="l00589" name="l00589"></a><span class="lineno"><a class="line" href="exec_8h.html#aeb71f7ef3e066e626309776c975e5cb5">  589</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#aeb71f7ef3e066e626309776c975e5cb5">jze</a>()</div>
<div class="line"><a id="l00590" name="l00590"></a><span class="lineno">  590</span>{</div>
<div class="line"><a id="l00591" name="l00591"></a><span class="lineno">  591</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00592" name="l00592"></a><span class="lineno">  592</span>    <span class="keywordflow">if</span>((<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr &amp; <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a>) &gt; 0) {</div>
<div class="line"><a id="l00593" name="l00593"></a><span class="lineno">  593</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr = <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]);</div>
<div class="line"><a id="l00594" name="l00594"></a><span class="lineno">  594</span>    } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00595" name="l00595"></a><span class="lineno">  595</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;JZE&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766aa563615d1f9228e498ba281495479270">ADR_X</a>);</div>
<div class="line"><a id="l00596" name="l00596"></a><span class="lineno">  596</span>    }</div>
<div class="line"><a id="l00597" name="l00597"></a><span class="lineno">  597</span>}</div>
</div>
<div class="line"><a id="l00598" name="l00598"></a><span class="lineno">  598</span> </div>
<div class="foldopen" id="foldopen00599" data-start="{" data-end="}">
<div class="line"><a id="l00599" name="l00599"></a><span class="lineno"><a class="line" href="exec_8h.html#a8f0cb78e5e4bad1c3018c4523996f35b">  599</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a8f0cb78e5e4bad1c3018c4523996f35b">jump</a>()</div>
<div class="line"><a id="l00600" name="l00600"></a><span class="lineno">  600</span>{</div>
<div class="line"><a id="l00601" name="l00601"></a><span class="lineno">  601</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00602" name="l00602"></a><span class="lineno">  602</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr = <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]);</div>
<div class="line"><a id="l00603" name="l00603"></a><span class="lineno">  603</span>}</div>
</div>
<div class="line"><a id="l00604" name="l00604"></a><span class="lineno">  604</span> </div>
<div class="foldopen" id="foldopen00605" data-start="{" data-end="}">
<div class="line"><a id="l00605" name="l00605"></a><span class="lineno"><a class="line" href="exec_8h.html#ac62172031d98b2f91a99626737e32749">  605</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#ac62172031d98b2f91a99626737e32749">jpl</a>()</div>
<div class="line"><a id="l00606" name="l00606"></a><span class="lineno">  606</span>{</div>
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno">  607</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00608" name="l00608"></a><span class="lineno">  608</span>    <span class="keywordflow">if</span>((<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr &amp; (<a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d">SF</a> | <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a>)) == 0) {</div>
<div class="line"><a id="l00609" name="l00609"></a><span class="lineno">  609</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr = <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]);</div>
<div class="line"><a id="l00610" name="l00610"></a><span class="lineno">  610</span>    } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00611" name="l00611"></a><span class="lineno">  611</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;JPL&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766aa563615d1f9228e498ba281495479270">ADR_X</a>);</div>
<div class="line"><a id="l00612" name="l00612"></a><span class="lineno">  612</span>    }</div>
<div class="line"><a id="l00613" name="l00613"></a><span class="lineno">  613</span>}</div>
</div>
<div class="line"><a id="l00614" name="l00614"></a><span class="lineno">  614</span> </div>
<div class="foldopen" id="foldopen00615" data-start="{" data-end="}">
<div class="line"><a id="l00615" name="l00615"></a><span class="lineno"><a class="line" href="exec_8h.html#af04e0be53df8f7d26eff99fffe40be44">  615</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#af04e0be53df8f7d26eff99fffe40be44">jov</a>()</div>
<div class="line"><a id="l00616" name="l00616"></a><span class="lineno">  616</span>{</div>
<div class="line"><a id="l00617" name="l00617"></a><span class="lineno">  617</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00618" name="l00618"></a><span class="lineno">  618</span>    <span class="keywordflow">if</span>((<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;fr &amp; <a class="code hl_enumvalue" href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a721d4f1eaa4a30661aaef3353e5305e2">OF</a>) &gt; 0) {</div>
<div class="line"><a id="l00619" name="l00619"></a><span class="lineno">  619</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr = <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]);</div>
<div class="line"><a id="l00620" name="l00620"></a><span class="lineno">  620</span>    } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00621" name="l00621"></a><span class="lineno">  621</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;JOV&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766aa563615d1f9228e498ba281495479270">ADR_X</a>);</div>
<div class="line"><a id="l00622" name="l00622"></a><span class="lineno">  622</span>    }</div>
<div class="line"><a id="l00623" name="l00623"></a><span class="lineno">  623</span>}</div>
</div>
<div class="line"><a id="l00624" name="l00624"></a><span class="lineno">  624</span> </div>
<div class="foldopen" id="foldopen00625" data-start="{" data-end="}">
<div class="line"><a id="l00625" name="l00625"></a><span class="lineno"><a class="line" href="exec_8h.html#a98b45e0a7ed122b6710df00209b67827">  625</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a98b45e0a7ed122b6710df00209b67827">push</a>()</div>
<div class="line"><a id="l00626" name="l00626"></a><span class="lineno">  626</span>{</div>
<div class="line"><a id="l00627" name="l00627"></a><span class="lineno">  627</span>    assert(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp &gt; <a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;end &amp;&amp; <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp &lt;= <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memsize);</div>
<div class="line"><a id="l00628" name="l00628"></a><span class="lineno">  628</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00629" name="l00629"></a><span class="lineno">  629</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[--(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp)] = <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]);</div>
<div class="line"><a id="l00630" name="l00630"></a><span class="lineno">  630</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;PUSH&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766aa563615d1f9228e498ba281495479270">ADR_X</a>);</div>
<div class="line"><a id="l00631" name="l00631"></a><span class="lineno">  631</span>}</div>
</div>
<div class="line"><a id="l00632" name="l00632"></a><span class="lineno">  632</span> </div>
<div class="foldopen" id="foldopen00633" data-start="{" data-end="}">
<div class="line"><a id="l00633" name="l00633"></a><span class="lineno"><a class="line" href="exec_8h.html#a312e7f6c761a199c1369fbe651e084f0">  633</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a312e7f6c761a199c1369fbe651e084f0">pop</a>()</div>
<div class="line"><a id="l00634" name="l00634"></a><span class="lineno">  634</span>{</div>
<div class="line"><a id="l00635" name="l00635"></a><span class="lineno">  635</span>    assert(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp &gt; <a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;end);</div>
<div class="line"><a id="l00636" name="l00636"></a><span class="lineno">  636</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr]};</div>
<div class="line"><a id="l00637" name="l00637"></a><span class="lineno">  637</span>    <span class="keywordtype">char</span> *s = NULL;</div>
<div class="line"><a id="l00638" name="l00638"></a><span class="lineno">  638</span> </div>
<div class="line"><a id="l00639" name="l00639"></a><span class="lineno">  639</span>    <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp &gt;= <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memsize) {</div>
<div class="line"><a id="l00640" name="l00640"></a><span class="lineno">  640</span>        <a class="code hl_function" href="cerr_8h.html#ac878972bcd42a554769270aadf8c6bbe">setcerr</a>(203, s = <a class="code hl_function" href="exec_8c.html#a5a98a9f0712105d8d84c29c429d514cf">pr2str</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr));        <span class="comment">/* Stack Pointer (SP) - stack underflow */</span></div>
<div class="line"><a id="l00641" name="l00641"></a><span class="lineno">  641</span>        <a class="code hl_define" href="cmem_8h.html#a105949c59c998e38aad80266afac92bf">FREE</a>(s);</div>
<div class="line"><a id="l00642" name="l00642"></a><span class="lineno">  642</span>    } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00643" name="l00643"></a><span class="lineno">  643</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;gr[<a class="code hl_function" href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a>(w[0])] = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp)++];</div>
<div class="line"><a id="l00644" name="l00644"></a><span class="lineno">  644</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;POP&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766a20858f2dbe9ee37ca9c39a99e11bfaea">R_</a>);</div>
<div class="line"><a id="l00645" name="l00645"></a><span class="lineno">  645</span>    }</div>
<div class="line"><a id="l00646" name="l00646"></a><span class="lineno">  646</span>}</div>
</div>
<div class="line"><a id="l00647" name="l00647"></a><span class="lineno">  647</span> </div>
<div class="foldopen" id="foldopen00648" data-start="{" data-end="}">
<div class="line"><a id="l00648" name="l00648"></a><span class="lineno"><a class="line" href="exec_8h.html#aba7af6b502e464074d3c31ff9236a22c">  648</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#aba7af6b502e464074d3c31ff9236a22c">call</a>()</div>
<div class="line"><a id="l00649" name="l00649"></a><span class="lineno">  649</span>{</div>
<div class="line"><a id="l00650" name="l00650"></a><span class="lineno">  650</span>    assert(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp &gt; <a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;end &amp;&amp; <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp &lt;= <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memsize);</div>
<div class="line"><a id="l00651" name="l00651"></a><span class="lineno">  651</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00652" name="l00652"></a><span class="lineno">  652</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[--(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp)] = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1;</div>
<div class="line"><a id="l00653" name="l00653"></a><span class="lineno">  653</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr = <a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]);</div>
<div class="line"><a id="l00654" name="l00654"></a><span class="lineno">  654</span>}</div>
</div>
<div class="line"><a id="l00655" name="l00655"></a><span class="lineno">  655</span> </div>
<div class="foldopen" id="foldopen00656" data-start="{" data-end="}">
<div class="line"><a id="l00656" name="l00656"></a><span class="lineno"><a class="line" href="exec_8h.html#aadd5fc114c0604b21457e1dca7c8fb87">  656</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#aadd5fc114c0604b21457e1dca7c8fb87">ret</a>()</div>
<div class="line"><a id="l00657" name="l00657"></a><span class="lineno">  657</span>{</div>
<div class="line"><a id="l00658" name="l00658"></a><span class="lineno">  658</span>    assert(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp &lt;= <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memsize);</div>
<div class="line"><a id="l00659" name="l00659"></a><span class="lineno">  659</span>    <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp == <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memsize) {</div>
<div class="line"><a id="l00660" name="l00660"></a><span class="lineno">  660</span>        <a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;stop = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00661" name="l00661"></a><span class="lineno">  661</span>    } <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp &lt; <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memsize) {</div>
<div class="line"><a id="l00662" name="l00662"></a><span class="lineno">  662</span>        <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr = <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp)++] + 1;</div>
<div class="line"><a id="l00663" name="l00663"></a><span class="lineno">  663</span>    }</div>
<div class="line"><a id="l00664" name="l00664"></a><span class="lineno">  664</span>}</div>
</div>
<div class="line"><a id="l00665" name="l00665"></a><span class="lineno">  665</span> </div>
<div class="foldopen" id="foldopen00666" data-start="{" data-end="}">
<div class="line"><a id="l00666" name="l00666"></a><span class="lineno"><a class="line" href="exec_8h.html#a22552ea23b6304b678a7384324677782">  666</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a22552ea23b6304b678a7384324677782">svc</a>()</div>
<div class="line"><a id="l00667" name="l00667"></a><span class="lineno">  667</span>{</div>
<div class="line"><a id="l00668" name="l00668"></a><span class="lineno">  668</span>    <a class="code hl_typedef" href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a> w[] = {<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr], <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr + 1]};</div>
<div class="line"><a id="l00669" name="l00669"></a><span class="lineno">  669</span>    <span class="keywordflow">switch</span>(<a class="code hl_function" href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a>(w[1], w[0]))</div>
<div class="line"><a id="l00670" name="l00670"></a><span class="lineno">  670</span>    {</div>
<div class="line"><a id="l00671" name="l00671"></a><span class="lineno">  671</span>    <span class="keywordflow">case</span> 0x0:                   <span class="comment">/* STOP */</span></div>
<div class="line"><a id="l00672" name="l00672"></a><span class="lineno">  672</span>        <a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;stop = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00673" name="l00673"></a><span class="lineno">  673</span>        <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00674" name="l00674"></a><span class="lineno">  674</span>    <span class="keywordflow">case</span> 0x1:                   <span class="comment">/* IN */</span></div>
<div class="line"><a id="l00675" name="l00675"></a><span class="lineno">  675</span>        <a class="code hl_function" href="exec_8c.html#a1e47c758142963870b2ef1bec9f3b9e4">svcin</a>();</div>
<div class="line"><a id="l00676" name="l00676"></a><span class="lineno">  676</span>        <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00677" name="l00677"></a><span class="lineno">  677</span>    <span class="keywordflow">case</span> 0x2:                   <span class="comment">/* OUT */</span></div>
<div class="line"><a id="l00678" name="l00678"></a><span class="lineno">  678</span>        <a class="code hl_function" href="exec_8c.html#a4053d08bb471ddbefcd2dc34d2411217">svcout</a>();</div>
<div class="line"><a id="l00679" name="l00679"></a><span class="lineno">  679</span>        <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00680" name="l00680"></a><span class="lineno">  680</span>    }</div>
<div class="line"><a id="l00681" name="l00681"></a><span class="lineno">  681</span>    <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr += <a class="code hl_function" href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a>(<span class="stringliteral">&quot;SVC&quot;</span>, <a class="code hl_enumvalue" href="struct_8h.html#a8772ddb837dae62899db0754b7606766aa563615d1f9228e498ba281495479270">ADR_X</a>);</div>
<div class="line"><a id="l00682" name="l00682"></a><span class="lineno">  682</span>}</div>
</div>
<div class="line"><a id="l00683" name="l00683"></a><span class="lineno">  683</span> </div>
<div class="foldopen" id="foldopen00684" data-start="{" data-end="}">
<div class="line"><a id="l00684" name="l00684"></a><span class="lineno"><a class="line" href="exec_8h.html#a05e951388bd6364f0a83e02b1daef957">  684</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="exec_8c.html#a05e951388bd6364f0a83e02b1daef957">exec</a>()</div>
<div class="line"><a id="l00685" name="l00685"></a><span class="lineno">  685</span>{</div>
<div class="line"><a id="l00686" name="l00686"></a><span class="lineno">  686</span>    <a class="code hl_typedef" href="struct_8h.html#a850f47aba27f4d034b3ac7f3368a67b3">CLOCK</a> clock_begin = 0;</div>
<div class="line"><a id="l00687" name="l00687"></a><span class="lineno">  687</span>    <a class="code hl_typedef" href="struct_8h.html#a850f47aba27f4d034b3ac7f3368a67b3">CLOCK</a> clock_end = 0;</div>
<div class="line"><a id="l00688" name="l00688"></a><span class="lineno">  688</span>    void (*cmdptr)() = NULL;</div>
<div class="line"><a id="l00689" name="l00689"></a><span class="lineno">  689</span>    <span class="keywordtype">char</span> *s = NULL;</div>
<div class="line"><a id="l00690" name="l00690"></a><span class="lineno">  690</span>    <span class="keyword">const</span> <span class="keywordtype">char</span> *monmsg = <span class="stringliteral">&quot;COMET II machine code monitor. Type ? for help.\n&quot;</span>;</div>
<div class="line"><a id="l00691" name="l00691"></a><span class="lineno">  691</span> </div>
<div class="line"><a id="l00692" name="l00692"></a><span class="lineno">  692</span>    <a class="code hl_function" href="struct_8h.html#a4eb3743c27e816af85038b8d48f0f4f2">create_cmdtable</a>(<a class="code hl_enumvalue" href="struct_8h.html#a11a84ab321dab6eed98b381aaf24783bab6eaa966bbafb88384de6feb9d980722">HASH_CODE</a>);                 <span class="comment">/* 命令コードがキーのハッシュ表を作成 */</span></div>
<div class="line"><a id="l00693" name="l00693"></a><span class="lineno">  693</span> </div>
<div class="line"><a id="l00694" name="l00694"></a><span class="lineno">  694</span>    <span class="comment">/* 機械語の実行 */</span></div>
<div class="line"><a id="l00695" name="l00695"></a><span class="lineno">  695</span>    <span class="keywordflow">for</span> (<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr = <a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;start; ; ) {</div>
<div class="line"><a id="l00696" name="l00696"></a><span class="lineno">  696</span>        clock_begin = clock();                     <span class="comment">/* クロック周波数設定のため、実行開始時間を格納 */</span></div>
<div class="line"><a id="l00697" name="l00697"></a><span class="lineno">  697</span>        <a class="code hl_function" href="exec_8h.html#add23c9453fa34e199972db4147e753a5">dsp_trace_dump</a>();</div>
<div class="line"><a id="l00698" name="l00698"></a><span class="lineno">  698</span>        <span class="comment">/* モニターモードでCOMET II起動時、またはステップモードかブレークポイントの場合、モニターを起動 */</span></div>
<div class="line"><a id="l00699" name="l00699"></a><span class="lineno">  699</span>        <span class="keywordflow">if</span>((<a class="code hl_variable" href="struct_8h.html#afdbb7e7d9e799a0e0814654774763d18">execmode</a>.monitor == <span class="keyword">true</span> &amp;&amp; <a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;started == <span class="keyword">false</span>) || <a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;stop == <span class="keyword">true</span> || <a class="code hl_variable" href="struct_8h.html#afdbb7e7d9e799a0e0814654774763d18">execmode</a>.step == <span class="keyword">true</span> || <a class="code hl_function" href="monitor_8h.html#a637744da825fa9add031f300f4dfd41a">getbps</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr) == <span class="keyword">true</span>)</div>
<div class="line"><a id="l00700" name="l00700"></a><span class="lineno">  700</span>        {</div>
<div class="line"><a id="l00701" name="l00701"></a><span class="lineno">  701</span>            <span class="comment">/* モニターモードでCOMET II起動時、フラグを立て、メッセージを表示 */</span></div>
<div class="line"><a id="l00702" name="l00702"></a><span class="lineno">  702</span>            <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;started == <span class="keyword">false</span>) {</div>
<div class="line"><a id="l00703" name="l00703"></a><span class="lineno">  703</span>                <a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;started = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00704" name="l00704"></a><span class="lineno">  704</span>                fprintf(stdout, <span class="stringliteral">&quot;%s&quot;</span>, monmsg);</div>
<div class="line"><a id="l00705" name="l00705"></a><span class="lineno">  705</span>            }</div>
<div class="line"><a id="l00706" name="l00706"></a><span class="lineno">  706</span>            <a class="code hl_function" href="monitor_8h.html#a0e89037e727d646088e956504e02ef8b">monitor</a>();</div>
<div class="line"><a id="l00707" name="l00707"></a><span class="lineno">  707</span>        }</div>
<div class="line"><a id="l00708" name="l00708"></a><span class="lineno">  708</span>        <span class="comment">/* プログラムレジスタをチェック */</span></div>
<div class="line"><a id="l00709" name="l00709"></a><span class="lineno">  709</span>        <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr &gt;= <a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memsize) {</div>
<div class="line"><a id="l00710" name="l00710"></a><span class="lineno">  710</span>            <a class="code hl_function" href="cerr_8h.html#ac878972bcd42a554769270aadf8c6bbe">setcerr</a>(201, s = <a class="code hl_function" href="exec_8c.html#a5a98a9f0712105d8d84c29c429d514cf">pr2str</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr));        <span class="comment">/* Program Register (PR) - memory overflow */</span></div>
<div class="line"><a id="l00711" name="l00711"></a><span class="lineno">  711</span>            <span class="keywordflow">goto</span> execfin;</div>
<div class="line"><a id="l00712" name="l00712"></a><span class="lineno">  712</span>        }</div>
<div class="line"><a id="l00713" name="l00713"></a><span class="lineno">  713</span>        <span class="comment">/* スタックポインタをチェック */</span></div>
<div class="line"><a id="l00714" name="l00714"></a><span class="lineno">  714</span>        <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;sp &lt;= <a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;end) {</div>
<div class="line"><a id="l00715" name="l00715"></a><span class="lineno">  715</span>            <a class="code hl_function" href="cerr_8h.html#ac878972bcd42a554769270aadf8c6bbe">setcerr</a>(202, s = <a class="code hl_function" href="exec_8c.html#a5a98a9f0712105d8d84c29c429d514cf">pr2str</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr));        <span class="comment">/* Stack Pointer (SP) - stack overflow */</span></div>
<div class="line"><a id="l00716" name="l00716"></a><span class="lineno">  716</span>            <span class="keywordflow">goto</span> execfin;</div>
<div class="line"><a id="l00717" name="l00717"></a><span class="lineno">  717</span>        }</div>
<div class="line"><a id="l00718" name="l00718"></a><span class="lineno">  718</span>        <span class="comment">/* コードから命令を取得 */</span></div>
<div class="line"><a id="l00719" name="l00719"></a><span class="lineno">  719</span>        <span class="comment">/* 取得できない場合はエラー終了 */</span></div>
<div class="line"><a id="l00720" name="l00720"></a><span class="lineno">  720</span>        <span class="keywordflow">if</span>((cmdptr = <a class="code hl_function" href="struct_8h.html#a6348147d61187876a240a2a354a24316">getcmdptr</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;memory[<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr] &amp; 0xFF00)) == NULL) {</div>
<div class="line"><a id="l00721" name="l00721"></a><span class="lineno">  721</span>            <a class="code hl_function" href="cerr_8h.html#ac878972bcd42a554769270aadf8c6bbe">setcerr</a>(204, s = <a class="code hl_function" href="exec_8c.html#a5a98a9f0712105d8d84c29c429d514cf">pr2str</a>(<a class="code hl_variable" href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a>-&gt;cpu-&gt;pr));            <span class="comment">/* OP in word #1 - not command code */</span></div>
<div class="line"><a id="l00722" name="l00722"></a><span class="lineno">  722</span>            <span class="keywordflow">goto</span> execfin;</div>
<div class="line"><a id="l00723" name="l00723"></a><span class="lineno">  723</span>        }</div>
<div class="line"><a id="l00724" name="l00724"></a><span class="lineno">  724</span>        <span class="comment">/* 命令の実行 */</span></div>
<div class="line"><a id="l00725" name="l00725"></a><span class="lineno">  725</span>        (*cmdptr)();</div>
<div class="line"><a id="l00726" name="l00726"></a><span class="lineno">  726</span>        <span class="comment">/* エラー発生時はエラー終了 */</span></div>
<div class="line"><a id="l00727" name="l00727"></a><span class="lineno">  727</span>        <span class="keywordflow">if</span>(<a class="code hl_variable" href="cerr_8h.html#a253bd93a3781dbfd5cbff9d5b7097adc">cerr</a>-&gt;num &gt; 0) {</div>
<div class="line"><a id="l00728" name="l00728"></a><span class="lineno">  728</span>            <span class="keywordflow">goto</span> execfin;</div>
<div class="line"><a id="l00729" name="l00729"></a><span class="lineno">  729</span>        }</div>
<div class="line"><a id="l00730" name="l00730"></a><span class="lineno">  730</span>        <span class="comment">/* 終了フラグがtrueの場合は、モニターまたは正常終了 */</span></div>
<div class="line"><a id="l00731" name="l00731"></a><span class="lineno">  731</span>        <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a>-&gt;stop == <span class="keyword">true</span>) {</div>
<div class="line"><a id="l00732" name="l00732"></a><span class="lineno">  732</span>            <span class="keywordflow">if</span>(<a class="code hl_variable" href="struct_8h.html#afdbb7e7d9e799a0e0814654774763d18">execmode</a>.monitor == <span class="keyword">true</span>) {</div>
<div class="line"><a id="l00733" name="l00733"></a><span class="lineno">  733</span>                fprintf(stdout, <span class="stringliteral">&quot;Return to top.\n&quot;</span>);</div>
<div class="line"><a id="l00734" name="l00734"></a><span class="lineno">  734</span>            } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00735" name="l00735"></a><span class="lineno">  735</span>                <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00736" name="l00736"></a><span class="lineno">  736</span>            }</div>
<div class="line"><a id="l00737" name="l00737"></a><span class="lineno">  737</span>        }</div>
<div class="line"><a id="l00738" name="l00738"></a><span class="lineno">  738</span>        <span class="comment">/* クロック周波数の設定 */</span></div>
<div class="line"><a id="l00739" name="l00739"></a><span class="lineno">  739</span>        <span class="keywordflow">do</span> {</div>
<div class="line"><a id="l00740" name="l00740"></a><span class="lineno">  740</span>            clock_end = clock();</div>
<div class="line"><a id="l00741" name="l00741"></a><span class="lineno">  741</span>        } <span class="keywordflow">while</span>(clock_end - clock_begin &lt; CLOCKS_PER_SEC / sys-&gt;clocks);</div>
<div class="line"><a id="l00742" name="l00742"></a><span class="lineno">  742</span>    }</div>
<div class="line"><a id="l00743" name="l00743"></a><span class="lineno">  743</span>execfin:</div>
<div class="line"><a id="l00744" name="l00744"></a><span class="lineno">  744</span>    <a class="code hl_define" href="cmem_8h.html#a105949c59c998e38aad80266afac92bf">FREE</a>(s);</div>
<div class="line"><a id="l00745" name="l00745"></a><span class="lineno">  745</span>    <a class="code hl_function" href="monitor_8h.html#adb54436ace11ea6093daccda2500a0d5">freebps</a>();</div>
<div class="line"><a id="l00746" name="l00746"></a><span class="lineno">  746</span>    <a class="code hl_function" href="struct_8h.html#a979c48d01c135239941c21e2de01d6a7">free_cmdtable</a>(<a class="code hl_enumvalue" href="struct_8h.html#a11a84ab321dab6eed98b381aaf24783bab6eaa966bbafb88384de6feb9d980722">HASH_CODE</a>);              <span class="comment">/* 命令のコードとタイプがキーのハッシュ表を解放 */</span></div>
<div class="line"><a id="l00747" name="l00747"></a><span class="lineno">  747</span>    <span class="keywordflow">if</span>(<a class="code hl_variable" href="cerr_8h.html#a253bd93a3781dbfd5cbff9d5b7097adc">cerr</a>-&gt;num &gt; 0) {</div>
<div class="line"><a id="l00748" name="l00748"></a><span class="lineno">  748</span>        fprintf(stderr, <span class="stringliteral">&quot;Execute error - %d: %s\n&quot;</span>, <a class="code hl_variable" href="cerr_8h.html#a253bd93a3781dbfd5cbff9d5b7097adc">cerr</a>-&gt;num, <a class="code hl_variable" href="cerr_8h.html#a253bd93a3781dbfd5cbff9d5b7097adc">cerr</a>-&gt;msg);</div>
<div class="line"><a id="l00749" name="l00749"></a><span class="lineno">  749</span>    }</div>
<div class="line"><a id="l00750" name="l00750"></a><span class="lineno">  750</span>}</div>
</div>
<div class="ttc" id="acerr_8h_html_a253bd93a3781dbfd5cbff9d5b7097adc"><div class="ttname"><a href="cerr_8h.html#a253bd93a3781dbfd5cbff9d5b7097adc">cerr</a></div><div class="ttdeci">CERR * cerr</div><div class="ttdoc">現在のエラー</div><div class="ttdef"><b>Definition</b> <a href="cerr_8c_source.html#l00010">cerr.c:10</a></div></div>
<div class="ttc" id="acerr_8h_html_a311490462fe850f51cc9896c35411d22a388a5ba12695376b375b9f183f219fcf"><div class="ttname"><a href="cerr_8h.html#a311490462fe850f51cc9896c35411d22a388a5ba12695376b375b9f183f219fcf">CERRSTRSIZE</a></div><div class="ttdeci">@ CERRSTRSIZE</div><div class="ttdef"><b>Definition</b> <a href="cerr_8h_source.html#l00038">cerr.h:38</a></div></div>
<div class="ttc" id="acerr_8h_html_a3636a4b86cca574b3786f76f5231ffe5"><div class="ttname"><a href="cerr_8h.html#a3636a4b86cca574b3786f76f5231ffe5">CERR</a></div><div class="ttdeci">struct _CERR CERR</div><div class="ttdoc">エラーを表すデータ型</div></div>
<div class="ttc" id="acerr_8h_html_a4d0e0d9cf66be33e95ca2c73d2ea2c63"><div class="ttname"><a href="cerr_8h.html#a4d0e0d9cf66be33e95ca2c73d2ea2c63">addcerrlist</a></div><div class="ttdeci">void addcerrlist(int cerrc, CERR cerrv[])</div><div class="ttdoc">エラーリストを作成・追加する</div><div class="ttdef"><b>Definition</b> <a href="cerr_8c_source.html#l00014">cerr.c:14</a></div></div>
<div class="ttc" id="acerr_8h_html_ac878972bcd42a554769270aadf8c6bbe"><div class="ttname"><a href="cerr_8h.html#ac878972bcd42a554769270aadf8c6bbe">setcerr</a></div><div class="ttdeci">void setcerr(int num, const char *str)</div><div class="ttdoc">現在のエラーを設定する</div><div class="ttdef"><b>Definition</b> <a href="cerr_8c_source.html#l00046">cerr.c:46</a></div></div>
<div class="ttc" id="acmem_8h_html_a105949c59c998e38aad80266afac92bf"><div class="ttname"><a href="cmem_8h.html#a105949c59c998e38aad80266afac92bf">FREE</a></div><div class="ttdeci">#define FREE(ptr)</div><div class="ttdoc">メモリを解放するマクロ</div><div class="ttdef"><b>Definition</b> <a href="cmem_8h_source.html#l00022">cmem.h:22</a></div></div>
<div class="ttc" id="acmem_8h_html_ab59996fd09e57355900e5d0f6a772297"><div class="ttname"><a href="cmem_8h.html#ab59996fd09e57355900e5d0f6a772297">malloc_chk</a></div><div class="ttdeci">void * malloc_chk(size_t size, const char *tag)</div><div class="ttdoc">mallocを実行し、0で初期化する</div><div class="ttdef"><b>Definition</b> <a href="cmem_8c_source.html#l00023">cmem.c:23</a></div></div>
<div class="ttc" id="acmem_8h_html_abd34d9a0fac0c592a7b76395011bb370"><div class="ttname"><a href="cmem_8h.html#abd34d9a0fac0c592a7b76395011bb370">ARRAYSIZE</a></div><div class="ttdeci">#define ARRAYSIZE(array)</div><div class="ttdoc">配列のサイズを返すマクロ</div><div class="ttdef"><b>Definition</b> <a href="cmem_8h_source.html#l00015">cmem.h:15</a></div></div>
<div class="ttc" id="acmem_8h_html_ad18f5a21ccec37cf8f67bc4f39cee7bb"><div class="ttname"><a href="cmem_8h.html#ad18f5a21ccec37cf8f67bc4f39cee7bb">str2l_range</a></div><div class="ttdeci">long str2l_range(const char *str, long min, long max, const char *name)</div><div class="ttdoc">数値文字列が特定の範囲の数値かチェックし、正の場合は変換した数値、不正の場合は0を返す</div><div class="ttdef"><b>Definition</b> <a href="cmem_8c_source.html#l00003">cmem.c:3</a></div></div>
<div class="ttc" id="aexec_8c_html_a05e951388bd6364f0a83e02b1daef957"><div class="ttname"><a href="exec_8c.html#a05e951388bd6364f0a83e02b1daef957">exec</a></div><div class="ttdeci">void exec()</div><div class="ttdoc">COMET II仮想マシンを実行する</div><div class="ttdef"><b>Definition</b> <a href="#l00684">exec.c:684</a></div></div>
<div class="ttc" id="aexec_8c_html_a11f68b1d3b4a23cf5b977986001e8790"><div class="ttname"><a href="exec_8c.html#a11f68b1d3b4a23cf5b977986001e8790">and_r_adr_x</a></div><div class="ttdeci">void and_r_adr_x()</div><div class="ttdoc">AND命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00366">exec.c:366</a></div></div>
<div class="ttc" id="aexec_8c_html_a1bf1cd600d07bee6db29b0bdfd56aa1d"><div class="ttname"><a href="exec_8c.html#a1bf1cd600d07bee6db29b0bdfd56aa1d">st</a></div><div class="ttdeci">void st()</div><div class="ttdoc">ST命令。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00245">exec.c:245</a></div></div>
<div class="ttc" id="aexec_8c_html_a1e47c758142963870b2ef1bec9f3b9e4"><div class="ttname"><a href="exec_8c.html#a1e47c758142963870b2ef1bec9f3b9e4">svcin</a></div><div class="ttdeci">void svcin()</div><div class="ttdoc">標準入力から文字データを読込(SVC 1)</div><div class="ttdef"><b>Definition</b> <a href="#l00109">exec.c:109</a></div></div>
<div class="ttc" id="aexec_8c_html_a1efabca6b8fda702ce74ae81fccad453"><div class="ttname"><a href="exec_8c.html#a1efabca6b8fda702ce74ae81fccad453">jmi</a></div><div class="ttdeci">void jmi()</div><div class="ttdoc">JMI命令。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00569">exec.c:569</a></div></div>
<div class="ttc" id="aexec_8c_html_a22552ea23b6304b678a7384324677782"><div class="ttname"><a href="exec_8c.html#a22552ea23b6304b678a7384324677782">svc</a></div><div class="ttdeci">void svc()</div><div class="ttdoc">SVC命令。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00666">exec.c:666</a></div></div>
<div class="ttc" id="aexec_8c_html_a22994d21dc29edf6a3d9967472f90c3e"><div class="ttname"><a href="exec_8c.html#a22994d21dc29edf6a3d9967472f90c3e">suba_r1_r2</a></div><div class="ttdeci">void suba_r1_r2()</div><div class="ttdoc">SUBA命令 - オペランドr1,r2。語長1.</div><div class="ttdef"><b>Definition</b> <a href="#l00299">exec.c:299</a></div></div>
<div class="ttc" id="aexec_8c_html_a26131751fd368a197c00a4502714fd3e"><div class="ttname"><a href="exec_8c.html#a26131751fd368a197c00a4502714fd3e">cpl</a></div><div class="ttdeci">void cpl(WORD r, WORD val)</div><div class="ttdef"><b>Definition</b> <a href="#l00432">exec.c:432</a></div></div>
<div class="ttc" id="aexec_8c_html_a2b836cc590ced28ba18cca2c230ba905"><div class="ttname"><a href="exec_8c.html#a2b836cc590ced28ba18cca2c230ba905">cpl_r_adr_x</a></div><div class="ttdeci">void cpl_r_adr_x()</div><div class="ttdoc">CPL命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00442">exec.c:442</a></div></div>
<div class="ttc" id="aexec_8c_html_a2caae245775260efa873a69864ca27ec"><div class="ttname"><a href="exec_8c.html#a2caae245775260efa873a69864ca27ec">sra</a></div><div class="ttdeci">void sra()</div><div class="ttdoc">SRA命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00485">exec.c:485</a></div></div>
<div class="ttc" id="aexec_8c_html_a312e7f6c761a199c1369fbe651e084f0"><div class="ttname"><a href="exec_8c.html#a312e7f6c761a199c1369fbe651e084f0">pop</a></div><div class="ttdeci">void pop()</div><div class="ttdoc">POP命令。語長1.</div><div class="ttdef"><b>Definition</b> <a href="#l00633">exec.c:633</a></div></div>
<div class="ttc" id="aexec_8c_html_a3df9da6aa6a2a63511b4395d7b4c1736"><div class="ttname"><a href="exec_8c.html#a3df9da6aa6a2a63511b4395d7b4c1736">adda</a></div><div class="ttdeci">void adda(WORD r, WORD val)</div><div class="ttdef"><b>Definition</b> <a href="#l00259">exec.c:259</a></div></div>
<div class="ttc" id="aexec_8c_html_a4053d08bb471ddbefcd2dc34d2411217"><div class="ttname"><a href="exec_8c.html#a4053d08bb471ddbefcd2dc34d2411217">svcout</a></div><div class="ttdeci">void svcout()</div><div class="ttdoc">標準出力へ文字データを書出(SVC 2)</div><div class="ttdef"><b>Definition</b> <a href="#l00133">exec.c:133</a></div></div>
<div class="ttc" id="aexec_8c_html_a45e600d2faad863defabbf2ed8e2e32e"><div class="ttname"><a href="exec_8c.html#a45e600d2faad863defabbf2ed8e2e32e">adda_r1_r2</a></div><div class="ttdeci">void adda_r1_r2()</div><div class="ttdoc">ADDA命令 - オペランドr1,r2。語長1.</div><div class="ttdef"><b>Definition</b> <a href="#l00285">exec.c:285</a></div></div>
<div class="ttc" id="aexec_8c_html_a464c627be6598d74aff7cedc860b6e03"><div class="ttname"><a href="exec_8c.html#a464c627be6598d74aff7cedc860b6e03">clock_str2clock</a></div><div class="ttdeci">CLOCK clock_str2clock(const char *str)</div><div class="ttdoc">クロック周波数を表す数値文字列を、正の整数値であるCLOCK型の数値に変換。変換できない場合は、エラーを表示して0を返す</div><div class="ttdef"><b>Definition</b> <a href="#l00092">exec.c:92</a></div></div>
<div class="ttc" id="aexec_8c_html_a47c70d8d0495bc3170382bfb482c3e09"><div class="ttname"><a href="exec_8c.html#a47c70d8d0495bc3170382bfb482c3e09">xor_r1_r2</a></div><div class="ttdeci">void xor_r1_r2()</div><div class="ttdoc">XOR命令 - オペランドr1,r2。語長1.</div><div class="ttdef"><b>Definition</b> <a href="#l00401">exec.c:401</a></div></div>
<div class="ttc" id="aexec_8c_html_a49245ab507ecf7f59a9dc5339fde754d"><div class="ttname"><a href="exec_8c.html#a49245ab507ecf7f59a9dc5339fde754d">subl_r_adr_x</a></div><div class="ttdeci">void subl_r_adr_x()</div><div class="ttdoc">SUBL命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00352">exec.c:352</a></div></div>
<div class="ttc" id="aexec_8c_html_a50fbe64e68dc9ba1b228ae5f6280e978"><div class="ttname"><a href="exec_8c.html#a50fbe64e68dc9ba1b228ae5f6280e978">sla</a></div><div class="ttdeci">void sla()</div><div class="ttdoc">SLA命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00456">exec.c:456</a></div></div>
<div class="ttc" id="aexec_8c_html_a5419c00a550c2d23a8150e9c358fe2b1"><div class="ttname"><a href="exec_8c.html#a5419c00a550c2d23a8150e9c358fe2b1">get_val_adr_x</a></div><div class="ttdeci">WORD get_val_adr_x(WORD adr, WORD oprx)</div><div class="ttdoc">2つのWORD値からadr[,x]のアドレスに格納されている値を取得</div><div class="ttdef"><b>Definition</b> <a href="#l00207">exec.c:207</a></div></div>
<div class="ttc" id="aexec_8c_html_a5a98a9f0712105d8d84c29c429d514cf"><div class="ttname"><a href="exec_8c.html#a5a98a9f0712105d8d84c29c429d514cf">pr2str</a></div><div class="ttdeci">char * pr2str(WORD pr)</div><div class="ttdoc">プログラムレジスタ(PR)を表すWORD値を文字列に変換</div><div class="ttdef"><b>Definition</b> <a href="#l00101">exec.c:101</a></div></div>
<div class="ttc" id="aexec_8c_html_a5bcad970d4680db5812f151837317d5d"><div class="ttname"><a href="exec_8c.html#a5bcad970d4680db5812f151837317d5d">srl</a></div><div class="ttdeci">void srl()</div><div class="ttdoc">SRL命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00543">exec.c:543</a></div></div>
<div class="ttc" id="aexec_8c_html_a67aa113662a32422101e971fd05dad21"><div class="ttname"><a href="exec_8c.html#a67aa113662a32422101e971fd05dad21">get_adr_x</a></div><div class="ttdeci">WORD get_adr_x(WORD adr, WORD oprx)</div><div class="ttdoc">2つのWORD値からadr[,x]を取得</div><div class="ttdef"><b>Definition</b> <a href="#l00196">exec.c:196</a></div></div>
<div class="ttc" id="aexec_8c_html_a6d397129872393161d8e7fcc0d70e604"><div class="ttname"><a href="exec_8c.html#a6d397129872393161d8e7fcc0d70e604">get_x_r2</a></div><div class="ttdeci">WORD get_x_r2(WORD oprx)</div><div class="ttdoc">WORD値からx/r2を取得</div><div class="ttdef"><b>Definition</b> <a href="#l00183">exec.c:183</a></div></div>
<div class="ttc" id="aexec_8c_html_a6d5cc82de56424225abccace3db62ec0"><div class="ttname"><a href="exec_8c.html#a6d5cc82de56424225abccace3db62ec0">ld_r_adr_x</a></div><div class="ttdeci">void ld_r_adr_x()</div><div class="ttdoc">LD命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00231">exec.c:231</a></div></div>
<div class="ttc" id="aexec_8c_html_a7111e5918a8b56adc99b8d78e6da0328"><div class="ttname"><a href="exec_8c.html#a7111e5918a8b56adc99b8d78e6da0328">jnz</a></div><div class="ttdeci">void jnz()</div><div class="ttdoc">JNZ命令。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00579">exec.c:579</a></div></div>
<div class="ttc" id="aexec_8c_html_a842893508b5fafe459eb48127187259d"><div class="ttname"><a href="exec_8c.html#a842893508b5fafe459eb48127187259d">adda_r_adr_x</a></div><div class="ttdeci">void adda_r_adr_x()</div><div class="ttdoc">ADDA命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00278">exec.c:278</a></div></div>
<div class="ttc" id="aexec_8c_html_a87aedf3673723c6a6f2f98bd7b1110b2"><div class="ttname"><a href="exec_8c.html#a87aedf3673723c6a6f2f98bd7b1110b2">addl_r1_r2</a></div><div class="ttdeci">void addl_r1_r2()</div><div class="ttdoc">ADDL命令 - オペランドr1,r2。語長1.</div><div class="ttdef"><b>Definition</b> <a href="#l00345">exec.c:345</a></div></div>
<div class="ttc" id="aexec_8c_html_a87b13998ec6e7483f951c45b63a1e06e"><div class="ttname"><a href="exec_8c.html#a87b13998ec6e7483f951c45b63a1e06e">cpl_r1_r2</a></div><div class="ttdeci">void cpl_r1_r2()</div><div class="ttdoc">CPL命令 - オペランドr1,r2。語長1.</div><div class="ttdef"><b>Definition</b> <a href="#l00449">exec.c:449</a></div></div>
<div class="ttc" id="aexec_8c_html_a87d9ce91d2bf61d70e627af510f10d45"><div class="ttname"><a href="exec_8c.html#a87d9ce91d2bf61d70e627af510f10d45">get_r_r1</a></div><div class="ttdeci">WORD get_r_r1(WORD oprx)</div><div class="ttdoc">WORD値からr/r1を取得</div><div class="ttdef"><b>Definition</b> <a href="#l00170">exec.c:170</a></div></div>
<div class="ttc" id="aexec_8c_html_a8f0cb78e5e4bad1c3018c4523996f35b"><div class="ttname"><a href="exec_8c.html#a8f0cb78e5e4bad1c3018c4523996f35b">jump</a></div><div class="ttdeci">void jump()</div><div class="ttdoc">JUMP命令。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00599">exec.c:599</a></div></div>
<div class="ttc" id="aexec_8c_html_a942a112cf0f379e9f4a9c65401207208"><div class="ttname"><a href="exec_8c.html#a942a112cf0f379e9f4a9c65401207208">subl_r1_r2</a></div><div class="ttdeci">void subl_r1_r2()</div><div class="ttdoc">SUBL命令 - オペランドr1,r2。語長1.</div><div class="ttdef"><b>Definition</b> <a href="#l00359">exec.c:359</a></div></div>
<div class="ttc" id="aexec_8c_html_a95534aefaeb46d9f0549468c2bd9cc7d"><div class="ttname"><a href="exec_8c.html#a95534aefaeb46d9f0549468c2bd9cc7d">cpa_r1_r2</a></div><div class="ttdeci">void cpa_r1_r2()</div><div class="ttdoc">CPA命令 - オペランドr1,r2。語長1.</div><div class="ttdef"><b>Definition</b> <a href="#l00425">exec.c:425</a></div></div>
<div class="ttc" id="aexec_8c_html_a9572294f36af139552ce68778a1576b0"><div class="ttname"><a href="exec_8c.html#a9572294f36af139552ce68778a1576b0">addl_gr</a></div><div class="ttdeci">void addl_gr(WORD r, WORD val, bool add)</div><div class="ttdef"><b>Definition</b> <a href="#l00306">exec.c:306</a></div></div>
<div class="ttc" id="aexec_8c_html_a98b45e0a7ed122b6710df00209b67827"><div class="ttname"><a href="exec_8c.html#a98b45e0a7ed122b6710df00209b67827">push</a></div><div class="ttdeci">void push()</div><div class="ttdoc">PUSH命令。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00625">exec.c:625</a></div></div>
<div class="ttc" id="aexec_8c_html_a9fb3dcc98fcc76ac8d3ee30f07503344"><div class="ttname"><a href="exec_8c.html#a9fb3dcc98fcc76ac8d3ee30f07503344">cpa</a></div><div class="ttdeci">void cpa(WORD r, WORD val)</div><div class="ttdef"><b>Definition</b> <a href="#l00408">exec.c:408</a></div></div>
<div class="ttc" id="aexec_8c_html_a9feb7476507383309c8e3ff2648016f3"><div class="ttname"><a href="exec_8c.html#a9feb7476507383309c8e3ff2648016f3">nop</a></div><div class="ttdeci">void nop()</div><div class="ttdoc">NOP命令。語長1(OPのみ)</div><div class="ttdef"><b>Definition</b> <a href="#l00226">exec.c:226</a></div></div>
<div class="ttc" id="aexec_8c_html_aa8a4de731fba67bb2a76f74f029cfe1d"><div class="ttname"><a href="exec_8c.html#aa8a4de731fba67bb2a76f74f029cfe1d">cpa_r_adr_x</a></div><div class="ttdeci">void cpa_r_adr_x()</div><div class="ttdoc">CPA命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00418">exec.c:418</a></div></div>
<div class="ttc" id="aexec_8c_html_aa900f72574e89c5e97f9571a1f2ef999"><div class="ttname"><a href="exec_8c.html#aa900f72574e89c5e97f9571a1f2ef999">and_r1_r2</a></div><div class="ttdeci">void and_r1_r2()</div><div class="ttdoc">AND命令 - オペランドr1,r2。語長1.</div><div class="ttdef"><b>Definition</b> <a href="#l00373">exec.c:373</a></div></div>
<div class="ttc" id="aexec_8c_html_aa9ea43a7831385fcd73e33e0675b2441"><div class="ttname"><a href="exec_8c.html#aa9ea43a7831385fcd73e33e0675b2441">addcerrlist_exec</a></div><div class="ttdeci">void addcerrlist_exec()</div><div class="ttdoc">実行エラーをエラーリストに追加する</div><div class="ttdef"><b>Definition</b> <a href="#l00221">exec.c:221</a></div></div>
<div class="ttc" id="aexec_8c_html_aadd5fc114c0604b21457e1dca7c8fb87"><div class="ttname"><a href="exec_8c.html#aadd5fc114c0604b21457e1dca7c8fb87">ret</a></div><div class="ttdeci">void ret()</div><div class="ttdoc">RET命令。語長1(OPのみ)</div><div class="ttdef"><b>Definition</b> <a href="#l00656">exec.c:656</a></div></div>
<div class="ttc" id="aexec_8c_html_aaf94d17e5d9c08f17d065478c494cb2a"><div class="ttname"><a href="exec_8c.html#aaf94d17e5d9c08f17d065478c494cb2a">or_r_adr_x</a></div><div class="ttdeci">void or_r_adr_x()</div><div class="ttdoc">OR命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00380">exec.c:380</a></div></div>
<div class="ttc" id="aexec_8c_html_aafb6990b0fc60cf0904bc39db338e45f"><div class="ttname"><a href="exec_8c.html#aafb6990b0fc60cf0904bc39db338e45f">suba_r_adr_x</a></div><div class="ttdeci">void suba_r_adr_x()</div><div class="ttdoc">SUBA命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00292">exec.c:292</a></div></div>
<div class="ttc" id="aexec_8c_html_ab099816057db779f14b1b0bd89341e62"><div class="ttname"><a href="exec_8c.html#ab099816057db779f14b1b0bd89341e62">cerr_exec</a></div><div class="ttdeci">static CERR cerr_exec[]</div><div class="ttdoc">実行エラーの定義</div><div class="ttdef"><b>Definition</b> <a href="#l00073">exec.c:73</a></div></div>
<div class="ttc" id="aexec_8c_html_ab2628c311f9978fc4dd77f5fa14719ca"><div class="ttname"><a href="exec_8c.html#ab2628c311f9978fc4dd77f5fa14719ca">addl_r_adr_x</a></div><div class="ttdeci">void addl_r_adr_x()</div><div class="ttdoc">ADDL命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00338">exec.c:338</a></div></div>
<div class="ttc" id="aexec_8c_html_ab99930605184cfa5303cc01126a56e1e"><div class="ttname"><a href="exec_8c.html#ab99930605184cfa5303cc01126a56e1e">sll</a></div><div class="ttdeci">void sll()</div><div class="ttdoc">SLL命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00517">exec.c:517</a></div></div>
<div class="ttc" id="aexec_8c_html_aba7af6b502e464074d3c31ff9236a22c"><div class="ttname"><a href="exec_8c.html#aba7af6b502e464074d3c31ff9236a22c">call</a></div><div class="ttdeci">void call()</div><div class="ttdoc">CALL命令。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00648">exec.c:648</a></div></div>
<div class="ttc" id="aexec_8c_html_ac62172031d98b2f91a99626737e32749"><div class="ttname"><a href="exec_8c.html#ac62172031d98b2f91a99626737e32749">jpl</a></div><div class="ttdeci">void jpl()</div><div class="ttdoc">JPL命令。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00605">exec.c:605</a></div></div>
<div class="ttc" id="aexec_8c_html_ad363b2008859f55495d91f77bb4b91d5"><div class="ttname"><a href="exec_8c.html#ad363b2008859f55495d91f77bb4b91d5">lad</a></div><div class="ttdeci">void lad()</div><div class="ttdoc">LAD命令。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00252">exec.c:252</a></div></div>
<div class="ttc" id="aexec_8c_html_ada7422171e8f62c1a29649aa92f8e210"><div class="ttname"><a href="exec_8c.html#ada7422171e8f62c1a29649aa92f8e210">setfr</a></div><div class="ttdeci">void setfr(WORD adr)</div><div class="ttdoc">ロード/論理積/論理和/排他的論理和のフラグ設定。OFは常に0</div><div class="ttdef"><b>Definition</b> <a href="#l00157">exec.c:157</a></div></div>
<div class="ttc" id="aexec_8c_html_ae0ddc2d504b2bab98fc63e3f098436f6"><div class="ttname"><a href="exec_8c.html#ae0ddc2d504b2bab98fc63e3f098436f6">xor_r_adr_x</a></div><div class="ttdeci">void xor_r_adr_x()</div><div class="ttdoc">XOR命令 - オペランドr,adr,x。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00394">exec.c:394</a></div></div>
<div class="ttc" id="aexec_8c_html_aeb71f7ef3e066e626309776c975e5cb5"><div class="ttname"><a href="exec_8c.html#aeb71f7ef3e066e626309776c975e5cb5">jze</a></div><div class="ttdeci">void jze()</div><div class="ttdoc">JZE命令。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00589">exec.c:589</a></div></div>
<div class="ttc" id="aexec_8c_html_aedd10f3b4f5a43d804bfa3a2c950599a"><div class="ttname"><a href="exec_8c.html#aedd10f3b4f5a43d804bfa3a2c950599a">or_r1_r2</a></div><div class="ttdeci">void or_r1_r2()</div><div class="ttdoc">OR命令 - オペランドr1,r2。語長1.</div><div class="ttdef"><b>Definition</b> <a href="#l00387">exec.c:387</a></div></div>
<div class="ttc" id="aexec_8c_html_af04e0be53df8f7d26eff99fffe40be44"><div class="ttname"><a href="exec_8c.html#af04e0be53df8f7d26eff99fffe40be44">jov</a></div><div class="ttdeci">void jov()</div><div class="ttdoc">JOV命令。語長2.</div><div class="ttdef"><b>Definition</b> <a href="#l00615">exec.c:615</a></div></div>
<div class="ttc" id="aexec_8c_html_af855901d936e8f58a9e2454a33911e25"><div class="ttname"><a href="exec_8c.html#af855901d936e8f58a9e2454a33911e25">ld_r1_r2</a></div><div class="ttdeci">void ld_r1_r2()</div><div class="ttdoc">LD命令 - オペランドr1,r2。語長1.</div><div class="ttdef"><b>Definition</b> <a href="#l00238">exec.c:238</a></div></div>
<div class="ttc" id="aexec_8h_html"><div class="ttname"><a href="exec_8h.html">exec.h</a></div></div>
<div class="ttc" id="aexec_8h_html_a4e0a6f969a932f5910581de8d4a46f04a56190d5ca1ea4a8db3741d97f33c9d9c"><div class="ttname"><a href="exec_8h.html#a4e0a6f969a932f5910581de8d4a46f04a56190d5ca1ea4a8db3741d97f33c9d9c">INSIZE</a></div><div class="ttdeci">@ INSIZE</div><div class="ttdef"><b>Definition</b> <a href="exec_8h_source.html#l00014">exec.h:14</a></div></div>
<div class="ttc" id="aexec_8h_html_add23c9453fa34e199972db4147e753a5"><div class="ttname"><a href="exec_8h.html#add23c9453fa34e199972db4147e753a5">dsp_trace_dump</a></div><div class="ttdeci">void dsp_trace_dump()</div><div class="ttdoc">COMET IIのレジスタとメモリを実行状況と設定に応じて表示する</div><div class="ttdef"><b>Definition</b> <a href="dump_8c_source.html#l00061">dump.c:61</a></div></div>
<div class="ttc" id="amonitor_8h_html"><div class="ttname"><a href="monitor_8h.html">monitor.h</a></div></div>
<div class="ttc" id="amonitor_8h_html_a0e89037e727d646088e956504e02ef8b"><div class="ttname"><a href="monitor_8h.html#a0e89037e727d646088e956504e02ef8b">monitor</a></div><div class="ttdeci">void monitor()</div><div class="ttdoc">COMET IIモニターを起動する</div><div class="ttdef"><b>Definition</b> <a href="monitor_8c_source.html#l00386">monitor.c:386</a></div></div>
<div class="ttc" id="amonitor_8h_html_a637744da825fa9add031f300f4dfd41a"><div class="ttname"><a href="monitor_8h.html#a637744da825fa9add031f300f4dfd41a">getbps</a></div><div class="ttdeci">bool getbps(WORD adr)</div><div class="ttdoc">ブレークポイント表にアドレスがある場合はtrue、ない場合はfalseを返す</div><div class="ttdef"><b>Definition</b> <a href="monitor_8c_source.html#l00029">monitor.c:29</a></div></div>
<div class="ttc" id="amonitor_8h_html_adb54436ace11ea6093daccda2500a0d5"><div class="ttname"><a href="monitor_8h.html#adb54436ace11ea6093daccda2500a0d5">freebps</a></div><div class="ttdeci">void freebps()</div><div class="ttdoc">ブレークポイント表を解放する</div><div class="ttdef"><b>Definition</b> <a href="monitor_8c_source.html#l00120">monitor.c:120</a></div></div>
<div class="ttc" id="astruct_8h_html_a11a84ab321dab6eed98b381aaf24783bab6eaa966bbafb88384de6feb9d980722"><div class="ttname"><a href="struct_8h.html#a11a84ab321dab6eed98b381aaf24783bab6eaa966bbafb88384de6feb9d980722">HASH_CODE</a></div><div class="ttdeci">@ HASH_CODE</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00065">struct.h:65</a></div></div>
<div class="ttc" id="astruct_8h_html_a3163ec8332252a40b7609df6cc48a6e6a8fa6b56ad50d439c542216068ede577d"><div class="ttname"><a href="struct_8h.html#a3163ec8332252a40b7609df6cc48a6e6a8fa6b56ad50d439c542216068ede577d">GRSIZE</a></div><div class="ttdeci">@ GRSIZE</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00019">struct.h:19</a></div></div>
<div class="ttc" id="astruct_8h_html_a3163ec8332252a40b7609df6cc48a6e6ac9db03b60111f9c385cf16cfe1f01d29"><div class="ttname"><a href="struct_8h.html#a3163ec8332252a40b7609df6cc48a6e6ac9db03b60111f9c385cf16cfe1f01d29">MAX_CLOCKS</a></div><div class="ttdeci">@ MAX_CLOCKS</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00022">struct.h:22</a></div></div>
<div class="ttc" id="astruct_8h_html_a4be4aa2dd7d478878cc9fda6aed8498e"><div class="ttname"><a href="struct_8h.html#a4be4aa2dd7d478878cc9fda6aed8498e">execptr</a></div><div class="ttdeci">EXECPTR * execptr</div><div class="ttdef"><b>Definition</b> <a href="struct_8c_source.html#l00013">struct.c:13</a></div></div>
<div class="ttc" id="astruct_8h_html_a4eb3743c27e816af85038b8d48f0f4f2"><div class="ttname"><a href="struct_8h.html#a4eb3743c27e816af85038b8d48f0f4f2">create_cmdtable</a></div><div class="ttdeci">bool create_cmdtable(CMDTAB_HASH hash)</div><div class="ttdoc">命令ハッシュ表を作成する</div><div class="ttdef"><b>Definition</b> <a href="struct_8c_source.html#l00124">struct.c:124</a></div></div>
<div class="ttc" id="astruct_8h_html_a55f25bc9bf4185b56a652eea303876c2a721d4f1eaa4a30661aaef3353e5305e2"><div class="ttname"><a href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a721d4f1eaa4a30661aaef3353e5305e2">OF</a></div><div class="ttdeci">@ OF</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00030">struct.h:30</a></div></div>
<div class="ttc" id="astruct_8h_html_a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f"><div class="ttname"><a href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a88236eb961161da8c0196d093e14864f">ZF</a></div><div class="ttdeci">@ ZF</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00032">struct.h:32</a></div></div>
<div class="ttc" id="astruct_8h_html_a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d"><div class="ttname"><a href="struct_8h.html#a55f25bc9bf4185b56a652eea303876c2a96bc3519848ec2ba618228bca917088d">SF</a></div><div class="ttdeci">@ SF</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00031">struct.h:31</a></div></div>
<div class="ttc" id="astruct_8h_html_a6348147d61187876a240a2a354a24316"><div class="ttname"><a href="struct_8h.html#a6348147d61187876a240a2a354a24316">getcmdptr</a></div><div class="ttdeci">void * getcmdptr(WORD code)</div><div class="ttdef"><b>Definition</b> <a href="struct_8c_source.html#l00218">struct.c:218</a></div></div>
<div class="ttc" id="astruct_8h_html_a850f47aba27f4d034b3ac7f3368a67b3"><div class="ttname"><a href="struct_8h.html#a850f47aba27f4d034b3ac7f3368a67b3">CLOCK</a></div><div class="ttdeci">unsigned int CLOCK</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00012">struct.h:12</a></div></div>
<div class="ttc" id="astruct_8h_html_a8772ddb837dae62899db0754b7606766a20858f2dbe9ee37ca9c39a99e11bfaea"><div class="ttname"><a href="struct_8h.html#a8772ddb837dae62899db0754b7606766a20858f2dbe9ee37ca9c39a99e11bfaea">R_</a></div><div class="ttdeci">@ R_</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00097">struct.h:97</a></div></div>
<div class="ttc" id="astruct_8h_html_a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d"><div class="ttname"><a href="struct_8h.html#a8772ddb837dae62899db0754b7606766a53dcd004ffb58d413bd033976c4df75d">R_ADR_X</a></div><div class="ttdeci">@ R_ADR_X</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00080">struct.h:80</a></div></div>
<div class="ttc" id="astruct_8h_html_a8772ddb837dae62899db0754b7606766aa563615d1f9228e498ba281495479270"><div class="ttname"><a href="struct_8h.html#a8772ddb837dae62899db0754b7606766aa563615d1f9228e498ba281495479270">ADR_X</a></div><div class="ttdeci">@ ADR_X</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00092">struct.h:92</a></div></div>
<div class="ttc" id="astruct_8h_html_a8772ddb837dae62899db0754b7606766ac157bdf0b85a40d2619cbc8bc1ae5fe2"><div class="ttname"><a href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac157bdf0b85a40d2619cbc8bc1ae5fe2">NONE</a></div><div class="ttdeci">@ NONE</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00101">struct.h:101</a></div></div>
<div class="ttc" id="astruct_8h_html_a8772ddb837dae62899db0754b7606766ac82f34e8304fe6bd020a6123a6692349"><div class="ttname"><a href="struct_8h.html#a8772ddb837dae62899db0754b7606766ac82f34e8304fe6bd020a6123a6692349">R1_R2</a></div><div class="ttdeci">@ R1_R2</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00086">struct.h:86</a></div></div>
<div class="ttc" id="astruct_8h_html_a979c48d01c135239941c21e2de01d6a7"><div class="ttname"><a href="struct_8h.html#a979c48d01c135239941c21e2de01d6a7">free_cmdtable</a></div><div class="ttdeci">void free_cmdtable(CMDTAB_HASH hash)</div><div class="ttdef"><b>Definition</b> <a href="struct_8c_source.html#l00146">struct.c:146</a></div></div>
<div class="ttc" id="astruct_8h_html_a98d202b8436afcd618aaca20d7748227"><div class="ttname"><a href="struct_8h.html#a98d202b8436afcd618aaca20d7748227">sys</a></div><div class="ttdeci">SYSTEM * sys</div><div class="ttdoc">COMET IIの仮想実行マシンシステム</div><div class="ttdef"><b>Definition</b> <a href="struct_8c_source.html#l00008">struct.c:8</a></div></div>
<div class="ttc" id="astruct_8h_html_ab6fb3f305d8b1ab26140ee30bd61e980"><div class="ttname"><a href="struct_8h.html#ab6fb3f305d8b1ab26140ee30bd61e980">getcmdwordlen</a></div><div class="ttdeci">WORD getcmdwordlen(const char *cmd, CMDTYPE type)</div><div class="ttdef"><b>Definition</b> <a href="struct_8c_source.html#l00183">struct.c:183</a></div></div>
<div class="ttc" id="astruct_8h_html_afdbb7e7d9e799a0e0814654774763d18"><div class="ttname"><a href="struct_8h.html#afdbb7e7d9e799a0e0814654774763d18">execmode</a></div><div class="ttdeci">EXECMODE execmode</div><div class="ttdoc">実行モード: trace, logical, dump, reverse, monitor, step</div><div class="ttdef"><b>Definition</b> <a href="#l00090">exec.c:90</a></div></div>
<div class="ttc" id="astruct_e_x_e_c_m_o_d_e_html"><div class="ttname"><a href="struct_e_x_e_c_m_o_d_e.html">EXECMODE</a></div><div class="ttdoc">実行モードを表すデータ型</div><div class="ttdef"><b>Definition</b> <a href="struct_8h_source.html#l00146">struct.h:146</a></div></div>
<div class="ttc" id="aword_8h_html_a197942eefa7db30960ae396d68339b97"><div class="ttname"><a href="word_8h.html#a197942eefa7db30960ae396d68339b97">WORD</a></div><div class="ttdeci">unsigned short WORD</div><div class="ttdoc">16ビットの数値を表すデータ型</div><div class="ttdef"><b>Definition</b> <a href="word_8h_source.html#l00009">word.h:9</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on <span class="timestamp"></span> for YACASL2 by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0
</small></address>
</div><!-- doc-content -->
</body>
</html>

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