root/doc_inner/gnu_global/S/2417.html

/* [<][>][^][v][top][bottom][index][help] */
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>include/struct.h</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.6.5' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/2930.html'>include</a>/struct.h</h2>
<em class='comment'>/* [&lt;][&gt;][^][v][top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
<hr />
<h2 class='header'><a href='../J/1315.html' title='Multiple included from 6 places.'>INCLUDED FROM</a></h2>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='sharp'>#ifndef</em> <a href='../S/2417.html#L2' title='Defined at 2 in include/struct.h.'>YACASL2_STRUCT_INCLUDED</a>
<a id='L2' name='L2'></a>   2 <em class='sharp'>#define</em> <a href='../S/2417.html#L1' title='Referred from 1 in include/struct.h.'>YACASL2_STRUCT_INCLUDED</a>
<a id='L3' name='L3'></a>   3 
<a id='L4' name='L4'></a>   4 <em class='sharp'>#include</em> &lt;stdio.h&gt;
<a id='L5' name='L5'></a>   5 <em class='sharp'>#include</em> &lt;assert.h&gt;
<a id='L6' name='L6'></a>   6 <em class='sharp'>#include</em> &lt;string.h&gt;
<a id='L7' name='L7'></a>   7 <em class='sharp'>#include</em> &lt;time.h&gt;
<a id='L8' name='L8'></a>   8 <em class='sharp'>#include</em> "<a href='2425.html'>word.h</a>"
<a id='L9' name='L9'></a>   9 <em class='sharp'>#include</em> "<a href='2424.html'>cmem.h</a>"
<a id='L10' name='L10'></a>  10 <em class='sharp'>#include</em> "<a href='2426.html'>hash.h</a>"
<a id='L11' name='L11'></a>  11 <em class='sharp'>#include</em> "<a href='2420.html'>exec.h</a>"
<a id='L12' name='L12'></a>  12 
<a id='L13' name='L13'></a>  13 <em class='comment'>/**</em>
<a id='L14' name='L14'></a>  14 <em class='comment'> * @brief COMET IIの規格値</em>
<a id='L15' name='L15'></a>  15 <em class='comment'> */</em>
<a id='L16' name='L16'></a>  16 <strong class='reserved'>enum</strong> <em class='brace'>{</em>
<a id='L17' name='L17'></a>  17     CMDSIZE = 4,              <em class='comment'>/**&lt;命令の最大文字数 */</em>
<a id='L18' name='L18'></a>  18     <a href='../R/26.html' title='Multiple referred from 8 places.'>GRSIZE</a> = 8,               <em class='comment'>/**&lt;汎用レジスタの数。COMET II規格では、8(0から7) */</em>
<a id='L19' name='L19'></a>  19     <a href='../R/21.html' title='Multiple referred from 3 places.'>DEFAULT_MEMSIZE</a> = 512,    <em class='comment'>/**&lt;デフォルトのメモリ容量。COMET II規格では、65535語(word) */</em>
<a id='L20' name='L20'></a>  20     <a href='../R/20.html' title='Multiple referred from 3 places.'>DEFAULT_CLOCKS</a> = 5000000, <em class='comment'>/**&lt;デフォルトのクロック周波数。COMET II規格では、未定義 */</em>
<a id='L21' name='L21'></a>  21 <em class='brace'>}</em>;
<a id='L22' name='L22'></a>  22 
<a id='L23' name='L23'></a>  23 <em class='comment'>/**</em>
<a id='L24' name='L24'></a>  24 <em class='comment'> * @brief COMET II フラグのマスク値</em>
<a id='L25' name='L25'></a>  25 <em class='comment'> */</em>
<a id='L26' name='L26'></a>  26 <strong class='reserved'>enum</strong> <em class='brace'>{</em>
<a id='L27' name='L27'></a>  27     <a href='../R/50.html' title='Multiple referred from 8 places.'>OF</a> = 0x4,    <em class='comment'>/**&lt;Overflow Flag */</em>
<a id='L28' name='L28'></a>  28     <a href='../R/59.html' title='Multiple referred from 11 places.'>SF</a> = 0x2,    <em class='comment'>/**&lt;Sign Flag */</em>
<a id='L29' name='L29'></a>  29     <a href='../R/76.html' title='Multiple referred from 12 places.'>ZF</a> = 0x1,    <em class='comment'>/**&lt;Zero Flag */</em>
<a id='L30' name='L30'></a>  30 <em class='brace'>}</em>;
<a id='L31' name='L31'></a>  31 
<a id='L32' name='L32'></a>  32 <em class='comment'>/**</em>
<a id='L33' name='L33'></a>  33 <em class='comment'> * @brief COMET IIのCPUを表すデータ型</em>
<a id='L34' name='L34'></a>  34 <em class='comment'> */</em>
<a id='L35' name='L35'></a>  35 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em>
<a id='L36' name='L36'></a>  36     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/113.html' title='Multiple used in 59 places.'>gr</a>[<a href='../S/2417.html#L18' title='Defined at 18 in include/struct.h.'>GRSIZE</a>]; <em class='comment'>/**&lt;汎用レジスタ */</em>
<a id='L37' name='L37'></a>  37     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/193.html' title='Multiple used in 17 places.'>sp</a>;         <em class='comment'>/**&lt;スタックポインタ */</em>
<a id='L38' name='L38'></a>  38     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a>;         <em class='comment'>/**&lt;プログラムレジスタ */</em>
<a id='L39' name='L39'></a>  39     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/103.html' title='Multiple used in 44 places.'>fr</a>;         <em class='comment'>/**&lt;フラグレジスタ */</em>
<a id='L40' name='L40'></a>  40 <em class='brace'>}</em> <a href='../R/19.html' title='Multiple referred from 2 places.'>CPU</a>;
<a id='L41' name='L41'></a>  41 
<a id='L42' name='L42'></a>  42 <em class='comment'>/**</em>
<a id='L43' name='L43'></a>  43 <em class='comment'> * @brief COMET IIの仮想実行マシンシステムを表すデータ型</em>
<a id='L44' name='L44'></a>  44 <em class='comment'> */</em>
<a id='L45' name='L45'></a>  45 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em>
<a id='L46' name='L46'></a>  46     <a href='../S/2417.html#L40' title='Defined at 40 in include/struct.h.'>CPU</a> *<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>;        <em class='comment'>/**&lt;CPU */</em>
<a id='L47' name='L47'></a>  47     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> *<a href='../Y/144.html' title='Multiple used in 60 places.'>memory</a>;    <em class='comment'>/**&lt;メモリ */</em>
<a id='L48' name='L48'></a>  48     <strong class='reserved'>int</strong> <a href='../Y/146.html' title='Multiple used in 30 places.'>memsize</a>;     <em class='comment'>/**&lt;メモリサイズ */</em>
<a id='L49' name='L49'></a>  49     <a href='../Y/57.html' title='Multiple used in 3 places.'>clock_t</a> <a href='../Y/58.html' title='Multiple used in 15 places.'>clocks</a>;  <em class='comment'>/**&lt;クロック周波数 */</em>
<a id='L50' name='L50'></a>  50 <em class='brace'>}</em> <a href='../R/60.html' title='Multiple referred from 3 places.'>SYSTEM</a>;
<a id='L51' name='L51'></a>  51 
<a id='L52' name='L52'></a>  52 <em class='comment'>/**</em>
<a id='L53' name='L53'></a>  53 <em class='comment'> * @brief COMET IIの仮想実行マシンシステム</em>
<a id='L54' name='L54'></a>  54 <em class='comment'> */</em>
<a id='L55' name='L55'></a>  55 <strong class='reserved'>extern</strong> <a href='../S/2417.html#L50' title='Defined at 50 in include/struct.h.'>SYSTEM</a> *<a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>;
<a id='L56' name='L56'></a>  56 
<a id='L57' name='L57'></a>  57 <em class='comment'>/**</em>
<a id='L58' name='L58'></a>  58 <em class='comment'> * 命令ハッシュ表のハッシュの種類</em>
<a id='L59' name='L59'></a>  59 <em class='comment'> */</em>
<a id='L60' name='L60'></a>  60 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong> <em class='brace'>{</em>
<a id='L61' name='L61'></a>  61     <a href='../R/28.html' title='Multiple referred from 9 places.'>HASH_CMDTYPE</a>,
<a id='L62' name='L62'></a>  62     <a href='../R/29.html' title='Multiple referred from 10 places.'>HASH_CODE</a>,
<a id='L63' name='L63'></a>  63     <a href='../S/2856.html#L73' title='Referred from 73 in src/struct.c.'>HASH_MAX</a>,
<a id='L64' name='L64'></a>  64 <em class='brace'>}</em> <a href='../R/16.html' title='Multiple referred from 4 places.'>CMDTAB_HASH</a>;
<a id='L65' name='L65'></a>  65 
<a id='L66' name='L66'></a>  66 <em class='comment'>/**</em>
<a id='L67' name='L67'></a>  67 <em class='comment'> * COMET II 命令</em>
<a id='L68' name='L68'></a>  68 <em class='comment'> * 命令タイプは、オペランドにより5種類に分類</em>
<a id='L69' name='L69'></a>  69 <em class='comment'> */</em>
<a id='L70' name='L70'></a>  70 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong> <em class='brace'>{</em>
<a id='L71' name='L71'></a>  71     <em class='comment'>/**</em>
<a id='L72' name='L72'></a>  72 <em class='comment'>     *  オペランド数2または3</em>
<a id='L73' name='L73'></a>  73 <em class='comment'>     *  - 第1オペランド: 汎用レジスタ。必須</em>
<a id='L74' name='L74'></a>  74 <em class='comment'>     *  - 第2オペランド: アドレス。必須</em>
<a id='L75' name='L75'></a>  75 <em class='comment'>     *  - 第3オペランド: 指標レジスタとして用いる汎用レジスタ。任意</em>
<a id='L76' name='L76'></a>  76 <em class='comment'>     */</em>
<a id='L77' name='L77'></a>  77     <a href='../R/57.html' title='Multiple referred from 28 places.'>R_ADR_X</a> = 01,
<a id='L78' name='L78'></a>  78     <em class='comment'>/**</em>
<a id='L79' name='L79'></a>  79 <em class='comment'>     *  オペランド数2</em>
<a id='L80' name='L80'></a>  80 <em class='comment'>     *  - 第1オペランド: 汎用レジスタ。必須</em>
<a id='L81' name='L81'></a>  81 <em class='comment'>     *  - 第2オペランド: 汎用レジスタ。必須</em>
<a id='L82' name='L82'></a>  82 <em class='comment'>     */</em>
<a id='L83' name='L83'></a>  83     <a href='../R/55.html' title='Multiple referred from 19 places.'>R1_R2</a> = 02,
<a id='L84' name='L84'></a>  84     <em class='comment'>/**</em>
<a id='L85' name='L85'></a>  85 <em class='comment'>     * オペランド数1または2</em>
<a id='L86' name='L86'></a>  86 <em class='comment'>     * - 第1オペランド: アドレス。必須</em>
<a id='L87' name='L87'></a>  87 <em class='comment'>     * - 第2オペランド: 指標レジスタとして用いる汎用レジスタ。任意</em>
<a id='L88' name='L88'></a>  88 <em class='comment'>     */</em>
<a id='L89' name='L89'></a>  89     <a href='../R/1.html' title='Multiple referred from 16 places.'>ADR_X</a> = 03,
<a id='L90' name='L90'></a>  90     <em class='comment'>/**</em>
<a id='L91' name='L91'></a>  91 <em class='comment'>     * オペランド数1</em>
<a id='L92' name='L92'></a>  92 <em class='comment'>     * - 第1オペランド: 汎用レジスタ。必須</em>
<a id='L93' name='L93'></a>  93 <em class='comment'>     */</em>
<a id='L94' name='L94'></a>  94     <a href='../R/56.html' title='Multiple referred from 4 places.'>R_</a> = 04,
<a id='L95' name='L95'></a>  95     <em class='comment'>/**</em>
<a id='L96' name='L96'></a>  96 <em class='comment'>     * オペランドなし</em>
<a id='L97' name='L97'></a>  97 <em class='comment'>     */</em>
<a id='L98' name='L98'></a>  98     <a href='../R/49.html' title='Multiple referred from 9 places.'>NONE</a> = 0,
<a id='L99' name='L99'></a>  99 <em class='brace'>}</em> <a href='../R/17.html' title='Multiple referred from 15 places.'>CMDTYPE</a>;
<a id='L100' name='L100'></a> 100 
<a id='L101' name='L101'></a> 101 <em class='comment'>/**</em>
<a id='L102' name='L102'></a> 102 <em class='comment'> * 命令コード表の項目</em>
<a id='L103' name='L103'></a> 103 <em class='comment'> */</em>
<a id='L104' name='L104'></a> 104 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em>
<a id='L105' name='L105'></a> 105     <strong class='reserved'>char</strong> *<a href='../Y/153.html' title='Multiple used in 9 places.'>name</a>;                 <em class='comment'>/**&lt;命令名 */</em>
<a id='L106' name='L106'></a> 106     <strong class='reserved'>const</strong> <strong class='reserved'>void</strong> (*<a href='../Y/178.html' title='Multiple used in 24 places.'>ptr</a>);          <em class='comment'>/**&lt;命令の関数ポインタ */</em>
<a id='L107' name='L107'></a> 107 <em class='brace'>}</em> <a href='../R/12.html' title='Multiple referred from 4 places.'>CMD</a>;
<a id='L108' name='L108'></a> 108 
<a id='L109' name='L109'></a> 109 <em class='comment'>/**</em>
<a id='L110' name='L110'></a> 110 <em class='comment'> * COMET II命令コード表の項目</em>
<a id='L111' name='L111'></a> 111 <em class='comment'> */</em>
<a id='L112' name='L112'></a> 112 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em>
<a id='L113' name='L113'></a> 113     <strong class='reserved'>char</strong> *<a href='../Y/153.html' title='Multiple used in 9 places.'>name</a>;                 <em class='comment'>/**&lt;命令名 */</em>
<a id='L114' name='L114'></a> 114     <a href='../S/2417.html#L99' title='Defined at 99 in include/struct.h.'>CMDTYPE</a> <a href='../Y/230.html' title='Multiple used in 26 places.'>type</a>;               <em class='comment'>/**&lt;命令タイプ */</em>
<a id='L115' name='L115'></a> 115     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/70.html' title='Multiple used in 25 places.'>code</a>;                  <em class='comment'>/**&lt;命令コード */</em>
<a id='L116' name='L116'></a> 116     <strong class='reserved'>const</strong> <strong class='reserved'>void</strong> (*<a href='../Y/178.html' title='Multiple used in 24 places.'>ptr</a>);          <em class='comment'>/**&lt;命令の関数ポインタ */</em>
<a id='L117' name='L117'></a> 117 <em class='brace'>}</em> <a href='../R/18.html' title='Multiple referred from 2 places.'>COMET2CMD</a>;
<a id='L118' name='L118'></a> 118 
<a id='L119' name='L119'></a> 119 <em class='comment'>/**</em>
<a id='L120' name='L120'></a> 120 <em class='comment'> * 命令コードのハッシュ表</em>
<a id='L121' name='L121'></a> 121 <em class='comment'> */</em>
<a id='L122' name='L122'></a> 122 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <a href='../S/2417.html#L123' title='Referred from 123 in include/struct.h.'>_CMDTAB</a> <em class='brace'>{</em>
<a id='L123' name='L123'></a> 123     <strong class='reserved'>struct</strong> <a href='../S/2417.html#L122' title='Defined at 122 in include/struct.h.'>_CMDTAB</a> *<a href='../Y/154.html' title='Multiple used in 30 places.'>next</a>;       <em class='comment'>/**&lt;リスト次項目へのポインタ */</em>
<a id='L124' name='L124'></a> 124     <strong class='reserved'>const</strong> <a href='../S/2417.html#L117' title='Defined at 117 in include/struct.h.'>COMET2CMD</a> *<a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a>;       <em class='comment'>/**&lt;命令コード表の項目 */</em>
<a id='L125' name='L125'></a> 125 <em class='brace'>}</em> <a href='../R/14.html' title='Multiple referred from 9 places.'>CMDTAB</a>;
<a id='L126' name='L126'></a> 126 
<a id='L127' name='L127'></a> 127 <em class='comment'>/**</em>
<a id='L128' name='L128'></a> 128 <em class='comment'> * プログラム実行時の開始と終了のアドレス</em>
<a id='L129' name='L129'></a> 129 <em class='comment'> */</em>
<a id='L130' name='L130'></a> 130 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em>
<a id='L131' name='L131'></a> 131     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/196.html' title='Multiple used in 19 places.'>start</a>;   <em class='comment'>/**&lt;開始アドレス */</em>
<a id='L132' name='L132'></a> 132     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/85.html' title='Multiple used in 25 places.'>end</a>;     <em class='comment'>/**&lt;終了アドレス */</em>
<a id='L133' name='L133'></a> 133     <a href='../Y/25.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/202.html' title='Multiple used in 5 places.'>stop</a>;    <em class='comment'>/**&lt;終了フラグ */</em>
<a id='L134' name='L134'></a> 134 <em class='brace'>}</em> <a href='../R/23.html' title='Multiple referred from 3 places.'>EXECPTR</a>;
<a id='L135' name='L135'></a> 135 
<a id='L136' name='L136'></a> 136 <strong class='reserved'>extern</strong> <a href='../S/2417.html#L134' title='Defined at 134 in include/struct.h.'>EXECPTR</a> *<a href='../Y/89.html' title='Multiple used in 25 places.'>execptr</a>;
<a id='L137' name='L137'></a> 137 
<a id='L138' name='L138'></a> 138 <em class='comment'>/**</em>
<a id='L139' name='L139'></a> 139 <em class='comment'> * @brief 実行モードを表すデータ型</em>
<a id='L140' name='L140'></a> 140 <em class='comment'> */</em>
<a id='L141' name='L141'></a> 141 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em>
<a id='L142' name='L142'></a> 142     <a href='../Y/25.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/227.html' title='Multiple used in 13 places.'>trace</a>;           <em class='comment'>/**&lt;レジストリの内容をステップごとに表示する場合はtrue */</em>
<a id='L143' name='L143'></a> 143     <a href='../Y/25.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/136.html' title='Multiple used in 6 places.'>logical</a>;         <em class='comment'>/**&lt;レジストリの内容を論理値(0から65535)で表示する場合はtrue */</em>
<a id='L144' name='L144'></a> 144     <a href='../Y/25.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/81.html' title='Multiple used in 8 places.'>dump</a>;            <em class='comment'>/**&lt;メモリの内容をステップごとに表示する場合はtrue */</em>
<a id='L145' name='L145'></a> 145     <strong class='reserved'>int</strong> <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_start</a>;       <em class='comment'>/**&lt;メモリの内容をステップごとに表示する場合の開始アドレス */</em>
<a id='L146' name='L146'></a> 146     <strong class='reserved'>int</strong> <a href='../Y/82.html' title='Multiple used in 8 places.'>dump_end</a>;         <em class='comment'>/**&lt;メモリの内容をステップごとに表示する場合の終了アドレス */</em>
<a id='L147' name='L147'></a> 147     <a href='../Y/25.html' title='Multiple used in 55 places.'>bool</a> <a href='../S/2804.html#L389' title='Defined at 389 in src/monitor.c.'>monitor</a>;         <em class='comment'>/**&lt;モニターモードの場合はtrue */</em>
<a id='L148' name='L148'></a> 148     <a href='../Y/25.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/201.html' title='Multiple used in 5 places.'>step</a>;            <em class='comment'>/**&lt;ステップ実行の場合はtrue */</em>
<a id='L149' name='L149'></a> 149 <em class='brace'>}</em> <a href='../R/22.html' title='Multiple referred from 2 places.'>EXECMODE</a>;
<a id='L150' name='L150'></a> 150 
<a id='L151' name='L151'></a> 151 <em class='comment'>/**</em>
<a id='L152' name='L152'></a> 152 <em class='comment'> * @brief 実行モード: trace, logical, dump, monitor, step</em>
<a id='L153' name='L153'></a> 153 <em class='comment'> */</em>
<a id='L154' name='L154'></a> 154 <strong class='reserved'>extern</strong> <a href='../S/2417.html#L149' title='Defined at 149 in include/struct.h.'>EXECMODE</a> <a href='../Y/88.html' title='Multiple used in 35 places.'>execmode</a>;
<a id='L155' name='L155'></a> 155 
<a id='L156' name='L156'></a> 156 <em class='comment'>/**</em>
<a id='L157' name='L157'></a> 157 <em class='comment'> * @brief 汎用レジスタの番号からレジスタを表す文字列を返す</em>
<a id='L158' name='L158'></a> 158 <em class='comment'> *</em>
<a id='L159' name='L159'></a> 159 <em class='comment'> * @return 汎用レジスタを表す文字列。「GR0」「GR1」・・・「GR7」のいずれか</em>
<a id='L160' name='L160'></a> 160 <em class='comment'> *</em>
<a id='L161' name='L161'></a> 161 <em class='comment'> * @param word レジスタ番号[0-7]を表すWORD値</em>
<a id='L162' name='L162'></a> 162 <em class='comment'> */</em>
<a id='L163' name='L163'></a> 163 <strong class='reserved'>char</strong> *<a href='../S/2856.html#L240' title='Defined at 240 in src/struct.c.'>grstr</a>(<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>);
<a id='L164' name='L164'></a> 164 
<a id='L165' name='L165'></a> 165 <em class='comment'>/**</em>
<a id='L166' name='L166'></a> 166 <em class='comment'> * COMET II仮想マシンのリセット</em>
<a id='L167' name='L167'></a> 167 <em class='comment'> */</em>
<a id='L168' name='L168'></a> 168 <strong class='reserved'>void</strong> <a href='../S/2856.html#L253' title='Defined at 253 in src/struct.c.'>reset</a>(<strong class='reserved'>int</strong> <a href='../Y/146.html' title='Multiple used in 30 places.'>memsize</a>, <strong class='reserved'>int</strong> <a href='../Y/58.html' title='Multiple used in 15 places.'>clocks</a>);
<a id='L169' name='L169'></a> 169 
<a id='L170' name='L170'></a> 170 <em class='comment'>/**</em>
<a id='L171' name='L171'></a> 171 <em class='comment'> * COMET II仮想マシンのシャットダウン</em>
<a id='L172' name='L172'></a> 172 <em class='comment'> */</em>
<a id='L173' name='L173'></a> 173 <strong class='reserved'>void</strong> <a href='../S/2856.html#L278' title='Defined at 278 in src/struct.c.'>shutdown</a>();
<a id='L174' name='L174'></a> 174 
<a id='L175' name='L175'></a> 175 <em class='comment'>/**</em>
<a id='L176' name='L176'></a> 176 <em class='comment'> * @brief 命令ハッシュ表を作成する</em>
<a id='L177' name='L177'></a> 177 <em class='comment'> *</em>
<a id='L178' name='L178'></a> 178 <em class='comment'> * @return なし</em>
<a id='L179' name='L179'></a> 179 <em class='comment'> *</em>
<a id='L180' name='L180'></a> 180 <em class='comment'> * @param hash ハッシュ値</em>
<a id='L181' name='L181'></a> 181 <em class='comment'> */</em>
<a id='L182' name='L182'></a> 182 <a href='../Y/25.html' title='Multiple used in 55 places.'>bool</a> <a href='../S/2856.html#L113' title='Defined at 113 in src/struct.c.'>create_cmdtable</a>(<a href='../S/2417.html#L64' title='Defined at 64 in include/struct.h.'>CMDTAB_HASH</a> <a href='../S/2830.html#L3' title='Defined at 3 in src/hash.c.'>hash</a>);
<a id='L183' name='L183'></a> 183 
<a id='L184' name='L184'></a> 184 <em class='comment'>/**</em>
<a id='L185' name='L185'></a> 185 <em class='comment'> * 命令ハッシュ表を解放する</em>
<a id='L186' name='L186'></a> 186 <em class='comment'> */</em>
<a id='L187' name='L187'></a> 187 <strong class='reserved'>void</strong> <a href='../S/2856.html#L135' title='Defined at 135 in src/struct.c.'>free_cmdtable</a>(<a href='../S/2417.html#L64' title='Defined at 64 in include/struct.h.'>CMDTAB_HASH</a> <a href='../S/2830.html#L3' title='Defined at 3 in src/hash.c.'>hash</a>);
<a id='L188' name='L188'></a> 188 
<a id='L189' name='L189'></a> 189 <em class='comment'>/**</em>
<a id='L190' name='L190'></a> 190 <em class='comment'> * 命令の名前とタイプから、命令コードを返す</em>
<a id='L191' name='L191'></a> 191 <em class='comment'> * 無効な場合は0xFFFFを返す</em>
<a id='L192' name='L192'></a> 192 <em class='comment'> */</em>
<a id='L193' name='L193'></a> 193 <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../S/2856.html#L153' title='Defined at 153 in src/struct.c.'>getcmdcode</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a>, <a href='../S/2417.html#L99' title='Defined at 99 in include/struct.h.'>CMDTYPE</a> <a href='../Y/230.html' title='Multiple used in 26 places.'>type</a>);
<a id='L194' name='L194'></a> 194 
<a id='L195' name='L195'></a> 195 <em class='comment'>/**</em>
<a id='L196' name='L196'></a> 196 <em class='comment'> * 命令コードから命令の関数ポインタを返す</em>
<a id='L197' name='L197'></a> 197 <em class='comment'> */</em>
<a id='L198' name='L198'></a> 198 <strong class='reserved'>const</strong> <strong class='reserved'>void</strong> (*<a href='../S/2856.html#L188' title='Defined at 188 in src/struct.c.'>getcmdptr</a>(<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/70.html' title='Multiple used in 25 places.'>code</a>));
<a id='L199' name='L199'></a> 199 
<a id='L200' name='L200'></a> 200 <em class='comment'>/**</em>
<a id='L201' name='L201'></a> 201 <em class='comment'> * 命令コードから命令のタイプを返す</em>
<a id='L202' name='L202'></a> 202 <em class='comment'> */</em>
<a id='L203' name='L203'></a> 203 <a href='../S/2417.html#L99' title='Defined at 99 in include/struct.h.'>CMDTYPE</a> <a href='../S/2856.html#L205' title='Defined at 205 in src/struct.c.'>getcmdtype</a>(<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/70.html' title='Multiple used in 25 places.'>code</a>);
<a id='L204' name='L204'></a> 204 
<a id='L205' name='L205'></a> 205 <em class='comment'>/**</em>
<a id='L206' name='L206'></a> 206 <em class='comment'> * 命令コードから命令の名前を返す</em>
<a id='L207' name='L207'></a> 207 <em class='comment'> */</em>
<a id='L208' name='L208'></a> 208 <strong class='reserved'>char</strong> *<a href='../S/2856.html#L222' title='Defined at 222 in src/struct.c.'>getcmdname</a>(<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/70.html' title='Multiple used in 25 places.'>code</a>);
<a id='L209' name='L209'></a> 209 
<a id='L210' name='L210'></a> 210 <em class='sharp'>#endif</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;][^][v]<a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
</body>
</html>

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