root/doc_inner/gnu_global/S/2810.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>src/disassemble.c</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/2932.html'>src</a>/disassemble.c</h2>
<em class='comment'>/* [&lt;][&gt;]<a href='#L82'>[^]</a><a href='#L238'>[v]</a>[top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
<hr />
<h2 class='header'>DEFINITIONS</h2>
This source file includes following definitions.
<ol>
<li><a href='#L82' title='Defined at 82.'>disassemble_puts_code</a></li>
<li><a href='#L93' title='Defined at 93.'>disassemble_cmd_adr_x</a></li>
<li><a href='#L112' title='Defined at 112.'>disassemble_cmd_r</a></li>
<li><a href='#L134' title='Defined at 134.'>disassemble_dc</a></li>
<li><a href='#L144' title='Defined at 144.'>disassemble_ds</a></li>
<li><a href='#L156' title='Defined at 156.'>fgetword</a></li>
<li><a href='#L163' title='Defined at 163.'>fungetword</a></li>
<li><a href='#L168' title='Defined at 168.'>zero_data_cnt</a></li>
<li><a href='#L183' title='Defined at 183.'>disassemble_file</a></li>
<li><a href='#L238' title='Defined at 238.'>disassemble_memory</a></li>
</ol>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='sharp'>#include</em> "<a href='2421.html'>disassemble.h</a>"
<a id='L2' name='L2'></a>   2 
<a id='L3' name='L3'></a>   3 <em class='comment'>/**</em>
<a id='L4' name='L4'></a>   4 <em class='comment'> * @brief 機械コードの出力列</em>
<a id='L5' name='L5'></a>   5 <em class='comment'> */</em>
<a id='L6' name='L6'></a>   6 <strong class='reserved'>int</strong> <a href='../Y/71.html' title='Multiple used in 2 places.'>codecol</a> = 32;
<a id='L7' name='L7'></a>   7 
<a id='L8' name='L8'></a>   8 <em class='comment'>/**</em>
<a id='L9' name='L9'></a>   9 <em class='comment'> * @brief ファイルストリームから1ワードを取得する</em>
<a id='L10' name='L10'></a>  10 <em class='comment'> *</em>
<a id='L11' name='L11'></a>  11 <em class='comment'> * @return 取得した1ワード</em>
<a id='L12' name='L12'></a>  12 <em class='comment'> *</em>
<a id='L13' name='L13'></a>  13 <em class='comment'> * @param stream ファイルストリーム</em>
<a id='L14' name='L14'></a>  14 <em class='comment'> */</em>
<a id='L15' name='L15'></a>  15 <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../S/2810.html#L156' title='Defined at 156 in src/disassemble.c.'>fgetword</a>(<a href='../Y/2.html' title='Multiple used in 16 places.'>FILE</a> *<a href='../Y/211.html' title='Multiple used in 15 places.'>stream</a>);
<a id='L16' name='L16'></a>  16 
<a id='L17' name='L17'></a>  17 <em class='comment'>/**</em>
<a id='L18' name='L18'></a>  18 <em class='comment'> * @brief ファイルストリームを1ワード戻す</em>
<a id='L19' name='L19'></a>  19 <em class='comment'> *</em>
<a id='L20' name='L20'></a>  20 <em class='comment'> * @return なし</em>
<a id='L21' name='L21'></a>  21 <em class='comment'> *</em>
<a id='L22' name='L22'></a>  22 <em class='comment'> * @param stream ファイルストリーム</em>
<a id='L23' name='L23'></a>  23 <em class='comment'> */</em>
<a id='L24' name='L24'></a>  24 <strong class='reserved'>void</strong> <a href='../S/2810.html#L163' title='Defined at 163 in src/disassemble.c.'>fungetword</a>(<a href='../Y/2.html' title='Multiple used in 16 places.'>FILE</a> *<a href='../Y/211.html' title='Multiple used in 15 places.'>stream</a>);
<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 ファイルストリームから、値が0の連続するWORD数を返す</em>
<a id='L28' name='L28'></a>  28 <em class='comment'> *</em>
<a id='L29' name='L29'></a>  29 <em class='comment'> * @return 値が0の連続するWORD数</em>
<a id='L30' name='L30'></a>  30 <em class='comment'> *</em>
<a id='L31' name='L31'></a>  31 <em class='comment'> * @param stream ファイルストリーム</em>
<a id='L32' name='L32'></a>  32 <em class='comment'> */</em>
<a id='L33' name='L33'></a>  33 <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../S/2810.html#L168' title='Defined at 168 in src/disassemble.c.'>zero_data_cnt</a>(<a href='../Y/2.html' title='Multiple used in 16 places.'>FILE</a> *<a href='../Y/211.html' title='Multiple used in 15 places.'>stream</a>);
<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 機械コードをコメントとして標準出力へ出力する</em>
<a id='L37' name='L37'></a>  37 <em class='comment'> *</em>
<a id='L38' name='L38'></a>  38 <em class='comment'> * @return なし</em>
<a id='L39' name='L39'></a>  39 <em class='comment'> *</em>
<a id='L40' name='L40'></a>  40 <em class='comment'> * @param ascol アセンブラの列位置</em>
<a id='L41' name='L41'></a>  41 <em class='comment'> * @param pradr 次に実行すべき命令語の先頭アドレス</em>
<a id='L42' name='L42'></a>  42 <em class='comment'> * @param wordc ワード値の数</em>
<a id='L43' name='L43'></a>  43 <em class='comment'> * @param wordv ワード値の配列</em>
<a id='L44' name='L44'></a>  44 <em class='comment'> */</em>
<a id='L45' name='L45'></a>  45 <strong class='reserved'>void</strong> <a href='../S/2810.html#L82' title='Defined at 82 in src/disassemble.c.'>disassemble_puts_code</a>(<strong class='reserved'>int</strong> <a href='../Y/13.html' title='Multiple used in 3 places.'>ascol</a>, <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>, <strong class='reserved'>int</strong> <a href='../Y/238.html' title='Multiple used in 4 places.'>wordc</a>, <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/239.html' title='Multiple used in 4 places.'>wordv</a>[]);
<a id='L46' name='L46'></a>  46 
<a id='L47' name='L47'></a>  47 <em class='comment'>/**</em>
<a id='L48' name='L48'></a>  48 <em class='comment'> * @brief 種類がR_ADRまたはR_ADR_Xのコマンドを逆アセンブルし、標準出力へ出力する</em>
<a id='L49' name='L49'></a>  49 <em class='comment'> *</em>
<a id='L50' name='L50'></a>  50 <em class='comment'> * @return なし</em>
<a id='L51' name='L51'></a>  51 <em class='comment'> *</em>
<a id='L52' name='L52'></a>  52 <em class='comment'> * @param cmdtype コマンドの種類</em>
<a id='L53' name='L53'></a>  53 <em class='comment'> * @param *cmdname コマンドの名前</em>
<a id='L54' name='L54'></a>  54 <em class='comment'> * @param word ワード値</em>
<a id='L55' name='L55'></a>  55 <em class='comment'> * @param adr アドレス値</em>
<a id='L56' name='L56'></a>  56 <em class='comment'> * @param pradr 次に実行すべき命令語の先頭アドレス</em>
<a id='L57' name='L57'></a>  57 <em class='comment'> */</em>
<a id='L58' name='L58'></a>  58 <strong class='reserved'>void</strong> <a href='../S/2810.html#L93' title='Defined at 93 in src/disassemble.c.'>disassemble_cmd_adr_x</a>(<a href='../S/2417.html#L99' title='Defined at 99 in include/struct.h.'>CMDTYPE</a> <a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</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 href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/7.html' title='Multiple used in 68 places.'>adr</a>, <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</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'> * @brief 種類がR1_R2またはR_のコマンドを逆アセンブルし、標準出力へ出力する</em>
<a id='L62' name='L62'></a>  62 <em class='comment'> *</em>
<a id='L63' name='L63'></a>  63 <em class='comment'> * @return なし</em>
<a id='L64' name='L64'></a>  64 <em class='comment'> *</em>
<a id='L65' name='L65'></a>  65 <em class='comment'> * @param cmdtype コマンドの種類</em>
<a id='L66' name='L66'></a>  66 <em class='comment'> * @param *cmdname コマンドの名前</em>
<a id='L67' name='L67'></a>  67 <em class='comment'> * @param word ワード値</em>
<a id='L68' name='L68'></a>  68 <em class='comment'> * @param pradr 次に実行すべき命令語の先頭アドレス</em>
<a id='L69' name='L69'></a>  69 <em class='comment'> */</em>
<a id='L70' name='L70'></a>  70 <strong class='reserved'>void</strong> <a href='../S/2810.html#L112' title='Defined at 112 in src/disassemble.c.'>disassemble_cmd_r</a>(<a href='../S/2417.html#L99' title='Defined at 99 in include/struct.h.'>CMDTYPE</a> <a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</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 href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>);
<a id='L71' name='L71'></a>  71 
<a id='L72' name='L72'></a>  72 <em class='comment'>/**</em>
<a id='L73' name='L73'></a>  73 <em class='comment'> * @brief DCコマンドを逆アセンブルし、標準出力へ出力する</em>
<a id='L74' name='L74'></a>  74 <em class='comment'> *</em>
<a id='L75' name='L75'></a>  75 <em class='comment'> * @return なし</em>
<a id='L76' name='L76'></a>  76 <em class='comment'> *</em>
<a id='L77' name='L77'></a>  77 <em class='comment'> * @param word ワード値</em>
<a id='L78' name='L78'></a>  78 <em class='comment'> * @param pradr 次に実行すべき命令語の先頭アドレス</em>
<a id='L79' name='L79'></a>  79 <em class='comment'> */</em>
<a id='L80' name='L80'></a>  80 <strong class='reserved'>void</strong> <a href='../S/2810.html#L134' title='Defined at 134 in src/disassemble.c.'>disassemble_dc</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 href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>);
<a id='L81' name='L81'></a>  81 
<a id='L82' name='L82'></a>  82 <strong class='reserved'>void</strong> <a href='../R/133.html' title='Multiple referred from 6 places.'>disassemble_puts_code</a>(<strong class='reserved'>int</strong> <a href='../Y/13.html' title='Multiple used in 3 places.'>ascol</a>, <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>, <strong class='reserved'>int</strong> <a href='../Y/238.html' title='Multiple used in 4 places.'>wordc</a>, <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/239.html' title='Multiple used in 4 places.'>wordv</a>[])
<a id='L83' name='L83'></a>  83 <em class='brace'>{</em>
<a id='L84' name='L84'></a>  84     <strong class='reserved'>for</strong>(<strong class='reserved'>int</strong> <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> = 0; <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> &lt; <a href='../Y/71.html' title='Multiple used in 2 places.'>codecol</a>-<a href='../Y/13.html' title='Multiple used in 3 places.'>ascol</a>; <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>++)<em class='brace'>{</em>
<a id='L85' name='L85'></a>  85         <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, " ");
<a id='L86' name='L86'></a>  86     <em class='brace'>}</em>
<a id='L87' name='L87'></a>  87     <strong class='reserved'>if</strong>(<a href='../Y/238.html' title='Multiple used in 4 places.'>wordc</a> == 1) <em class='brace'>{</em>
<a id='L88' name='L88'></a>  88         <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "; #%04X: #%04X", <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>, <a href='../Y/239.html' title='Multiple used in 4 places.'>wordv</a>[0]);
<a id='L89' name='L89'></a>  89     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/238.html' title='Multiple used in 4 places.'>wordc</a> == 2) <em class='brace'>{</em>
<a id='L90' name='L90'></a>  90         <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "; #%04X: #%04X #%04X", <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>, <a href='../Y/239.html' title='Multiple used in 4 places.'>wordv</a>[0], <a href='../Y/239.html' title='Multiple used in 4 places.'>wordv</a>[1]);
<a id='L91' name='L91'></a>  91     <em class='brace'>}</em>
<a id='L92' name='L92'></a>  92 <em class='brace'>}</em>
<a id='L93' name='L93'></a>  93 <strong class='reserved'>void</strong> <a href='../R/127.html' title='Multiple referred from 3 places.'>disassemble_cmd_adr_x</a>(<a href='../S/2417.html#L99' title='Defined at 99 in include/struct.h.'>CMDTYPE</a> <a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</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 href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/7.html' title='Multiple used in 68 places.'>adr</a>, <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>)
<a id='L94' name='L94'></a>  94 <em class='brace'>{</em>
<a id='L95' name='L95'></a>  95     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/240.html' title='Multiple used in 9 places.'>x</a> = 0;
<a id='L96' name='L96'></a>  96     <strong class='reserved'>char</strong> *<a href='../Y/108.html' title='Multiple used in 9 places.'>g</a> = <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>;
<a id='L97' name='L97'></a>  97     <strong class='reserved'>int</strong> <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> = 0;
<a id='L98' name='L98'></a>  98 
<a id='L99' name='L99'></a>  99     <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> += <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "        %-7s ", <a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</a>);
<a id='L100' name='L100'></a> 100     <strong class='reserved'>if</strong>(<a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a> == <a href='../S/2417.html#L77' title='Defined at 77 in include/struct.h.'>R_ADR_X</a>) <em class='brace'>{</em>
<a id='L101' name='L101'></a> 101         <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> += <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "%s,", <a href='../Y/108.html' title='Multiple used in 9 places.'>g</a> = <a href='../S/2856.html#L240' title='Defined at 240 in src/struct.c.'>grstr</a>((<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> &amp; 0x00F0) &gt;&gt; 4));
<a id='L102' name='L102'></a> 102         <a href='../S/2424.html#L21' title='Defined at 21 in include/cmem.h.'>FREE</a>(<a href='../Y/108.html' title='Multiple used in 9 places.'>g</a>);
<a id='L103' name='L103'></a> 103     <em class='brace'>}</em>
<a id='L104' name='L104'></a> 104     <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> += <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "#%04X", <a href='../Y/7.html' title='Multiple used in 68 places.'>adr</a>);
<a id='L105' name='L105'></a> 105     <strong class='reserved'>if</strong>((<a href='../Y/240.html' title='Multiple used in 9 places.'>x</a> = (<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> &amp; 0x000F)) != 0) <em class='brace'>{</em>
<a id='L106' name='L106'></a> 106         <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> += <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, ",%s", <a href='../Y/108.html' title='Multiple used in 9 places.'>g</a> = <a href='../S/2856.html#L240' title='Defined at 240 in src/struct.c.'>grstr</a>(<a href='../Y/240.html' title='Multiple used in 9 places.'>x</a>));
<a id='L107' name='L107'></a> 107         <a href='../S/2424.html#L21' title='Defined at 21 in include/cmem.h.'>FREE</a>(<a href='../Y/108.html' title='Multiple used in 9 places.'>g</a>);
<a id='L108' name='L108'></a> 108     <em class='brace'>}</em>
<a id='L109' name='L109'></a> 109     <a href='../S/2810.html#L82' title='Defined at 82 in src/disassemble.c.'>disassemble_puts_code</a>(<a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a>, <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>, 2, (<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> [])<em class='brace'>{</em><a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>, <a href='../Y/7.html' title='Multiple used in 68 places.'>adr</a><em class='brace'>}</em>);
<a id='L110' name='L110'></a> 110 <em class='brace'>}</em>
<a id='L111' name='L111'></a> 111 
<a id='L112' name='L112'></a> 112 <strong class='reserved'>void</strong> <a href='../R/128.html' title='Multiple referred from 5 places.'>disassemble_cmd_r</a>(<a href='../S/2417.html#L99' title='Defined at 99 in include/struct.h.'>CMDTYPE</a> <a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</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 href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>)
<a id='L113' name='L113'></a> 113 <em class='brace'>{</em>
<a id='L114' name='L114'></a> 114     <strong class='reserved'>char</strong> *<a href='../Y/108.html' title='Multiple used in 9 places.'>g</a> = <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>;
<a id='L115' name='L115'></a> 115     <strong class='reserved'>char</strong> *<a href='../Y/109.html' title='Multiple used in 4 places.'>g1</a> = <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>;
<a id='L116' name='L116'></a> 116     <strong class='reserved'>char</strong> *<a href='../Y/110.html' title='Multiple used in 4 places.'>g2</a> = <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>;
<a id='L117' name='L117'></a> 117     <strong class='reserved'>int</strong> <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> = 0;
<a id='L118' name='L118'></a> 118 
<a id='L119' name='L119'></a> 119     <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> += <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "        %-7s ", <a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</a>);
<a id='L120' name='L120'></a> 120     <strong class='reserved'>if</strong>(<a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a> == <a href='../S/2417.html#L83' title='Defined at 83 in include/struct.h.'>R1_R2</a>) <em class='brace'>{</em>
<a id='L121' name='L121'></a> 121         <a href='../Y/109.html' title='Multiple used in 4 places.'>g1</a> = <a href='../S/2856.html#L240' title='Defined at 240 in src/struct.c.'>grstr</a>((<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> &amp; 0x00F0) &gt;&gt; 4);
<a id='L122' name='L122'></a> 122         <a href='../Y/110.html' title='Multiple used in 4 places.'>g2</a> = <a href='../S/2856.html#L240' title='Defined at 240 in src/struct.c.'>grstr</a>(<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> &amp; 0x000F);
<a id='L123' name='L123'></a> 123         <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> += <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "%s,%s", <a href='../Y/109.html' title='Multiple used in 4 places.'>g1</a>, <a href='../Y/110.html' title='Multiple used in 4 places.'>g2</a>);
<a id='L124' name='L124'></a> 124         <a href='../S/2424.html#L21' title='Defined at 21 in include/cmem.h.'>FREE</a>(<a href='../Y/109.html' title='Multiple used in 4 places.'>g1</a>);
<a id='L125' name='L125'></a> 125         <a href='../S/2424.html#L21' title='Defined at 21 in include/cmem.h.'>FREE</a>(<a href='../Y/110.html' title='Multiple used in 4 places.'>g2</a>);
<a id='L126' name='L126'></a> 126     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a> == <a href='../S/2417.html#L94' title='Defined at 94 in include/struct.h.'>R_</a>) <em class='brace'>{</em>
<a id='L127' name='L127'></a> 127         <a href='../Y/108.html' title='Multiple used in 9 places.'>g</a> = <a href='../S/2856.html#L240' title='Defined at 240 in src/struct.c.'>grstr</a>((<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> &amp; 0x00F0) &gt;&gt; 4);
<a id='L128' name='L128'></a> 128         <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> += <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "%s", <a href='../Y/108.html' title='Multiple used in 9 places.'>g</a>);
<a id='L129' name='L129'></a> 129         <a href='../S/2424.html#L21' title='Defined at 21 in include/cmem.h.'>FREE</a>(<a href='../Y/108.html' title='Multiple used in 9 places.'>g</a>);
<a id='L130' name='L130'></a> 130     <em class='brace'>}</em>
<a id='L131' name='L131'></a> 131     <a href='../S/2810.html#L82' title='Defined at 82 in src/disassemble.c.'>disassemble_puts_code</a>(<a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a>, <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>, 1, (<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> [])<em class='brace'>{</em><a href='../Y/237.html' title='Multiple used in 54 places.'>word</a><em class='brace'>}</em>);
<a id='L132' name='L132'></a> 132 <em class='brace'>}</em>
<a id='L133' name='L133'></a> 133 
<a id='L134' name='L134'></a> 134 <strong class='reserved'>void</strong> <a href='../R/129.html' title='Multiple referred from 5 places.'>disassemble_dc</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 href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>)
<a id='L135' name='L135'></a> 135 <em class='brace'>{</em>
<a id='L136' name='L136'></a> 136     <strong class='reserved'>int</strong> <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> = 0;
<a id='L137' name='L137'></a> 137 
<a id='L138' name='L138'></a> 138     <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> = <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "        DC      %-5d ", <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>);
<a id='L139' name='L139'></a> 139     <a href='../S/2810.html#L82' title='Defined at 82 in src/disassemble.c.'>disassemble_puts_code</a>(<a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a>, <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>, 1, (<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> [])<em class='brace'>{</em><a href='../Y/237.html' title='Multiple used in 54 places.'>word</a><em class='brace'>}</em>);
<a id='L140' name='L140'></a> 140     <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, " ::" );
<a id='L141' name='L141'></a> 141     <a href='../S/2828.html#L137' title='Defined at 137 in src/word.c.'>print_dumpword</a>(<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>, <a href='../Y/228.html' title='Multiple used in 79 places.'>true</a>);
<a id='L142' name='L142'></a> 142 <em class='brace'>}</em>
<a id='L143' name='L143'></a> 143 
<a id='L144' name='L144'></a> 144 <strong class='reserved'>void</strong> <a href='../S/2810.html#L216' title='Referred from 216 in src/disassemble.c.'>disassemble_ds</a>(<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/236.html' title='Multiple used in 3 places.'>wcnt</a>, <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>)
<a id='L145' name='L145'></a> 145 <em class='brace'>{</em>
<a id='L146' name='L146'></a> 146     <strong class='reserved'>int</strong> <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> = 0;
<a id='L147' name='L147'></a> 147 
<a id='L148' name='L148'></a> 148     <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> = <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "        DS      %-5d ", <a href='../Y/236.html' title='Multiple used in 3 places.'>wcnt</a>);
<a id='L149' name='L149'></a> 149     <a href='../S/2810.html#L82' title='Defined at 82 in src/disassemble.c.'>disassemble_puts_code</a>(<a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a>, <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>, 1, (<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> [])<em class='brace'>{</em>0<em class='brace'>}</em>);
<a id='L150' name='L150'></a> 150     <strong class='reserved'>for</strong>(<strong class='reserved'>int</strong> <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> = 0; <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> &lt; <a href='../Y/236.html' title='Multiple used in 3 places.'>wcnt</a> - 1; <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>++) <em class='brace'>{</em>
<a id='L151' name='L151'></a> 151         <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "\n");
<a id='L152' name='L152'></a> 152         <a href='../S/2810.html#L82' title='Defined at 82 in src/disassemble.c.'>disassemble_puts_code</a>(0, <a href='../Y/175.html' title='Multiple used in 16 places.'>pradr</a>+1, 1, (<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> [])<em class='brace'>{</em>0<em class='brace'>}</em>);
<a id='L153' name='L153'></a> 153     <em class='brace'>}</em>
<a id='L154' name='L154'></a> 154 <em class='brace'>}</em>
<a id='L155' name='L155'></a> 155 
<a id='L156' name='L156'></a> 156 <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../R/137.html' title='Multiple referred from 4 places.'>fgetword</a>(<a href='../Y/2.html' title='Multiple used in 16 places.'>FILE</a> *<a href='../Y/211.html' title='Multiple used in 15 places.'>stream</a>)
<a id='L157' name='L157'></a> 157 <em class='brace'>{</em>
<a id='L158' name='L158'></a> 158     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/22.html' title='Multiple used in 3 places.'>aword</a>;
<a id='L159' name='L159'></a> 159     <a href='../Y/104.html' title='Multiple used in 2 places.'>fread</a>(&amp;<a href='../Y/22.html' title='Multiple used in 3 places.'>aword</a>, <strong class='reserved'>sizeof</strong>(<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a>), 1, <a href='../Y/211.html' title='Multiple used in 15 places.'>stream</a>);
<a id='L160' name='L160'></a> 160     <strong class='reserved'>return</strong> <a href='../Y/22.html' title='Multiple used in 3 places.'>aword</a>;
<a id='L161' name='L161'></a> 161 <em class='brace'>}</em>
<a id='L162' name='L162'></a> 162 
<a id='L163' name='L163'></a> 163 <strong class='reserved'>void</strong> <a href='../R/144.html' title='Multiple referred from 2 places.'>fungetword</a>(<a href='../Y/2.html' title='Multiple used in 16 places.'>FILE</a> *<a href='../Y/211.html' title='Multiple used in 15 places.'>stream</a>)
<a id='L164' name='L164'></a> 164 <em class='brace'>{</em>
<a id='L165' name='L165'></a> 165     fseek(<a href='../Y/211.html' title='Multiple used in 15 places.'>stream</a>, -<strong class='reserved'>sizeof</strong>(<a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a>), SEEK_CUR);
<a id='L166' name='L166'></a> 166 <em class='brace'>}</em>
<a id='L167' name='L167'></a> 167 
<a id='L168' name='L168'></a> 168 <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../R/235.html' title='Multiple referred from 2 places.'>zero_data_cnt</a>(<a href='../Y/2.html' title='Multiple used in 16 places.'>FILE</a> *<a href='../Y/211.html' title='Multiple used in 15 places.'>stream</a>)
<a id='L169' name='L169'></a> 169 <em class='brace'>{</em>
<a id='L170' name='L170'></a> 170     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a> = 0;
<a id='L171' name='L171'></a> 171     <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> = 0;
<a id='L172' name='L172'></a> 172 
<a id='L173' name='L173'></a> 173     <strong class='reserved'>while</strong>(!<a href='../Y/94.html' title='Multiple used in 3 places.'>feof</a>(<a href='../Y/211.html' title='Multiple used in 15 places.'>stream</a>) &amp;&amp; <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> == 0) <em class='brace'>{</em>
<a id='L174' name='L174'></a> 174         <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> = <a href='../S/2810.html#L156' title='Defined at 156 in src/disassemble.c.'>fgetword</a>(<a href='../Y/211.html' title='Multiple used in 15 places.'>stream</a>);
<a id='L175' name='L175'></a> 175         <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a>++;
<a id='L176' name='L176'></a> 176     <em class='brace'>}</em>
<a id='L177' name='L177'></a> 177     <strong class='reserved'>if</strong>(!<a href='../Y/94.html' title='Multiple used in 3 places.'>feof</a>(<a href='../Y/211.html' title='Multiple used in 15 places.'>stream</a>)) <em class='brace'>{</em>
<a id='L178' name='L178'></a> 178         <a href='../S/2810.html#L163' title='Defined at 163 in src/disassemble.c.'>fungetword</a>(<a href='../Y/211.html' title='Multiple used in 15 places.'>stream</a>);
<a id='L179' name='L179'></a> 179     <em class='brace'>}</em>
<a id='L180' name='L180'></a> 180     <strong class='reserved'>return</strong> <a href='../Y/68.html' title='Multiple used in 30 places.'>cnt</a>;
<a id='L181' name='L181'></a> 181 <em class='brace'>}</em>
<a id='L182' name='L182'></a> 182 
<a id='L183' name='L183'></a> 183 <a href='../Y/25.html' title='Multiple used in 55 places.'>bool</a> <a href='../R/131.html' title='Multiple referred from 2 places.'>disassemble_file</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/96.html' title='Multiple used in 21 places.'>file</a>)
<a id='L184' name='L184'></a> 184 <em class='brace'>{</em>
<a id='L185' name='L185'></a> 185     <a href='../Y/25.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/197.html' title='Multiple used in 34 places.'>stat</a> = <a href='../Y/228.html' title='Multiple used in 79 places.'>true</a>;
<a id='L186' name='L186'></a> 186     <a href='../Y/2.html' title='Multiple used in 16 places.'>FILE</a> *<a href='../Y/101.html' title='Multiple used in 34 places.'>fp</a> = <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>;
<a id='L187' name='L187'></a> 187     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> = 0;
<a id='L188' name='L188'></a> 188     <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> = 0;
<a id='L189' name='L189'></a> 189     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a> = 0;
<a id='L190' name='L190'></a> 190     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/242.html' title='Multiple used in 5 places.'>zcnt</a> = 0;
<a id='L191' name='L191'></a> 191     <a href='../S/2417.html#L99' title='Defined at 99 in include/struct.h.'>CMDTYPE</a> <a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a> = 0;
<a id='L192' name='L192'></a> 192     <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</a> = <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>;
<a id='L193' name='L193'></a> 193     <a href='../Y/25.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/118.html' title='Multiple used in 6 places.'>inst</a> = <a href='../Y/228.html' title='Multiple used in 79 places.'>true</a>;
<a id='L194' name='L194'></a> 194 
<a id='L195' name='L195'></a> 195     <a href='../Y/20.html' title='Multiple used in 22 places.'>assert</a>(<a href='../Y/96.html' title='Multiple used in 21 places.'>file</a> != <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>);
<a id='L196' name='L196'></a> 196     <strong class='reserved'>if</strong>((<a href='../Y/101.html' title='Multiple used in 34 places.'>fp</a> = <a href='../Y/100.html' title='Multiple used in 8 places.'>fopen</a>(<a href='../Y/96.html' title='Multiple used in 21 places.'>file</a>, "rb")) == <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L197' name='L197'></a> 197         <a href='../Y/173.html' title='Multiple used in 8 places.'>perror</a>(<a href='../Y/96.html' title='Multiple used in 21 places.'>file</a>);
<a id='L198' name='L198'></a> 198         <strong class='reserved'>return</strong> <a href='../Y/92.html' title='Multiple used in 52 places.'>false</a>;
<a id='L199' name='L199'></a> 199     <em class='brace'>}</em>
<a id='L200' name='L200'></a> 200 
<a id='L201' name='L201'></a> 201     <a href='../S/2856.html#L113' title='Defined at 113 in src/struct.c.'>create_cmdtable</a>(<a href='../S/2417.html#L62' title='Defined at 62 in include/struct.h.'>HASH_CODE</a>);                   <em class='comment'>/* 命令のコードとタイプがキーのハッシュ表を作成 */</em>
<a id='L202' name='L202'></a> 202 
<a id='L203' name='L203'></a> 203     <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "MAIN    START\n");
<a id='L204' name='L204'></a> 204     <strong class='reserved'>for</strong>(<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> = <a href='../S/2810.html#L156' title='Defined at 156 in src/disassemble.c.'>fgetword</a>(<a href='../Y/101.html' title='Multiple used in 34 places.'>fp</a>); !<a href='../Y/94.html' title='Multiple used in 3 places.'>feof</a>(<a href='../Y/101.html' title='Multiple used in 34 places.'>fp</a>); <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>++, <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> = <a href='../S/2810.html#L156' title='Defined at 156 in src/disassemble.c.'>fgetword</a>(<a href='../Y/101.html' title='Multiple used in 34 places.'>fp</a>)) <em class='brace'>{</em>
<a id='L205' name='L205'></a> 205         <a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a> = <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> &amp; 0xFF00;
<a id='L206' name='L206'></a> 206         <a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</a> = <a href='../S/2856.html#L222' title='Defined at 222 in src/struct.c.'>getcmdname</a>(<a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a>);
<a id='L207' name='L207'></a> 207         <a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a> = <a href='../S/2856.html#L205' title='Defined at 205 in src/struct.c.'>getcmdtype</a>(<a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a>);
<a id='L208' name='L208'></a> 208         <strong class='reserved'>if</strong>(<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a> == 0)<em class='brace'>{</em>
<a id='L209' name='L209'></a> 209             <strong class='reserved'>if</strong>(<a href='../Y/118.html' title='Multiple used in 6 places.'>inst</a> == <a href='../Y/228.html' title='Multiple used in 79 places.'>true</a>) <em class='brace'>{</em>  <em class='comment'>/* プログラム領域の場合  */</em>
<a id='L210' name='L210'></a> 210                 <a href='../S/2810.html#L112' title='Defined at 112 in src/disassemble.c.'>disassemble_cmd_r</a>(<a href='../S/2417.html#L98' title='Defined at 98 in include/struct.h.'>NONE</a>, "nop", 0, <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L211' name='L211'></a> 211             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>            <em class='comment'>/* データ領域の場合 */</em>
<a id='L212' name='L212'></a> 212                 <a href='../Y/242.html' title='Multiple used in 5 places.'>zcnt</a> = <a href='../S/2810.html#L168' title='Defined at 168 in src/disassemble.c.'>zero_data_cnt</a>(<a href='../Y/101.html' title='Multiple used in 34 places.'>fp</a>);
<a id='L213' name='L213'></a> 213                 <strong class='reserved'>if</strong>(<a href='../Y/242.html' title='Multiple used in 5 places.'>zcnt</a> == 1) <em class='brace'>{</em> <em class='comment'>/* 1つだけの0はDCとみなす */</em>
<a id='L214' name='L214'></a> 214                     <a href='../S/2810.html#L134' title='Defined at 134 in src/disassemble.c.'>disassemble_dc</a>(0, <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L215' name='L215'></a> 215                 <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>        <em class='comment'>/* 連続する0はDSとみなす */</em>
<a id='L216' name='L216'></a> 216                     <a href='../S/2810.html#L144' title='Defined at 144 in src/disassemble.c.'>disassemble_ds</a>(<a href='../Y/242.html' title='Multiple used in 5 places.'>zcnt</a>, <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L217' name='L217'></a> 217                     <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> += <a href='../Y/242.html' title='Multiple used in 5 places.'>zcnt</a> - 1;
<a id='L218' name='L218'></a> 218                 <em class='brace'>}</em>
<a id='L219' name='L219'></a> 219             <em class='brace'>}</em>
<a id='L220' name='L220'></a> 220         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a> == 0) <em class='brace'>{</em>
<a id='L221' name='L221'></a> 221             <a href='../S/2810.html#L134' title='Defined at 134 in src/disassemble.c.'>disassemble_dc</a>(<a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>, <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L222' name='L222'></a> 222         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L223' name='L223'></a> 223             <strong class='reserved'>if</strong>(<a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a> == <a href='../S/2417.html#L77' title='Defined at 77 in include/struct.h.'>R_ADR_X</a> || <a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a> == <a href='../S/2417.html#L89' title='Defined at 89 in include/struct.h.'>ADR_X</a>) <em class='brace'>{</em>
<a id='L224' name='L224'></a> 224                 <a href='../S/2810.html#L93' title='Defined at 93 in src/disassemble.c.'>disassemble_cmd_adr_x</a>(<a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a>, <a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</a>, <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>, <a href='../S/2810.html#L156' title='Defined at 156 in src/disassemble.c.'>fgetword</a>(<a href='../Y/101.html' title='Multiple used in 34 places.'>fp</a>), <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>++);
<a id='L225' name='L225'></a> 225             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L226' name='L226'></a> 226                 <a href='../S/2810.html#L112' title='Defined at 112 in src/disassemble.c.'>disassemble_cmd_r</a>(<a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a>, <a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</a>, <a href='../Y/237.html' title='Multiple used in 54 places.'>word</a>, <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L227' name='L227'></a> 227             <em class='brace'>}</em>
<a id='L228' name='L228'></a> 228             <a href='../Y/118.html' title='Multiple used in 6 places.'>inst</a> = (<a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a> != 0x8100) ? <a href='../Y/228.html' title='Multiple used in 79 places.'>true</a> : <a href='../Y/92.html' title='Multiple used in 52 places.'>false</a>;
<a id='L229' name='L229'></a> 229         <em class='brace'>}</em>
<a id='L230' name='L230'></a> 230         <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "\n");
<a id='L231' name='L231'></a> 231     <em class='brace'>}</em>
<a id='L232' name='L232'></a> 232     <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "        END\n");
<a id='L233' name='L233'></a> 233     <a href='../S/2856.html#L135' title='Defined at 135 in src/struct.c.'>free_cmdtable</a>(<a href='../S/2417.html#L62' title='Defined at 62 in include/struct.h.'>HASH_CODE</a>);
<a id='L234' name='L234'></a> 234     <a href='../Y/93.html' title='Multiple used in 8 places.'>fclose</a>(<a href='../Y/101.html' title='Multiple used in 34 places.'>fp</a>);
<a id='L235' name='L235'></a> 235     <strong class='reserved'>return</strong> <a href='../Y/197.html' title='Multiple used in 34 places.'>stat</a>;
<a id='L236' name='L236'></a> 236 <em class='brace'>}</em>
<a id='L237' name='L237'></a> 237 
<a id='L238' name='L238'></a> 238 <strong class='reserved'>void</strong> <a href='../R/132.html' title='Multiple referred from 2 places.'>disassemble_memory</a>(<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>, <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>)
<a id='L239' name='L239'></a> 239 <em class='brace'>{</em>
<a id='L240' name='L240'></a> 240     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a> = 0;
<a id='L241' name='L241'></a> 241     <a href='../S/2417.html#L99' title='Defined at 99 in include/struct.h.'>CMDTYPE</a> <a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a> = 0;
<a id='L242' name='L242'></a> 242     <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</a> = <a href='../Y/3.html' title='Multiple used in 191 places.'>NULL</a>;
<a id='L243' name='L243'></a> 243     <a href='../Y/25.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/118.html' title='Multiple used in 6 places.'>inst</a> = <a href='../Y/228.html' title='Multiple used in 79 places.'>true</a>;
<a id='L244' name='L244'></a> 244 
<a id='L245' name='L245'></a> 245     <strong class='reserved'>for</strong>(<strong class='reserved'>int</strong> <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> = <a href='../Y/196.html' title='Multiple used in 19 places.'>start</a>; <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> &lt;= <a href='../Y/85.html' title='Multiple used in 25 places.'>end</a>; <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>++) <em class='brace'>{</em>
<a id='L246' name='L246'></a> 246         <a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a> = <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/144.html' title='Multiple used in 60 places.'>memory</a>[<a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>] &amp; 0xFF00;
<a id='L247' name='L247'></a> 247         <a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</a> = <a href='../S/2856.html#L222' title='Defined at 222 in src/struct.c.'>getcmdname</a>(<a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a>);
<a id='L248' name='L248'></a> 248         <a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a> = <a href='../S/2856.html#L205' title='Defined at 205 in src/struct.c.'>getcmdtype</a>(<a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a>);
<a id='L249' name='L249'></a> 249         <strong class='reserved'>if</strong>(<a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/144.html' title='Multiple used in 60 places.'>memory</a>[<a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>] == 0) <em class='brace'>{</em>
<a id='L250' name='L250'></a> 250             <strong class='reserved'>if</strong>(<a href='../Y/118.html' title='Multiple used in 6 places.'>inst</a> == <a href='../Y/228.html' title='Multiple used in 79 places.'>true</a>) <em class='brace'>{</em>  <em class='comment'>/* プログラム領域の場合  */</em>
<a id='L251' name='L251'></a> 251                 <a href='../S/2810.html#L112' title='Defined at 112 in src/disassemble.c.'>disassemble_cmd_r</a>(<a href='../S/2417.html#L98' title='Defined at 98 in include/struct.h.'>NONE</a>, "nop", 0, <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L252' name='L252'></a> 252             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>            <em class='comment'>/* データ領域の場合。メモリーでは、DC 0とみなす */</em>
<a id='L253' name='L253'></a> 253                 <a href='../S/2810.html#L134' title='Defined at 134 in src/disassemble.c.'>disassemble_dc</a>(0, <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L254' name='L254'></a> 254             <em class='brace'>}</em>
<a id='L255' name='L255'></a> 255         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a> == 0) <em class='brace'>{</em>
<a id='L256' name='L256'></a> 256             <a href='../S/2810.html#L134' title='Defined at 134 in src/disassemble.c.'>disassemble_dc</a>(<a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/144.html' title='Multiple used in 60 places.'>memory</a>[<a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>], <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L257' name='L257'></a> 257         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L258' name='L258'></a> 258             <strong class='reserved'>if</strong>(<a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a> == <a href='../S/2417.html#L77' title='Defined at 77 in include/struct.h.'>R_ADR_X</a> || <a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a> == <a href='../S/2417.html#L89' title='Defined at 89 in include/struct.h.'>ADR_X</a>) <em class='brace'>{</em>
<a id='L259' name='L259'></a> 259                 <a href='../S/2810.html#L93' title='Defined at 93 in src/disassemble.c.'>disassemble_cmd_adr_x</a>(<a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a>, <a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</a>, <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/144.html' title='Multiple used in 60 places.'>memory</a>[<a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>], <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/144.html' title='Multiple used in 60 places.'>memory</a>[<a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>+1], <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L260' name='L260'></a> 260                 <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>++;
<a id='L261' name='L261'></a> 261             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L262' name='L262'></a> 262                 <a href='../S/2810.html#L112' title='Defined at 112 in src/disassemble.c.'>disassemble_cmd_r</a>(<a href='../Y/66.html' title='Multiple used in 27 places.'>cmdtype</a>, <a href='../Y/62.html' title='Multiple used in 14 places.'>cmdname</a>, <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/144.html' title='Multiple used in 60 places.'>memory</a>[<a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>], <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L263' name='L263'></a> 263             <em class='brace'>}</em>
<a id='L264' name='L264'></a> 264             <a href='../Y/118.html' title='Multiple used in 6 places.'>inst</a> = (<a href='../Y/59.html' title='Multiple used in 86 places.'>cmd</a> != 0x8100) ? <a href='../Y/228.html' title='Multiple used in 79 places.'>true</a> : <a href='../Y/92.html' title='Multiple used in 52 places.'>false</a>;
<a id='L265' name='L265'></a> 265         <em class='brace'>}</em>
<a id='L266' name='L266'></a> 266         <a href='../Y/102.html' title='Multiple used in 115 places.'>fprintf</a>(<a href='../Y/200.html' title='Multiple used in 93 places.'>stdout</a>, "\n");
<a id='L267' name='L267'></a> 267     <em class='brace'>}</em>
<a id='L268' name='L268'></a> 268 <em class='brace'>}</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;]<a href='#L82'>[^]</a><a href='#L238'>[v]</a><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] */