X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=test%2Fintegration%2Fcasl2%2Fopt_s%2F0.txt;fp=test%2Fintegration%2Fcasl2%2Fopt_s%2F0.txt;h=4288cd20b197d6f6e74dadff9fed59f1dd73331d;hb=85744703060a90c21ee325d3a692f80233bc281f;hp=0000000000000000000000000000000000000000;hpb=632231943932361e8c8618283f7871ff1df04aa6;p=YACASL2.git diff --git a/test/integration/casl2/opt_s/0.txt b/test/integration/casl2/opt_s/0.txt new file mode 100644 index 0000000..4288cd2 --- /dev/null +++ b/test/integration/casl2/opt_s/0.txt @@ -0,0 +1,22 @@ +../../../../casl2 -s ../../../../as/FUNC/sum_10.casl + +Assemble ../../../../as/FUNC/sum_10.casl (0) +../../../../as/FUNC/sum_10.casl: 1:;;; sum_10.casl +../../../../as/FUNC/sum_10.casl: 2:;;; 出力 GR0: 1から10までの整数をすべて加算した値 +../../../../as/FUNC/sum_10.casl: 3:MAIN START +../../../../as/FUNC/sum_10.casl: 4: PUSH 0,GR1 +../../../../as/FUNC/sum_10.casl: 5: LAD GR0,0 ; GR0を初期化 +../../../../as/FUNC/sum_10.casl: 6: LD GR1,FST ; GR1に初項を転送 +../../../../as/FUNC/sum_10.casl: 7:LOOP ADDL GR0,GR1 ; ループ先頭 +../../../../as/FUNC/sum_10.casl: 8: ADDL GR1,STEP ; GR1 <- GR1 + 公差 +../../../../as/FUNC/sum_10.casl: 9: CPL GR1,LST ; GR1が末項より大きい場合は終了 +../../../../as/FUNC/sum_10.casl: 10: JPL FIN ; ↓ +../../../../as/FUNC/sum_10.casl: 11: JUMP LOOP ; ループ終端 +../../../../as/FUNC/sum_10.casl: 12:FIN POP GR1 +../../../../as/FUNC/sum_10.casl: 13: RET +../../../../as/FUNC/sum_10.casl: 14:FST DC 1 ; 初項 +../../../../as/FUNC/sum_10.casl: 15:LST DC 10 ; 末項 +../../../../as/FUNC/sum_10.casl: 16:STEP DC 1 ; 公差 +../../../../as/FUNC/sum_10.casl: 17: END + +Assemble ../../../../as/FUNC/sum_10.casl (1)