From: j8takagi Date: Sat, 2 Jun 2018 07:36:44 +0000 (+0900) Subject: casl2libを呼び出すコードを、testフォルダからas/casl2lib/sampleに移動 X-Git-Tag: v0.2p45~2 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03832f246ce06d0dae29f96c087b94c7086bb993;p=YACASL2.git casl2libを呼び出すコードを、testフォルダからas/casl2lib/sampleに移動 --- diff --git a/as/addl.casl b/as/sample/addl.casl similarity index 100% rename from as/addl.casl rename to as/sample/addl.casl diff --git a/as/addl_outl.casl b/as/sample/addl_outl.casl similarity index 100% rename from as/addl_outl.casl rename to as/sample/addl_outl.casl diff --git a/as/call_l2str.casl b/as/sample/call_l2str.casl similarity index 100% rename from as/call_l2str.casl rename to as/sample/call_l2str.casl diff --git a/as/hello.casl b/as/sample/hello.casl similarity index 100% rename from as/hello.casl rename to as/sample/hello.casl diff --git a/as/sum_10.casl b/as/sample/sum_10.casl similarity index 100% rename from as/sum_10.casl rename to as/sample/sum_10.casl diff --git a/test/system/casl2/lib_abs/abs.casl b/test/system/casl2/lib_abs/abs.casl deleted file mode 100644 index e16585b..0000000 --- a/test/system/casl2/lib_abs/abs.casl +++ /dev/null @@ -1,27 +0,0 @@ -;;; ABSを呼び出す -MAIN START - LAD GR2,0 -MLOOP CPA GR2,MLEN - JZE MFIN - LD GR1,MVAL,GR2 - CALL OUTA - CALL ABS - JOV PUTOV - JMI PUTM - OUT PLUS,=1 - JUMP PUTD -PUTM OUT MINUS,=1 - JUMP PUTD -PUTOV OUT OV,=2 -PUTD CALL OUTA - OUT SEP,MLEN - LAD GR2,1,GR2 - JUMP MLOOP -MFIN RET -MVAL DC 12,-12,1,-1,32767,-32767,0,-32768 -MLEN DC 8 -SEP DC '--------' -PLUS DC '+' -MINUS DC '-' -OV DC 'OV' - END diff --git a/test/system/casl2/lib_abs/cmd b/test/system/casl2/lib_abs/cmd index b96e675..88071d7 100755 --- a/test/system/casl2/lib_abs/cmd +++ b/test/system/casl2/lib_abs/cmd @@ -1 +1 @@ -../../../../casl2 abs.casl ../../../../as/casl2lib/outa.casl ../../../../as/casl2lib/abs.casl ../../../../as/casl2lib/divl.casl ../../../../as/casl2lib/rev.casl +../../../../casl2 ../../../../as/casl2lib/sample/call_abs.casl ../../../../as/casl2lib/outa.casl ../../../../as/casl2lib/abs.casl ../../../../as/casl2lib/divl.casl ../../../../as/casl2lib/rev.casl diff --git a/test/system/casl2/lib_addl32/addl32.casl b/test/system/casl2/lib_addl32/addl32.casl deleted file mode 100644 index 6072b8b..0000000 --- a/test/system/casl2/lib_addl32/addl32.casl +++ /dev/null @@ -1,13 +0,0 @@ -MAIN START - LAD GR1,A - LAD GR2,B - CALL ADDL32 - LD GR2,GR0 - LD GR1,1,GR2 - CALL OUTL - LD GR1,0,GR2 - CALL OUTL - RET -A DC 6,10 -B DC 2,65530 - END diff --git a/test/system/casl2/lib_addl32/cmd b/test/system/casl2/lib_addl32/cmd index 3c45656..3753bcf 100755 --- a/test/system/casl2/lib_addl32/cmd +++ b/test/system/casl2/lib_addl32/cmd @@ -1 +1 @@ -../../../../casl2 addl32.casl ../../../../as/casl2lib/addl32.casl ../../../../as/casl2lib/outl.casl ../../../../as/casl2lib/divl.casl ../../../../as/casl2lib/rev.casl +../../../../casl2 ../../../../as/casl2lib/sample/call_addl32.casl ../../../../as/casl2lib/addl32.casl ../../../../as/casl2lib/outl.casl ../../../../as/casl2lib/divl.casl ../../../../as/casl2lib/rev.casl diff --git a/test/system/casl2/lib_divl/cmd b/test/system/casl2/lib_divl/cmd index f5cbb75..d7d1ed6 100755 --- a/test/system/casl2/lib_divl/cmd +++ b/test/system/casl2/lib_divl/cmd @@ -1 +1 @@ -../../../../casl2 -M640 divl.casl ../../../../as/casl2lib/outl.casl ../../../../as/casl2lib/divl.casl ../../../../as/casl2lib/rev.casl +../../../../casl2 -M640 ../../../../as/casl2lib/sample/call_divl.casl ../../../../as/casl2lib/outl.casl ../../../../as/casl2lib/divl.casl ../../../../as/casl2lib/rev.casl diff --git a/test/system/casl2/lib_divl/divl.casl b/test/system/casl2/lib_divl/divl.casl deleted file mode 100644 index e988bea..0000000 --- a/test/system/casl2/lib_divl/divl.casl +++ /dev/null @@ -1,38 +0,0 @@ -MAIN START - LD GR1,XMAX -LOOPX CPA GR1,XMIN - JMI FIN - OUT SEP,SLEN - LD GR2,YMIN -LOOPY CPL GR2,YMAX - JPL XNEXT - CALL OUTL - PUSH 0,GR1 - LD GR1,GR2 - CALL OUTL - POP GR1 - CALL DIVL - JOV WOV - PUSH 0,GR1 - LD GR1,GR0 - CALL OUTL - LD GR1,GR3 - CALL OUTL - POP GR1 -YNEXT OUT SEP,SLEN - LAD GR2,1,GR2 - JUMP LOOPY -WOV OUT Y0MSG,YLEN - JUMP YNEXT -XNEXT LAD GR1,-1,GR1 - JUMP LOOPX -FIN RET -XMAX DC 100 -XMIN DC 0 -YMAX DC 10 -YMIN DC 0 -SEP DC '--------------------' -SLEN DC 20 -Y0MSG DC 'Error: div by 0' -YLEN DC 15 - END diff --git a/test/system/casl2/lib_inl/cmd b/test/system/casl2/lib_inl/cmd index f68c159..3fa40ab 100755 --- a/test/system/casl2/lib_inl/cmd +++ b/test/system/casl2/lib_inl/cmd @@ -1 +1 @@ -../../../../casl2 -M720 inl.casl ../../../../as/casl2lib/inl.casl ../../../../as/casl2lib/outl.casl ../../../../as/casl2lib/mull.casl ../../../../as/casl2lib/str2l.casl ../../../../as/casl2lib/divl.casl ../../../../as/casl2lib/rev.casl