<!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.14' />
<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/3526.html'>include</a>/struct.h</h2>
<em class='comment'>/* [<][>][^][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/424.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/3004.html#L2' title='Defined at 2 in include/struct.h.'>YACASL2_STRUCT_H_INCLUDED</a>
<a id='L2' name='L2'></a> 2 <em class='sharp'>#define</em> <a href='../S/3004.html#L1' title='Referred from 1 in include/struct.h.'>YACASL2_STRUCT_H_INCLUDED</a>
<a id='L3' name='L3'></a> 3
<a id='L4' name='L4'></a> 4 <em class='sharp'>#include</em> <stdio.h>
<a id='L5' name='L5'></a> 5 <em class='sharp'>#include</em> <assert.h>
<a id='L6' name='L6'></a> 6 <em class='sharp'>#include</em> <string.h>
<a id='L7' name='L7'></a> 7 <em class='sharp'>#include</em> <time.h>
<a id='L8' name='L8'></a> 8 <em class='sharp'>#include</em> "<a href='3011.html'>word.h</a>"
<a id='L9' name='L9'></a> 9 <em class='sharp'>#include</em> "<a href='3010.html'>cmem.h</a>"
<a id='L10' name='L10'></a> 10 <em class='sharp'>#include</em> "<a href='3012.html'>hash.h</a>"
<a id='L11' name='L11'></a> 11
<a id='L12' name='L12'></a> 12 <strong class='reserved'>typedef</strong> <strong class='reserved'>unsigned</strong> <strong class='reserved'>int</strong> <a href='../R/12.html' title='Multiple referred from 8 places.'>CLOCK</a>;
<a id='L13' name='L13'></a> 13
<a id='L14' name='L14'></a> 14 <em class='comment'>/**</em>
<a id='L15' name='L15'></a> 15 <em class='comment'> * @brief COMET IIの規格値</em>
<a id='L16' name='L16'></a> 16 <em class='comment'> */</em>
<a id='L17' name='L17'></a> 17 <strong class='reserved'>enum</strong> <em class='brace'>{</em>
<a id='L18' name='L18'></a> 18 CMDSIZE = 4, <em class='comment'>/**<命令の最大文字数 */</em>
<a id='L19' name='L19'></a> 19 <a href='../R/27.html' title='Multiple referred from 8 places.'>GRSIZE</a> = 8, <em class='comment'>/**<汎用レジスタの数。COMET II規格で、GR0〜GR7までの8 */</em>
<a id='L20' name='L20'></a> 20 <a href='../R/43.html' title='Multiple referred from 2 places.'>MAX_MEMSIZE</a> = 65536, <em class='comment'>/**<メモリ容量の最大値。COMET II規格で、アドレス0~65535の65536語(word) */</em>
<a id='L21' name='L21'></a> 21 <a href='../R/22.html' title='Multiple referred from 3 places.'>DEFAULT_MEMSIZE</a> = 512, <em class='comment'>/**<メモリ容量の初期値。COMET II規格では、アドレス0~65535の65536語(word) */</em>
<a id='L22' name='L22'></a> 22 <a href='../R/42.html' title='Multiple referred from 4 places.'>MAX_CLOCKS</a> = 1000000, <em class='comment'>/**<クロック周波数の最大値。POSIXのCLOCKS_PER_SECと同値 */</em>
<a id='L23' name='L23'></a> 23 <a href='../R/21.html' title='Multiple referred from 3 places.'>DEFAULT_CLOCKS</a> = <a href='../S/3004.html#L22' title='Defined at 22 in include/struct.h.'>MAX_CLOCKS</a>, <em class='comment'>/**<クロック周波数の初期値。最大値と同値 */</em>
<a id='L24' name='L24'></a> 24 <em class='brace'>}</em>;
<a id='L25' name='L25'></a> 25
<a id='L26' name='L26'></a> 26 <em class='comment'>/**</em>
<a id='L27' name='L27'></a> 27 <em class='comment'> * @brief COMET II フラグのマスク値</em>
<a id='L28' name='L28'></a> 28 <em class='comment'> */</em>
<a id='L29' name='L29'></a> 29 <strong class='reserved'>enum</strong> <em class='brace'>{</em>
<a id='L30' name='L30'></a> 30 <a href='../R/52.html' title='Multiple referred from 8 places.'>OF</a> = 0x4, <em class='comment'>/**<Overflow Flag */</em>
<a id='L31' name='L31'></a> 31 <a href='../R/61.html' title='Multiple referred from 11 places.'>SF</a> = 0x2, <em class='comment'>/**<Sign Flag */</em>
<a id='L32' name='L32'></a> 32 <a href='../R/78.html' title='Multiple referred from 12 places.'>ZF</a> = 0x1, <em class='comment'>/**<Zero Flag */</em>
<a id='L33' name='L33'></a> 33 <em class='brace'>}</em>;
<a id='L34' name='L34'></a> 34
<a id='L35' name='L35'></a> 35 <em class='comment'>/**</em>
<a id='L36' name='L36'></a> 36 <em class='comment'> * @brief COMET IIのCPUを表すデータ型</em>
<a id='L37' name='L37'></a> 37 <em class='comment'> */</em>
<a id='L38' name='L38'></a> 38 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em>
<a id='L39' name='L39'></a> 39 <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/115.html' title='Multiple used in 59 places.'>gr</a>[<a href='../S/3004.html#L19' title='Defined at 19 in include/struct.h.'>GRSIZE</a>]; <em class='comment'>/**<汎用レジスタ */</em>
<a id='L40' name='L40'></a> 40 <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/200.html' title='Multiple used in 17 places.'>sp</a>; <em class='comment'>/**<スタックポインタ */</em>
<a id='L41' name='L41'></a> 41 <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/179.html' title='Multiple used in 110 places.'>pr</a>; <em class='comment'>/**<プログラムレジスタ */</em>
<a id='L42' name='L42'></a> 42 <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/105.html' title='Multiple used in 44 places.'>fr</a>; <em class='comment'>/**<フラグレジスタ */</em>
<a id='L43' name='L43'></a> 43 <em class='brace'>}</em> <a href='../R/20.html' title='Multiple referred from 2 places.'>CPU</a>;
<a id='L44' name='L44'></a> 44
<a id='L45' name='L45'></a> 45 <em class='comment'>/**</em>
<a id='L46' name='L46'></a> 46 <em class='comment'> * @brief COMET IIの仮想実行マシンシステムを表すデータ型</em>
<a id='L47' name='L47'></a> 47 <em class='comment'> */</em>
<a id='L48' name='L48'></a> 48 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em>
<a id='L49' name='L49'></a> 49 <a href='../S/3004.html#L43' title='Defined at 43 in include/struct.h.'>CPU</a> *<a href='../Y/78.html' title='Multiple used in 218 places.'>cpu</a>; <em class='comment'>/**<CPU */</em>
<a id='L50' name='L50'></a> 50 <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> *<a href='../Y/148.html' title='Multiple used in 61 places.'>memory</a>; <em class='comment'>/**<メモリ */</em>
<a id='L51' name='L51'></a> 51 <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/150.html' title='Multiple used in 31 places.'>memsize</a>; <em class='comment'>/**<メモリサイズ */</em>
<a id='L52' name='L52'></a> 52 <a href='../S/3004.html#L12' title='Defined at 12 in include/struct.h.'>CLOCK</a> <a href='../Y/59.html' title='Multiple used in 15 places.'>clocks</a>; <em class='comment'>/**<クロック周波数 */</em>
<a id='L53' name='L53'></a> 53 <em class='brace'>}</em> <a href='../R/62.html' title='Multiple referred from 3 places.'>SYSTEM</a>;
<a id='L54' name='L54'></a> 54
<a id='L55' name='L55'></a> 55 <em class='comment'>/**</em>
<a id='L56' name='L56'></a> 56 <em class='comment'> * @brief COMET IIの仮想実行マシンシステム</em>
<a id='L57' name='L57'></a> 57 <em class='comment'> */</em>
<a id='L58' name='L58'></a> 58 <strong class='reserved'>extern</strong> <a href='../S/3004.html#L53' title='Defined at 53 in include/struct.h.'>SYSTEM</a> *<a href='../Y/224.html' title='Multiple used in 243 places.'>sys</a>;
<a id='L59' name='L59'></a> 59
<a id='L60' name='L60'></a> 60 <em class='comment'>/**</em>
<a id='L61' name='L61'></a> 61 <em class='comment'> * 命令ハッシュ表のハッシュの種類</em>
<a id='L62' name='L62'></a> 62 <em class='comment'> */</em>
<a id='L63' name='L63'></a> 63 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong> <em class='brace'>{</em>
<a id='L64' name='L64'></a> 64 <a href='../R/29.html' title='Multiple referred from 9 places.'>HASH_CMDTYPE</a>,
<a id='L65' name='L65'></a> 65 <a href='../R/30.html' title='Multiple referred from 10 places.'>HASH_CODE</a>,
<a id='L66' name='L66'></a> 66 <a href='../S/3457.html#L74' title='Referred from 74 in src/struct.c.'>HASH_MAX</a>,
<a id='L67' name='L67'></a> 67 <em class='brace'>}</em> <a href='../R/17.html' title='Multiple referred from 4 places.'>CMDTAB_HASH</a>;
<a id='L68' name='L68'></a> 68
<a id='L69' name='L69'></a> 69 <em class='comment'>/**</em>
<a id='L70' name='L70'></a> 70 <em class='comment'> * COMET II 命令</em>
<a id='L71' name='L71'></a> 71 <em class='comment'> * 命令タイプは、オペランドにより5種類に分類</em>
<a id='L72' name='L72'></a> 72 <em class='comment'> */</em>
<a id='L73' name='L73'></a> 73 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong> <em class='brace'>{</em>
<a id='L74' name='L74'></a> 74 <em class='comment'>/**</em>
<a id='L75' name='L75'></a> 75 <em class='comment'> * オペランド数2または3</em>
<a id='L76' name='L76'></a> 76 <em class='comment'> * - 第1オペランド: 汎用レジスタ。必須</em>
<a id='L77' name='L77'></a> 77 <em class='comment'> * - 第2オペランド: アドレス。必須</em>
<a id='L78' name='L78'></a> 78 <em class='comment'> * - 第3オペランド: 指標レジスタとして用いる汎用レジスタ。任意</em>
<a id='L79' name='L79'></a> 79 <em class='comment'> */</em>
<a id='L80' name='L80'></a> 80 <a href='../R/59.html' title='Multiple referred from 28 places.'>R_ADR_X</a> = 01,
<a id='L81' name='L81'></a> 81 <em class='comment'>/**</em>
<a id='L82' name='L82'></a> 82 <em class='comment'> * オペランド数2</em>
<a id='L83' name='L83'></a> 83 <em class='comment'> * - 第1オペランド: 汎用レジスタ。必須</em>
<a id='L84' name='L84'></a> 84 <em class='comment'> * - 第2オペランド: 汎用レジスタ。必須</em>
<a id='L85' name='L85'></a> 85 <em class='comment'> */</em>
<a id='L86' name='L86'></a> 86 <a href='../R/57.html' title='Multiple referred from 19 places.'>R1_R2</a> = 02,
<a id='L87' name='L87'></a> 87 <em class='comment'>/**</em>
<a id='L88' name='L88'></a> 88 <em class='comment'> * オペランド数1または2</em>
<a id='L89' name='L89'></a> 89 <em class='comment'> * - 第1オペランド: アドレス。必須</em>
<a id='L90' name='L90'></a> 90 <em class='comment'> * - 第2オペランド: 指標レジスタとして用いる汎用レジスタ。任意</em>
<a id='L91' name='L91'></a> 91 <em class='comment'> */</em>
<a id='L92' name='L92'></a> 92 <a href='../R/1.html' title='Multiple referred from 16 places.'>ADR_X</a> = 03,
<a id='L93' name='L93'></a> 93 <em class='comment'>/**</em>
<a id='L94' name='L94'></a> 94 <em class='comment'> * オペランド数1</em>
<a id='L95' name='L95'></a> 95 <em class='comment'> * - 第1オペランド: 汎用レジスタ。必須</em>
<a id='L96' name='L96'></a> 96 <em class='comment'> */</em>
<a id='L97' name='L97'></a> 97 <a href='../R/58.html' title='Multiple referred from 4 places.'>R_</a> = 04,
<a id='L98' name='L98'></a> 98 <em class='comment'>/**</em>
<a id='L99' name='L99'></a> 99 <em class='comment'> * オペランドなし</em>
<a id='L100' name='L100'></a> 100 <em class='comment'> */</em>
<a id='L101' name='L101'></a> 101 <a href='../R/51.html' title='Multiple referred from 9 places.'>NONE</a> = 0,
<a id='L102' name='L102'></a> 102 <em class='brace'>}</em> <a href='../R/18.html' title='Multiple referred from 15 places.'>CMDTYPE</a>;
<a id='L103' name='L103'></a> 103
<a id='L104' name='L104'></a> 104 <em class='comment'>/**</em>
<a id='L105' name='L105'></a> 105 <em class='comment'> * 命令コード表の項目</em>
<a id='L106' name='L106'></a> 106 <em class='comment'> */</em>
<a id='L107' name='L107'></a> 107 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em>
<a id='L108' name='L108'></a> 108 <strong class='reserved'>char</strong> *<a href='../Y/158.html' title='Multiple used in 16 places.'>name</a>; <em class='comment'>/**<命令名 */</em>
<a id='L109' name='L109'></a> 109 <strong class='reserved'>const</strong> <strong class='reserved'>void</strong> (*<a href='../Y/183.html' title='Multiple used in 24 places.'>ptr</a>); <em class='comment'>/**<命令の関数ポインタ */</em>
<a id='L110' name='L110'></a> 110 <em class='brace'>}</em> <a href='../R/13.html' title='Multiple referred from 4 places.'>CMD</a>;
<a id='L111' name='L111'></a> 111
<a id='L112' name='L112'></a> 112 <em class='comment'>/**</em>
<a id='L113' name='L113'></a> 113 <em class='comment'> * COMET II命令コード表の項目</em>
<a id='L114' name='L114'></a> 114 <em class='comment'> */</em>
<a id='L115' name='L115'></a> 115 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em>
<a id='L116' name='L116'></a> 116 <strong class='reserved'>char</strong> *<a href='../Y/158.html' title='Multiple used in 16 places.'>name</a>; <em class='comment'>/**<命令名 */</em>
<a id='L117' name='L117'></a> 117 <a href='../S/3004.html#L102' title='Defined at 102 in include/struct.h.'>CMDTYPE</a> <a href='../Y/238.html' title='Multiple used in 26 places.'>type</a>; <em class='comment'>/**<命令タイプ */</em>
<a id='L118' name='L118'></a> 118 <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/71.html' title='Multiple used in 25 places.'>code</a>; <em class='comment'>/**<命令コード */</em>
<a id='L119' name='L119'></a> 119 <strong class='reserved'>const</strong> <strong class='reserved'>void</strong> (*<a href='../Y/183.html' title='Multiple used in 24 places.'>ptr</a>); <em class='comment'>/**<命令の関数ポインタ */</em>
<a id='L120' name='L120'></a> 120 <em class='brace'>}</em> <a href='../R/19.html' title='Multiple referred from 2 places.'>COMET2CMD</a>;
<a id='L121' name='L121'></a> 121
<a id='L122' name='L122'></a> 122 <em class='comment'>/**</em>
<a id='L123' name='L123'></a> 123 <em class='comment'> * 命令コードのハッシュ表</em>
<a id='L124' name='L124'></a> 124 <em class='comment'> */</em>
<a id='L125' name='L125'></a> 125 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <a href='../S/3004.html#L126' title='Referred from 126 in include/struct.h.'>_CMDTAB</a> <em class='brace'>{</em>
<a id='L126' name='L126'></a> 126 <strong class='reserved'>struct</strong> <a href='../S/3004.html#L125' title='Defined at 125 in include/struct.h.'>_CMDTAB</a> *<a href='../Y/159.html' title='Multiple used in 30 places.'>next</a>; <em class='comment'>/**<リスト次項目へのポインタ */</em>
<a id='L127' name='L127'></a> 127 <strong class='reserved'>const</strong> <a href='../S/3004.html#L120' title='Defined at 120 in include/struct.h.'>COMET2CMD</a> *<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>; <em class='comment'>/**<命令コード表の項目 */</em>
<a id='L128' name='L128'></a> 128 <em class='brace'>}</em> <a href='../R/15.html' title='Multiple referred from 9 places.'>CMDTAB</a>;
<a id='L129' name='L129'></a> 129
<a id='L130' name='L130'></a> 130 <em class='comment'>/**</em>
<a id='L131' name='L131'></a> 131 <em class='comment'> * プログラム実行時の開始と終了のアドレス</em>
<a id='L132' name='L132'></a> 132 <em class='comment'> */</em>
<a id='L133' name='L133'></a> 133 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em>
<a id='L134' name='L134'></a> 134 <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/203.html' title='Multiple used in 19 places.'>start</a>; <em class='comment'>/**<開始アドレス */</em>
<a id='L135' name='L135'></a> 135 <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/86.html' title='Multiple used in 25 places.'>end</a>; <em class='comment'>/**<終了アドレス */</em>
<a id='L136' name='L136'></a> 136 <a href='../Y/27.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/209.html' title='Multiple used in 5 places.'>stop</a>; <em class='comment'>/**<終了フラグ */</em>
<a id='L137' name='L137'></a> 137 <em class='brace'>}</em> <a href='../R/24.html' title='Multiple referred from 3 places.'>EXECPTR</a>;
<a id='L138' name='L138'></a> 138
<a id='L139' name='L139'></a> 139 <strong class='reserved'>extern</strong> <a href='../S/3004.html#L137' title='Defined at 137 in include/struct.h.'>EXECPTR</a> *<a href='../Y/91.html' title='Multiple used in 25 places.'>execptr</a>;
<a id='L140' name='L140'></a> 140
<a id='L141' name='L141'></a> 141 <em class='comment'>/**</em>
<a id='L142' name='L142'></a> 142 <em class='comment'> * @brief 実行モードを表すデータ型</em>
<a id='L143' name='L143'></a> 143 <em class='comment'> */</em>
<a id='L144' name='L144'></a> 144 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <em class='brace'>{</em>
<a id='L145' name='L145'></a> 145 <a href='../Y/27.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/235.html' title='Multiple used in 13 places.'>trace</a>; <em class='comment'>/**<レジストリの内容をステップごとに表示する場合はtrue */</em>
<a id='L146' name='L146'></a> 146 <a href='../Y/27.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/139.html' title='Multiple used in 6 places.'>logical</a>; <em class='comment'>/**<レジストリの内容を論理値(0から65535)で表示する場合はtrue */</em>
<a id='L147' name='L147'></a> 147 <a href='../Y/27.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/82.html' title='Multiple used in 8 places.'>dump</a>; <em class='comment'>/**<メモリの内容をステップごとに表示する場合はtrue */</em>
<a id='L148' name='L148'></a> 148 <strong class='reserved'>int</strong> <a href='../Y/84.html' title='Multiple used in 8 places.'>dump_start</a>; <em class='comment'>/**<メモリの内容をステップごとに表示する場合の開始アドレス */</em>
<a id='L149' name='L149'></a> 149 <strong class='reserved'>int</strong> <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_end</a>; <em class='comment'>/**<メモリの内容をステップごとに表示する場合の終了アドレス */</em>
<a id='L150' name='L150'></a> 150 <a href='../Y/27.html' title='Multiple used in 55 places.'>bool</a> <a href='../S/3421.html#L397' title='Defined at 397 in src/monitor.c.'>monitor</a>; <em class='comment'>/**<モニターモードの場合はtrue */</em>
<a id='L151' name='L151'></a> 151 <a href='../Y/27.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/208.html' title='Multiple used in 5 places.'>step</a>; <em class='comment'>/**<ステップ実行の場合はtrue */</em>
<a id='L152' name='L152'></a> 152 <em class='brace'>}</em> <a href='../R/23.html' title='Multiple referred from 2 places.'>EXECMODE</a>;
<a id='L153' name='L153'></a> 153
<a id='L154' name='L154'></a> 154 <em class='comment'>/**</em>
<a id='L155' name='L155'></a> 155 <em class='comment'> * @brief 実行モード: trace, logical, dump, monitor, step</em>
<a id='L156' name='L156'></a> 156 <em class='comment'> */</em>
<a id='L157' name='L157'></a> 157 <strong class='reserved'>extern</strong> <a href='../S/3004.html#L152' title='Defined at 152 in include/struct.h.'>EXECMODE</a> <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>;
<a id='L158' name='L158'></a> 158
<a id='L159' name='L159'></a> 159 <em class='comment'>/**</em>
<a id='L160' name='L160'></a> 160 <em class='comment'> * @brief 汎用レジスタの番号からレジスタを表す文字列を返す</em>
<a id='L161' name='L161'></a> 161 <em class='comment'> *</em>
<a id='L162' name='L162'></a> 162 <em class='comment'> * @return 汎用レジスタを表す文字列。「GR0」「GR1」・・・「GR7」のいずれか</em>
<a id='L163' name='L163'></a> 163 <em class='comment'> *</em>
<a id='L164' name='L164'></a> 164 <em class='comment'> * @param word レジスタ番号[0-7]を表すWORD値</em>
<a id='L165' name='L165'></a> 165 <em class='comment'> */</em>
<a id='L166' name='L166'></a> 166 <strong class='reserved'>char</strong> *<a href='../S/3457.html#L251' title='Defined at 251 in src/struct.c.'>grstr</a>(<a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/245.html' title='Multiple used in 54 places.'>word</a>);
<a id='L167' name='L167'></a> 167
<a id='L168' name='L168'></a> 168 <em class='comment'>/**</em>
<a id='L169' name='L169'></a> 169 <em class='comment'> * @brief メモリーサイズを表す数値文字列をWORD値に変換して返す。WORD値に変換できない場合は、エラーを表示して0を返す</em>
<a id='L170' name='L170'></a> 170 <em class='comment'> *</em>
<a id='L171' name='L171'></a> 171 <em class='comment'> * @return メモリーサイズのWORD値である、1から65536までの範囲の整数。エラー時は0</em>
<a id='L172' name='L172'></a> 172 <em class='comment'> *</em>
<a id='L173' name='L173'></a> 173 <em class='comment'> * @param str メモリーサイズを表す数値文字列</em>
<a id='L174' name='L174'></a> 174 <em class='comment'> */</em>
<a id='L175' name='L175'></a> 175 <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../S/3457.html#L261' title='Defined at 261 in src/struct.c.'>memsize_str2word</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/210.html' title='Multiple used in 116 places.'>str</a>);
<a id='L176' name='L176'></a> 176
<a id='L177' name='L177'></a> 177 <em class='comment'>/**</em>
<a id='L178' name='L178'></a> 178 <em class='comment'> * @brief COMET II仮想マシンの初期化</em>
<a id='L179' name='L179'></a> 179 <em class='comment'> *</em>
<a id='L180' name='L180'></a> 180 <em class='comment'> * @param memsize メモリーサイズ。1から65535までの範囲の整数</em>
<a id='L181' name='L181'></a> 181 <em class='comment'> * @param clocks クロック数。1から1000000までの範囲の整数</em>
<a id='L182' name='L182'></a> 182 <em class='comment'> */</em>
<a id='L183' name='L183'></a> 183 <strong class='reserved'>void</strong> <a href='../S/3457.html#L268' title='Defined at 268 in src/struct.c.'>comet2_init</a>(<a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/150.html' title='Multiple used in 31 places.'>memsize</a>, <a href='../S/3004.html#L12' title='Defined at 12 in include/struct.h.'>CLOCK</a> <a href='../Y/59.html' title='Multiple used in 15 places.'>clocks</a>);
<a id='L184' name='L184'></a> 184
<a id='L185' name='L185'></a> 185 <em class='comment'>/**</em>
<a id='L186' name='L186'></a> 186 <em class='comment'> * @brief COMET II仮想マシンのCPUをリセット</em>
<a id='L187' name='L187'></a> 187 <em class='comment'> */</em>
<a id='L188' name='L188'></a> 188 <strong class='reserved'>void</strong> <a href='../S/3457.html#L311' title='Defined at 311 in src/struct.c.'>comet2_reset</a>();
<a id='L189' name='L189'></a> 189
<a id='L190' name='L190'></a> 190 <em class='comment'>/**</em>
<a id='L191' name='L191'></a> 191 <em class='comment'> * COMET II仮想マシンのCPUとメモリをリセット</em>
<a id='L192' name='L192'></a> 192 <em class='comment'> */</em>
<a id='L193' name='L193'></a> 193 <strong class='reserved'>void</strong> <a href='../S/3457.html#L320' title='Defined at 320 in src/struct.c.'>comet2_resetall</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'> * @brief COMET II仮想マシンのシャットダウン</em>
<a id='L197' name='L197'></a> 197 <em class='comment'> */</em>
<a id='L198' name='L198'></a> 198 <strong class='reserved'>void</strong> <a href='../S/3457.html#L331' title='Defined at 331 in src/struct.c.'>comet2_shutdown</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'> * @brief 命令ハッシュ表を作成する</em>
<a id='L202' name='L202'></a> 202 <em class='comment'> *</em>
<a id='L203' name='L203'></a> 203 <em class='comment'> * @param hash ハッシュ値</em>
<a id='L204' name='L204'></a> 204 <em class='comment'> */</em>
<a id='L205' name='L205'></a> 205 <a href='../Y/27.html' title='Multiple used in 55 places.'>bool</a> <a href='../S/3457.html#L124' title='Defined at 124 in src/struct.c.'>create_cmdtable</a>(<a href='../S/3004.html#L67' title='Defined at 67 in include/struct.h.'>CMDTAB_HASH</a> <a href='../S/3438.html#L3' title='Defined at 3 in src/hash.c.'>hash</a>);
<a id='L206' name='L206'></a> 206
<a id='L207' name='L207'></a> 207 <em class='comment'>/**</em>
<a id='L208' name='L208'></a> 208 <em class='comment'> * 命令ハッシュ表を解放する</em>
<a id='L209' name='L209'></a> 209 <em class='comment'> */</em>
<a id='L210' name='L210'></a> 210 <strong class='reserved'>void</strong> <a href='../S/3457.html#L146' title='Defined at 146 in src/struct.c.'>free_cmdtable</a>(<a href='../S/3004.html#L67' title='Defined at 67 in include/struct.h.'>CMDTAB_HASH</a> <a href='../S/3438.html#L3' title='Defined at 3 in src/hash.c.'>hash</a>);
<a id='L211' name='L211'></a> 211
<a id='L212' name='L212'></a> 212 <em class='comment'>/**</em>
<a id='L213' name='L213'></a> 213 <em class='comment'> * 命令の名前とタイプから、命令コードを返す</em>
<a id='L214' name='L214'></a> 214 <em class='comment'> * 無効な場合は0xFFFFを返す</em>
<a id='L215' name='L215'></a> 215 <em class='comment'> */</em>
<a id='L216' name='L216'></a> 216 <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../S/3457.html#L164' title='Defined at 164 in src/struct.c.'>getcmdcode</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, <a href='../S/3004.html#L102' title='Defined at 102 in include/struct.h.'>CMDTYPE</a> <a href='../Y/238.html' title='Multiple used in 26 places.'>type</a>);
<a id='L217' name='L217'></a> 217
<a id='L218' name='L218'></a> 218 <em class='comment'>/**</em>
<a id='L219' name='L219'></a> 219 <em class='comment'> * 命令コードから命令の関数ポインタを返す</em>
<a id='L220' name='L220'></a> 220 <em class='comment'> */</em>
<a id='L221' name='L221'></a> 221 <strong class='reserved'>const</strong> <strong class='reserved'>void</strong> (*<a href='../S/3457.html#L199' title='Defined at 199 in src/struct.c.'>getcmdptr</a>(<a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/71.html' title='Multiple used in 25 places.'>code</a>));
<a id='L222' name='L222'></a> 222
<a id='L223' name='L223'></a> 223 <em class='comment'>/**</em>
<a id='L224' name='L224'></a> 224 <em class='comment'> * 命令コードから命令のタイプを返す</em>
<a id='L225' name='L225'></a> 225 <em class='comment'> */</em>
<a id='L226' name='L226'></a> 226 <a href='../S/3004.html#L102' title='Defined at 102 in include/struct.h.'>CMDTYPE</a> <a href='../S/3457.html#L216' title='Defined at 216 in src/struct.c.'>getcmdtype</a>(<a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/71.html' title='Multiple used in 25 places.'>code</a>);
<a id='L227' name='L227'></a> 227
<a id='L228' name='L228'></a> 228 <em class='comment'>/**</em>
<a id='L229' name='L229'></a> 229 <em class='comment'> * 命令コードから命令の名前を返す</em>
<a id='L230' name='L230'></a> 230 <em class='comment'> */</em>
<a id='L231' name='L231'></a> 231 <strong class='reserved'>char</strong> *<a href='../S/3457.html#L233' title='Defined at 233 in src/struct.c.'>getcmdname</a>(<a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/71.html' title='Multiple used in 25 places.'>code</a>);
<a id='L232' name='L232'></a> 232
<a id='L233' name='L233'></a> 233 <em class='sharp'>#endif</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [<][>][^][v]<a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
</body>
</html>