root/doc_inner/gnu_global/S/1104.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>test/system/casl2_opt/opt_slaOn/0.txt</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/2933.html'>test</a>/<a href='../files/2935.html'>system</a>/<a href='../files/3112.html'>casl2_opt</a>/<a href='../files/3120.html'>opt_slaOn</a>/0.txt</h2>
<em class='comment'>/* [&lt;][&gt;][^][v][top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
<hr />
<pre>
<a id='L1' name='L1'></a>
<a id='L2' name='L2'></a>Assemble ../../../../as/sample/sum_10.casl (0)
<a id='L3' name='L3'></a>../../../../as/sample/sum_10.casl:    1:;;; sum_10.casl
<a id='L4' name='L4'></a>../../../../as/sample/sum_10.casl:    2:;;; 1から10までの整数をすべて加算した値をメモリーに格納する
<a id='L5' name='L5'></a>../../../../as/sample/sum_10.casl:    3:MAIN    START
<a id='L6' name='L6'></a>../../../../as/sample/sum_10.casl:    4:        PUSH    0,GR1
<a id='L7' name='L7'></a>../../../../as/sample/sum_10.casl:    5:        PUSH    0,GR2
<a id='L8' name='L8'></a>../../../../as/sample/sum_10.casl:    6:        XOR     GR2,GR2         ; GR2を初期化
<a id='L9' name='L9'></a>../../../../as/sample/sum_10.casl:    7:        LD      GR1,FST         ; GR1に初項をメモリーから転送
<a id='L10' name='L10'></a>../../../../as/sample/sum_10.casl:    8:LOOP    ADDL    GR2,GR1         ; ループ先頭。GR2 &lt;- GR2 + GR1
<a id='L11' name='L11'></a>../../../../as/sample/sum_10.casl:    9:        ADDL    GR1,STEP        ; GR1 &lt;- GR1 + 公差
<a id='L12' name='L12'></a>../../../../as/sample/sum_10.casl:   10:        CPL     GR1,LST         ; GR1が末項より大きい場合は終了
<a id='L13' name='L13'></a>../../../../as/sample/sum_10.casl:   11:        JPL     FIN             ; ↓
<a id='L14' name='L14'></a>../../../../as/sample/sum_10.casl:   12:        JUMP    LOOP            ; ループ終端
<a id='L15' name='L15'></a>../../../../as/sample/sum_10.casl:   13:FIN     ST      GR2,RST         ; GR2の結果をメモリーに転送
<a id='L16' name='L16'></a>../../../../as/sample/sum_10.casl:   14:        POP     GR2
<a id='L17' name='L17'></a>../../../../as/sample/sum_10.casl:   15:        POP     GR1
<a id='L18' name='L18'></a>../../../../as/sample/sum_10.casl:   16:        RET
<a id='L19' name='L19'></a>../../../../as/sample/sum_10.casl:   17:FST     DC      1               ; 初項
<a id='L20' name='L20'></a>../../../../as/sample/sum_10.casl:   18:LST     DC      10              ; 末項
<a id='L21' name='L21'></a>../../../../as/sample/sum_10.casl:   19:STEP    DC      1               ; 公差
<a id='L22' name='L22'></a>../../../../as/sample/sum_10.casl:   20:RST     DS      1               ; 結果
<a id='L23' name='L23'></a>../../../../as/sample/sum_10.casl:   21:        END
<a id='L24' name='L24'></a>
<a id='L25' name='L25'></a>Label::::
<a id='L26' name='L26'></a>MAIN ---&gt; #0000
<a id='L27' name='L27'></a>MAIN.LOOP ---&gt; #0007
<a id='L28' name='L28'></a>MAIN.FIN ---&gt; #0010
<a id='L29' name='L29'></a>MAIN.FST ---&gt; #0015
<a id='L30' name='L30'></a>MAIN.LST ---&gt; #0016
<a id='L31' name='L31'></a>MAIN.STEP ---&gt; #0017
<a id='L32' name='L32'></a>MAIN.RST ---&gt; #0018
<a id='L33' name='L33'></a>
<a id='L34' name='L34'></a>Assemble ../../../../as/sample/sum_10.casl (1)
<a id='L35' name='L35'></a>../../../../as/sample/sum_10.casl:    1:;;; sum_10.casl
<a id='L36' name='L36'></a>../../../../as/sample/sum_10.casl:    2:;;; 1から10までの整数をすべて加算した値をメモリーに格納する
<a id='L37' name='L37'></a>../../../../as/sample/sum_10.casl:    3:MAIN    START
<a id='L38' name='L38'></a>../../../../as/sample/sum_10.casl:    4:        PUSH    0,GR1
<a id='L39' name='L39'></a>        #0000   #7001
<a id='L40' name='L40'></a>        #0001   #0000
<a id='L41' name='L41'></a>../../../../as/sample/sum_10.casl:    5:        PUSH    0,GR2
<a id='L42' name='L42'></a>        #0002   #7002
<a id='L43' name='L43'></a>        #0003   #0000
<a id='L44' name='L44'></a>../../../../as/sample/sum_10.casl:    6:        XOR     GR2,GR2         ; GR2を初期化
<a id='L45' name='L45'></a>        #0004   #3622
<a id='L46' name='L46'></a>../../../../as/sample/sum_10.casl:    7:        LD      GR1,FST         ; GR1に初項をメモリーから転送
<a id='L47' name='L47'></a>        #0005   #1010
<a id='L48' name='L48'></a>        #0006   #0015
<a id='L49' name='L49'></a>../../../../as/sample/sum_10.casl:    8:LOOP    ADDL    GR2,GR1         ; ループ先頭。GR2 &lt;- GR2 + GR1
<a id='L50' name='L50'></a>        #0007   #2621
<a id='L51' name='L51'></a>../../../../as/sample/sum_10.casl:    9:        ADDL    GR1,STEP        ; GR1 &lt;- GR1 + 公差
<a id='L52' name='L52'></a>        #0008   #2210
<a id='L53' name='L53'></a>        #0009   #0017
<a id='L54' name='L54'></a>../../../../as/sample/sum_10.casl:   10:        CPL     GR1,LST         ; GR1が末項より大きい場合は終了
<a id='L55' name='L55'></a>        #000A   #4110
<a id='L56' name='L56'></a>        #000B   #0016
<a id='L57' name='L57'></a>../../../../as/sample/sum_10.casl:   11:        JPL     FIN             ; ↓
<a id='L58' name='L58'></a>        #000C   #6500
<a id='L59' name='L59'></a>        #000D   #0010
<a id='L60' name='L60'></a>../../../../as/sample/sum_10.casl:   12:        JUMP    LOOP            ; ループ終端
<a id='L61' name='L61'></a>        #000E   #6400
<a id='L62' name='L62'></a>        #000F   #0007
<a id='L63' name='L63'></a>../../../../as/sample/sum_10.casl:   13:FIN     ST      GR2,RST         ; GR2の結果をメモリーに転送
<a id='L64' name='L64'></a>        #0010   #1120
<a id='L65' name='L65'></a>        #0011   #0018
<a id='L66' name='L66'></a>../../../../as/sample/sum_10.casl:   14:        POP     GR2
<a id='L67' name='L67'></a>        #0012   #7120
<a id='L68' name='L68'></a>../../../../as/sample/sum_10.casl:   15:        POP     GR1
<a id='L69' name='L69'></a>        #0013   #7110
<a id='L70' name='L70'></a>../../../../as/sample/sum_10.casl:   16:        RET
<a id='L71' name='L71'></a>        #0014   #8100
<a id='L72' name='L72'></a>../../../../as/sample/sum_10.casl:   17:FST     DC      1               ; 初項
<a id='L73' name='L73'></a>        #0015   #0001
<a id='L74' name='L74'></a>../../../../as/sample/sum_10.casl:   18:LST     DC      10              ; 末項
<a id='L75' name='L75'></a>        #0016   #000A
<a id='L76' name='L76'></a>../../../../as/sample/sum_10.casl:   19:STEP    DC      1               ; 公差
<a id='L77' name='L77'></a>        #0017   #0001
<a id='L78' name='L78'></a>../../../../as/sample/sum_10.casl:   20:RST     DS      1               ; 結果
<a id='L79' name='L79'></a>        #0018   #0000
<a id='L80' name='L80'></a>../../../../as/sample/sum_10.casl:   21:        END
<a id='L81' name='L81'></a>0000000 7001 0000 7002 0000 3622 1010 0015 2621
<a id='L82' name='L82'></a>0000020 2210 0017 4110 0016 6500 0010 6400 0007
<a id='L83' name='L83'></a>0000040 1120 0018 7120 7110 8100 0001 000a 0001
<a id='L84' name='L84'></a>0000060 0000
<a id='L85' name='L85'></a>0000062
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;][^][v]<a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
</body>
</html>

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