root/doc_inner/gnu_global/S/2840.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/dump.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>/dump.c</h2>
<em class='comment'>/* [&lt;][&gt;]<a href='#L4'>[^]</a><a href='#L38'>[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='#L4' title='Defined at 4.'>dumpmemory</a></li>
<li><a href='#L38' title='Defined at 38.'>dspregister</a></li>
</ol>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='sharp'>#include</em> "<a href='2420.html'>exec.h</a>"
<a id='L2' name='L2'></a>   2 
<a id='L3' name='L3'></a>   3 <em class='comment'>/* exec.hに定義された関数群 */</em>
<a id='L4' name='L4'></a>   4 <strong class='reserved'>void</strong> <a href='../R/135.html' title='Multiple referred from 3 places.'>dumpmemory</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='L5' name='L5'></a>   5 <em class='brace'>{</em>
<a id='L6' name='L6'></a>   6     <strong class='reserved'>const</strong> <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/72.html' title='Multiple used in 4 places.'>col</a> = 0x10;
<a id='L7' name='L7'></a>   7     <a href='../S/2425.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/147.html' title='Multiple used in 4 places.'>mod</a> = 0;
<a id='L8' name='L8'></a>   8     <em class='comment'>/* Header */</em>
<a id='L9' name='L9'></a>   9     <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: adr :", <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a>);
<a id='L10' name='L10'></a>  10     <strong class='reserved'>if</strong>(<a href='../Y/85.html' title='Multiple used in 25 places.'>end</a> &gt; <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/146.html' title='Multiple used in 30 places.'>memsize</a>) <em class='brace'>{</em>
<a id='L11' name='L11'></a>  11         <a href='../Y/85.html' title='Multiple used in 25 places.'>end</a> = <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/146.html' title='Multiple used in 30 places.'>memsize</a>;
<a id='L12' name='L12'></a>  12     <em class='brace'>}</em>
<a id='L13' name='L13'></a>  13     <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/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/146.html' title='Multiple used in 30 places.'>memsize</a> &amp;&amp; <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> &lt; <a href='../Y/72.html' title='Multiple used in 4 places.'>col</a>; <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>++) <em class='brace'>{</em>
<a id='L14' name='L14'></a>  14         <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/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L15' name='L15'></a>  15     <em class='brace'>}</em>
<a id='L16' name='L16'></a>  16     <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='L17' name='L17'></a>  17     <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='L18' name='L18'></a>  18     <em class='comment'>/* Memory */</em>
<a id='L19' name='L19'></a>  19     <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='L20' name='L20'></a>  20         <a href='../Y/147.html' title='Multiple used in 4 places.'>mod</a> = <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> % <a href='../Y/72.html' title='Multiple used in 4 places.'>col</a>;
<a id='L21' name='L21'></a>  21         <strong class='reserved'>if</strong>(<a href='../Y/147.html' title='Multiple used in 4 places.'>mod</a> == 0 || <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>) <em class='brace'>{</em>
<a id='L22' name='L22'></a>  22             <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/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a>, <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L23' name='L23'></a>  23         <em class='brace'>}</em>
<a id='L24' name='L24'></a>  24         <strong class='reserved'>if</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>) <em class='brace'>{</em>
<a id='L25' name='L25'></a>  25             <strong class='reserved'>for</strong>(<strong class='reserved'>int</strong> <a href='../Y/121.html' title='Multiple used in 20 places.'>j</a> = 0; <a href='../Y/121.html' title='Multiple used in 20 places.'>j</a> &lt; <a href='../Y/147.html' title='Multiple used in 4 places.'>mod</a>; <a href='../Y/121.html' title='Multiple used in 20 places.'>j</a>++) <em class='brace'>{</em>
<a id='L26' name='L26'></a>  26                 <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='L27' name='L27'></a>  27             <em class='brace'>}</em>
<a id='L28' name='L28'></a>  28         <em class='brace'>}</em>
<a id='L29' name='L29'></a>  29         <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/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 id='L30' name='L30'></a>  30         <strong class='reserved'>if</strong>((<a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> &gt; 0 &amp;&amp; (<a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> + 1) % <a href='../Y/72.html' title='Multiple used in 4 places.'>col</a> == 0) || (<a href='../Y/117.html' title='Multiple used in 233 places.'>i</a> + 1) == <a href='../Y/85.html' title='Multiple used in 25 places.'>end</a>) <em class='brace'>{</em>
<a id='L31' name='L31'></a>  31             <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='L32' name='L32'></a>  32         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L33' name='L33'></a>  33             <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='L34' name='L34'></a>  34         <em class='brace'>}</em>
<a id='L35' name='L35'></a>  35     <em class='brace'>}</em>
<a id='L36' name='L36'></a>  36 <em class='brace'>}</em>
<a id='L37' name='L37'></a>  37 
<a id='L38' name='L38'></a>  38 <strong class='reserved'>void</strong> <a href='../R/134.html' title='Multiple referred from 4 places.'>dspregister</a>()
<a id='L39' name='L39'></a>  39 <em class='brace'>{</em>
<a id='L40' name='L40'></a>  40     <strong class='reserved'>char</strong> *<a href='../Y/193.html' title='Multiple used in 17 places.'>sp</a> = <a href='../S/2828.html#L120' title='Defined at 120 in src/word.c.'>word2bit</a>(<a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/193.html' title='Multiple used in 17 places.'>sp</a>);
<a id='L41' name='L41'></a>  41     <strong class='reserved'>char</strong> *<a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a> = <a href='../S/2828.html#L120' title='Defined at 120 in src/word.c.'>word2bit</a>(<a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a>);
<a id='L42' name='L42'></a>  42     <strong class='reserved'>char</strong> *<a href='../Y/103.html' title='Multiple used in 44 places.'>fr</a> = <a href='../S/2828.html#L120' title='Defined at 120 in src/word.c.'>word2bit</a>(<a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/103.html' title='Multiple used in 44 places.'>fr</a>);
<a id='L43' name='L43'></a>  43     <strong class='reserved'>enum</strong> <em class='brace'>{</em>
<a id='L44' name='L44'></a>  44         <a href='../S/2840.html#L53' title='Referred from 53 in src/dump.c.'>L3BIT</a> = 16 - 3,     <em class='comment'>/* WORD値16ビットのうち、下位3ビットの開始位置 */</em>
<a id='L45' name='L45'></a>  45     <em class='brace'>}</em>;
<a id='L46' name='L46'></a>  46     <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='../S/2417.html#L18' title='Defined at 18 in include/struct.h.'>GRSIZE</a>; <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>++ ) <em class='brace'>{</em>
<a id='L47' name='L47'></a>  47         <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: GR%d: ", <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a>, <a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>);
<a id='L48' name='L48'></a>  48         <a href='../S/2828.html#L137' title='Defined at 137 in src/word.c.'>print_dumpword</a>(<a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/113.html' title='Multiple used in 59 places.'>gr</a>[<a href='../Y/117.html' title='Multiple used in 233 places.'>i</a>], <a href='../Y/88.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/136.html' title='Multiple used in 6 places.'>logical</a>);
<a id='L49' name='L49'></a>  49         <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='L50' name='L50'></a>  50     <em class='brace'>}</em>
<a id='L51' name='L51'></a>  51     <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: SP:  %6d = #%04X = %s\n", <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a>, <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/193.html' title='Multiple used in 17 places.'>sp</a>, <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/193.html' title='Multiple used in 17 places.'>sp</a>, <a href='../Y/193.html' title='Multiple used in 17 places.'>sp</a>);
<a id='L52' name='L52'></a>  52     <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: PR:  %6d = #%04X = %s\n", <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a>, <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a>, <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a>, <a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a>);
<a id='L53' name='L53'></a>  53     <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: FR (OF SF ZF): %s\n", <a href='../Y/217.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/77.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a>, <a href='../Y/103.html' title='Multiple used in 44 places.'>fr</a> + <a href='../S/2840.html#L44' title='Defined at 44 in src/dump.c.'>L3BIT</a>); <em class='comment'>/* FRは下位3けたを表示 */</em>
<a id='L54' name='L54'></a>  54     <a href='../S/2424.html#L21' title='Defined at 21 in include/cmem.h.'>FREE</a>(<a href='../Y/193.html' title='Multiple used in 17 places.'>sp</a>);
<a id='L55' name='L55'></a>  55     <a href='../S/2424.html#L21' title='Defined at 21 in include/cmem.h.'>FREE</a>(<a href='../Y/174.html' title='Multiple used in 110 places.'>pr</a>);
<a id='L56' name='L56'></a>  56     <a href='../S/2424.html#L21' title='Defined at 21 in include/cmem.h.'>FREE</a>(<a href='../Y/103.html' title='Multiple used in 44 places.'>fr</a>);
<a id='L57' name='L57'></a>  57 <em class='brace'>}</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;]<a href='#L4'>[^]</a><a href='#L38'>[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] */