<!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>doc/casl2_spec/img/2_2-01.svg</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/2921.html'>doc</a>/<a href='../files/2922.html'>casl2_spec</a>/<a href='../files/2923.html'>img</a>/2_2-01.svg</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 /> <pre> <a id='L1' name='L1'></a><?xml version="1.0" encoding="utf-8"?> <a id='L2' name='L2'></a><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="750" height="300"> <a id='L3' name='L3'></a> <a id='L4' name='L4'></a> <g transform="translate(10,10)"> <a id='L5' name='L5'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L6' name='L6'></a> <rect x="0" y="0" width="670" height="260" /> <a id='L7' name='L7'></a> <path d="M0,40 L671,40" /> <a id='L8' name='L8'></a> <path d="M100,0 L100,260" /> <a id='L9' name='L9'></a> </g> <a id='L10' name='L10'></a> <a id='L11' name='L11'></a> <g transform="translate(0,40)"> <a id='L12' name='L12'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L13' name='L13'></a> <text x="5" y="65">アセンブラ命令</text> <a id='L14' name='L14'></a> </g> <a id='L15' name='L15'></a> <a id='L16' name='L16'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L17' name='L17'></a> <path d="M0,120 L100,120" /> <a id='L18' name='L18'></a> </g> <a id='L19' name='L19'></a> </g> <a id='L20' name='L20'></a> <a id='L21' name='L21'></a> <g transform="translate(0,160)"> <a id='L22' name='L22'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L23' name='L23'></a> <text x="5" y="45">マクロ命令</text> <a id='L24' name='L24'></a> </g> <a id='L25' name='L25'></a> <a id='L26' name='L26'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L27' name='L27'></a> <path d="M0,80 L100,80" /> <a id='L28' name='L28'></a> </g> <a id='L29' name='L29'></a> </g> <a id='L30' name='L30'></a> <a id='L31' name='L31'></a> <g transform="translate(0,240)"> <a id='L32' name='L32'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L33' name='L33'></a> <text x="5" y="15">機械語命令</text> <a id='L34' name='L34'></a> </g> <a id='L35' name='L35'></a> <a id='L36' name='L36'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L37' name='L37'></a> </g> <a id='L38' name='L38'></a> </g> <a id='L39' name='L39'></a> <g> <a id='L40' name='L40'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L41' name='L41'></a> <text x="50" y="25" text-anchor="middle">命令の種類</text> <a id='L42' name='L42'></a> <text x="135" y="25" text-anchor="middle">ラベル</text> <a id='L43' name='L43'></a> <text x="210" y="15" text-anchor="middle">命令</text><text x="210" y="30" text-anchor="middle">コード</text> <a id='L44' name='L44'></a> <text x="325" y="25" text-anchor="middle">オペランド</text> <a id='L45' name='L45'></a> <text x="525" y="25" text-anchor="middle">機能</text> <a id='L46' name='L46'></a> </g> <a id='L47' name='L47'></a> <a id='L48' name='L48'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L49' name='L49'></a> <path d="M170,0 L170,40" /> <a id='L50' name='L50'></a> <path d="M250,0 L250,40" /> <a id='L51' name='L51'></a> <path d="M420,0 L420,40" /> <a id='L52' name='L52'></a> </g> <a id='L53' name='L53'></a> </g> <a id='L54' name='L54'></a> <a id='L55' name='L55'></a> <g transform="translate(0,40)"> <a id='L56' name='L56'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L57' name='L57'></a> <text x="105" y="35">ラベル</text> <a id='L58' name='L58'></a> <text x="175" y="35" font-family="monospace">START</text> <a id='L59' name='L59'></a> <text x="255" y="35" font-family="monospace">[実行開始番地]</text> <a id='L60' name='L60'></a> <text x="425" y="15">プログラムの先頭を定義</text> <a id='L61' name='L61'></a> <text x="425" y="35">プログラムの実行開始番地を定義</text> <a id='L62' name='L62'></a> <text x="425" y="55">他のプログラムで参照する入口名を定義</text> <a id='L63' name='L63'></a> </g> <a id='L64' name='L64'></a> <a id='L65' name='L65'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L66' name='L66'></a> <path d="M100,60 L670,60" /> <a id='L67' name='L67'></a> <path d="M170,0 L170,60" /> <a id='L68' name='L68'></a> <path d="M250,0 L250,60" /> <a id='L69' name='L69'></a> <path d="M420,0 L420,60" /> <a id='L70' name='L70'></a> </g> <a id='L71' name='L71'></a> </g> <a id='L72' name='L72'></a> <a id='L73' name='L73'></a> <g transform="translate(0,100)"> <a id='L74' name='L74'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L75' name='L75'></a> <text x="175" y="15" font-family="monospace">END</text> <a id='L76' name='L76'></a> <text x="425" y="15">プログラムの終わりを明示</text> <a id='L77' name='L77'></a> </g> <a id='L78' name='L78'></a> <a id='L79' name='L79'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L80' name='L80'></a> <path d="M100,20 L670,20" /> <a id='L81' name='L81'></a> <path d="M170,0 L170,20" /> <a id='L82' name='L82'></a> <path d="M250,0 L250,20" /> <a id='L83' name='L83'></a> <path d="M420,0 L420,20" /> <a id='L84' name='L84'></a> </g> <a id='L85' name='L85'></a> </g> <a id='L86' name='L86'></a> <a id='L87' name='L87'></a> <g transform="translate(0,120)"> <a id='L88' name='L88'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L89' name='L89'></a> <text x="105" y="15">[ラベル]</text> <a id='L90' name='L90'></a> <text x="175" y="15" font-family="monospace">DS</text> <a id='L91' name='L91'></a> <text x="255" y="15" font-family="monospace">語数</text> <a id='L92' name='L92'></a> <text x="425" y="15">領域を確保</text> <a id='L93' name='L93'></a> </g> <a id='L94' name='L94'></a> <a id='L95' name='L95'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L96' name='L96'></a> <path d="M100,20 L670,20" /> <a id='L97' name='L97'></a> <path d="M170,0 L170,20" /> <a id='L98' name='L98'></a> <path d="M250,0 L250,20" /> <a id='L99' name='L99'></a> <path d="M420,0 L420,20" /> <a id='L100' name='L100'></a> </g> <a id='L101' name='L101'></a> </g> <a id='L102' name='L102'></a> <a id='L103' name='L103'></a> <g transform="translate(0,140)"> <a id='L104' name='L104'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L105' name='L105'></a> <text x="105" y="15">[ラベル]</text> <a id='L106' name='L106'></a> <text x="175" y="15" font-family="monospace">DC</text> <a id='L107' name='L107'></a> <text x="255" y="15" font-family="monospace">定数[,定数]&#x22EF;</text> <a id='L108' name='L108'></a> <text x="425" y="15">定数を定義</text> <a id='L109' name='L109'></a> </g> <a id='L110' name='L110'></a> <a id='L111' name='L111'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L112' name='L112'></a> <path d="M100,20 L670,20" /> <a id='L113' name='L113'></a> <path d="M170,0 L170,20" /> <a id='L114' name='L114'></a> <path d="M250,0 L250,20" /> <a id='L115' name='L115'></a> <path d="M420,0 L420,20" /> <a id='L116' name='L116'></a> </g> <a id='L117' name='L117'></a> </g> <a id='L118' name='L118'></a> <a id='L119' name='L119'></a> <g transform="translate(0,160)"> <a id='L120' name='L120'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L121' name='L121'></a> <text x="105" y="15">[ラベル]</text> <a id='L122' name='L122'></a> <text x="175" y="15" font-family="monospace">IN</text> <a id='L123' name='L123'></a> <text x="255" y="15" font-family="monospace">入力領域,入力文字長領域</text> <a id='L124' name='L124'></a> <text x="425" y="15">入力装置から文字データを入力</text> <a id='L125' name='L125'></a> </g> <a id='L126' name='L126'></a> <a id='L127' name='L127'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L128' name='L128'></a> <path d="M100,20 L670,20" /> <a id='L129' name='L129'></a> <path d="M170,0 L170,20" /> <a id='L130' name='L130'></a> <path d="M250,0 L250,20" /> <a id='L131' name='L131'></a> <path d="M420,0 L420,20" /> <a id='L132' name='L132'></a> </g> <a id='L133' name='L133'></a> </g> <a id='L134' name='L134'></a> <a id='L135' name='L135'></a> <g transform="translate(0,180)"> <a id='L136' name='L136'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L137' name='L137'></a> <text x="105" y="15">[ラベル]</text> <a id='L138' name='L138'></a> <text x="175" y="15" font-family="monospace">OUT</text> <a id='L139' name='L139'></a> <text x="255" y="15" font-family="monospace">出力領域,出力文字長領域</text> <a id='L140' name='L140'></a> <text x="425" y="15">出力装置へ文字データを出力</text> <a id='L141' name='L141'></a> </g> <a id='L142' name='L142'></a> <a id='L143' name='L143'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L144' name='L144'></a> <path d="M100,20 L670,20" /> <a id='L145' name='L145'></a> <path d="M170,0 L170,20" /> <a id='L146' name='L146'></a> <path d="M250,0 L250,20" /> <a id='L147' name='L147'></a> <path d="M420,0 L420,20" /> <a id='L148' name='L148'></a> </g> <a id='L149' name='L149'></a> </g> <a id='L150' name='L150'></a> <a id='L151' name='L151'></a> <g transform="translate(0,200)"> <a id='L152' name='L152'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L153' name='L153'></a> <text x="105" y="15">[ラベル]</text> <a id='L154' name='L154'></a> <text x="175" y="15" font-family="monospace">RPUSH</text> <a id='L155' name='L155'></a> <text x="425" y="15">GRの内容をスタックに格納</text> <a id='L156' name='L156'></a> </g> <a id='L157' name='L157'></a> <a id='L158' name='L158'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L159' name='L159'></a> <path d="M100,20 L670,20" /> <a id='L160' name='L160'></a> <path d="M170,0 L170,20" /> <a id='L161' name='L161'></a> <path d="M250,0 L250,20" /> <a id='L162' name='L162'></a> <path d="M420,0 L420,20" /> <a id='L163' name='L163'></a> </g> <a id='L164' name='L164'></a> </g> <a id='L165' name='L165'></a> <a id='L166' name='L166'></a> <g transform="translate(0,220)"> <a id='L167' name='L167'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L168' name='L168'></a> <text x="105" y="15">[ラベル]</text> <a id='L169' name='L169'></a> <text x="175" y="15" font-family="monospace">RPOP</text> <a id='L170' name='L170'></a> <text x="425" y="15">スタックの内容をGRに格納</text> <a id='L171' name='L171'></a> </g> <a id='L172' name='L172'></a> <a id='L173' name='L173'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L174' name='L174'></a> <path d="M100,20 L670,20" /> <a id='L175' name='L175'></a> <path d="M170,0 L170,20" /> <a id='L176' name='L176'></a> <path d="M250,0 L250,20" /> <a id='L177' name='L177'></a> <path d="M420,0 L420,20" /> <a id='L178' name='L178'></a> </g> <a id='L179' name='L179'></a> </g> <a id='L180' name='L180'></a> <a id='L181' name='L181'></a> <g transform="translate(0,240)"> <a id='L182' name='L182'></a> <g font-size="10pt" font-family="sans-serif"> <a id='L183' name='L183'></a> <text x="105" y="15">[ラベル]</text> <a id='L184' name='L184'></a> <text x="420" y="15" font-family="sans-serif" text-anchor="middle">(「1.2 命令」を参照)</text> <a id='L185' name='L185'></a> </g> <a id='L186' name='L186'></a> <a id='L187' name='L187'></a> <g stroke="black" stroke-width="1" fill="none"> <a id='L188' name='L188'></a> <path d="M170,0 L170,21" /> <a id='L189' name='L189'></a> </g> <a id='L190' name='L190'></a> </g> <a id='L191' name='L191'></a> </g> <a id='L192' name='L192'></a></svg> </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>