From 05965ee87822b44616998d347d8f91fbf550eb2e Mon Sep 17 00:00:00 2001 From: j8takagi Date: Sat, 13 Feb 2010 12:19:51 +0900 Subject: [PATCH] =?utf8?q?CASL=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB?= =?utf8?q?=E3=81=AE=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- as/casl2lib/BUILD.mk | 3 +- as/casl2lib/Makefile | 8 +- as/casl2lib/inl.casl | 20 +- as/casl2lib/mula.casl | 72 + as/casl2lib/outa.casl | 17 + as/casl2lib/outa_src/Makefile | 3 - as/casl2lib/{inl_src => src_inl}/Makefile | 0 .../{inl_src => src_inl}/inl_main.casl | 19 +- as/casl2lib/{mula_src => src_mula}/Makefile | 0 .../{mula_src => src_mula}/mula_main.casl | 0 as/casl2lib/src_outa/Makefile | 3 + .../{outa_src => src_outa}/outa_main.casl | 0 as/casl2lib/{outb_src => src_outb}/Makefile | 0 .../{outb_src => src_outb}/outb_main.casl | 0 as/casl2lib/{outl_src => src_outl}/Makefile | 0 .../{outl_src => src_outl}/outl_main.casl | 0 as/casl2lib/test/Makefile | 45 + as/casl2lib/test/abs/0.txt | 33 + as/casl2lib/test/abs/Makefile | 6 + .../test/abs}/abs.casl | 2 - as/casl2lib/test/abs/abs_0/1.txt | 41 + as/casl2lib/test/abs/abs_0/Makefile | 6 + .../test/abs/abs_0/abs_0.casl} | 0 as/casl2lib/test/abs/abs_0/report.txt | 1 + as/casl2lib/test/addl32/0.txt | 3 + as/casl2lib/test/addl32/Makefile | 6 + .../test/addl32/addl32_0}/addl32_0.casl | 0 .../test/addl32/addl32_1.casl} | 0 as/casl2lib/test/divl/0.txt | 5556 +++++++++++++++++ as/casl2lib/test/divl/Makefile | 6 + .../test/divl}/divl.casl | 8 +- .../test/divl/divl0}/divl0.casl | 1 - .../test/divl/divl1}/divl1.casl | 0 as/casl2lib/test/inl/0.txt | 14 + as/casl2lib/test/inl/Makefile | 7 + as/casl2lib/test/inl/inl.casl | 20 + as/casl2lib/test/inl/teststr.txt | 13 + as/casl2lib/test/minim/0.txt | 2 + as/casl2lib/test/minim/1.txt | 2 + .../fib_outl => casl2lib/test/minim}/Makefile | 4 +- .../test/minim/minim.casl} | 0 as/casl2lib/test/minim/report.txt | 1 + as/casl2lib/test/mula/0.txt | 1937 ++++++ as/casl2lib/test/mula/Makefile | 7 + .../test/mula/mula.casl} | 0 as/casl2lib/test/mula/mula0/0.txt | 1147 ++++ as/casl2lib/test/mula/mula0/Makefile | 7 + .../test/mula/mula0/mula0.casl} | 0 .../test/mula}/mula_call1.casl | 0 .../test/mula}/mula_call2.casl | 0 as/casl2lib/test/mull/0.txt | 485 ++ as/casl2lib/test/mull/Makefile | 6 + .../test/mull/mull.casl} | 3 +- .../test/mull}/mull_call0.casl | 0 .../test/mull}/mull_call1.casl | 0 as/casl2lib/test/outa/0.txt | 35 + as/casl2lib/test/outa/1.txt | 35 + .../test/outa}/Makefile | 2 +- .../test/outa}/outa_call.casl | 0 .../test/outa}/outa_call1.casl | 0 .../test/outa}/outa_call2.casl | 0 as/casl2lib/test/outa/report.txt | 1 + as/casl2lib/test/outb/0.txt | 35 + as/casl2lib/test/outb/1.txt | 35 + as/casl2lib/test/outb/Makefile | 5 + .../test/outb}/outb_call.casl | 0 as/casl2lib/test/outb/report.txt | 1 + as/casl2lib/test/outd_q15/0.txt | 34 + as/casl2lib/test/outd_q15/1.txt | 34 + as/casl2lib/test/outd_q15/Makefile | 5 + .../test/outd_q15}/outd_q15_call.casl | 0 .../test/outd_q15}/outd_q15_call0.casl | 0 as/casl2lib/test/outd_q15/report.txt | 1 + as/casl2lib/test/outl/0.txt | 35 + as/casl2lib/test/outl/1.txt | 35 + as/casl2lib/test/outl/Makefile | 5 + .../test/outl}/outl_call.casl | 0 .../test/outl}/outl_call0.casl | 0 .../test/outl}/outl_call1.casl | 0 .../test/outl}/outl_call2.casl | 0 as/casl2lib/test/outl/report.txt | 1 + as/casl2lib/test/rev/0.txt | 3 + as/casl2lib/test/rev/1.txt | 3 + as/casl2lib/test/rev/Makefile | 5 + as/casl2lib/test/rev/report.txt | 1 + .../test/rev}/rev_call.casl | 0 as/casl2lib/test/sum/0.txt | 2 + as/casl2lib/test/sum/1.txt | 2 + as/casl2lib/test/sum/Makefile | 5 + as/casl2lib/test/sum/report.txt | 1 + .../test/sum}/sum_call.casl | 0 as/casl2lib_driver/inl.casl | 14 - as/err/cmd_err0.casl | 6 - as/err/cmd_err1.casl | 5 - as/err/dc_c1_err.casl | 7 - as/err/{labeldup_err.casl => err_101.casl} | 0 as/err/err_106_DC.casl | 4 + as/err/{ds_err.casl => err_106_DS.casl} | 5 +- as/err/err_109.casl | 4 + as/err/err_110.casl | 5 + as/err/err_118.casl | 4 + as/err/err_124.casl | 4 + as/err/literalstr_err.casl | 13 - as/err/opd_x_err.casl | 8 +- as/fe_tests/2008_04/Q09/token_call.casl | 2 +- as/fe_tests/2008_10/Q09/test_ptn1/0.txt | 2 + as/fe_tests/2008_10/Q09/test_ptn1/Makefile | 6 + .../test_ptn1.casl} | 0 as/fe_tests/2008_10/Q09/test_ptn2/0.txt | 2 + as/fe_tests/2008_10/Q09/test_ptn2/Makefile | 6 + .../test_ptn2.casl} | 0 as/fe_tests/2008_10/Q09/test_ptn3/0.txt | 2 + as/fe_tests/2008_10/Q09/test_ptn3/Makefile | 6 + .../test_ptn3.casl} | 0 as/fe_tests/2008_10/Q09/test_ptn4/0.txt | 2 + as/fe_tests/2008_10/Q09/test_ptn4/Makefile | 6 + .../test_ptn4.casl} | 0 as/fe_tests/2008_10/Q13/testsummary/0.txt | 6 + as/fe_tests/2008_10/Q13/testsummary/Makefile | 7 + .../testsummary.casl} | 0 as/fe_tests/2009_10/Q12/replace.casl | 34 +- as/misc/{cnt60.casl => clocks.casl} | 5 +- as/misc/fib_outl/1.txt | 26 + as/misc/fib_outl/report.txt | 1 + as/misc/hanoi/0.txt | 211 + as/misc/hanoi/1.txt | 211 + .../binout_test => misc/hanoi}/Makefile | 6 +- as/misc/hanoi/report.txt | 1 + as/misc/iotest.casl | 20 - as/misc/iotest/0.txt | 285 + as/misc/iotest/1.txt | 285 + as/misc/iotest/Makefile | 6 + as/misc/iotest/report.txt | 1 + as/misc/iotest/teststr.txt | 7 + as/misc/misc_count1/0.txt | 257 + as/misc/misc_count1/Makefile | 5 + as/misc/misc_out_hello/0.txt | 587 ++ as/misc/misc_out_hello/Makefile | 6 + as/misc/mula0.casl | 2 +- as/misc/mula0_call/0.txt | 1937 ++++++ as/misc/mula0_call/1.txt | 1937 ++++++ as/misc/mula0_call/Makefile | 6 + as/misc/mula0_call/report.txt | 1 + as/misc/mull0_call/0.txt | 606 ++ as/misc/mull0_call/1.txt | 606 ++ as/misc/mull0_call/Makefile | 5 + as/misc/mull0_call/report.txt | 1 + as/misc/mull1_call/0.txt | 606 ++ as/misc/mull1_call/1.txt | 606 ++ as/misc/mull1_call/Makefile | 5 + as/misc/mull1_call/report.txt | 1 + as/misc/sum.casl | 1 - as/misc/sum_10_2.casl | 33 +- as/misc/sum_2.casl | 26 + as/misc/{divl0_test => test_divl0}/0.txt | 0 as/misc/{divl0_test => test_divl0}/1.txt | 0 as/misc/test_divl0/Makefile | 12 + as/misc/{divl0_test => test_divl0}/report.txt | 0 as/misc/{fib_outl => test_fib_outl}/0.txt | 2 +- as/misc/test_fib_outl/Makefile | 6 + as/{misc => }/sum_10.casl | 0 as/yakuwa/binout.casl | 14 - as/yakuwa/binout_test/0.txt | 198 - as/yakuwa/binout_test/1.txt | 198 - as/yakuwa/binout_test/report.txt | 1 - as/yakuwa/floatedit.casl | 128 +- as/yakuwa/floatedit/0.txt | 503 -- as/yakuwa/floatedit/1.txt | 503 -- as/yakuwa/floatedit/Makefile | 7 - as/yakuwa/floatedit/report.txt | 1 - as/yakuwa/testbinout/0.txt | 5 + as/yakuwa/testbinout/Makefile | 5 + as/yakuwa/testbinout/testbinout.casl | 13 + as/yakuwa/testfloatedit/0.txt | 9 + as/yakuwa/testfloatedit/Makefile | 6 + .../{floatedit => testfloatedit}/teststr.txt | 0 176 files changed, 18266 insertions(+), 1639 deletions(-) create mode 100644 as/casl2lib/mula.casl delete mode 100644 as/casl2lib/outa_src/Makefile rename as/casl2lib/{inl_src => src_inl}/Makefile (100%) rename as/casl2lib/{inl_src => src_inl}/inl_main.casl (77%) rename as/casl2lib/{mula_src => src_mula}/Makefile (100%) rename as/casl2lib/{mula_src => src_mula}/mula_main.casl (100%) create mode 100644 as/casl2lib/src_outa/Makefile rename as/casl2lib/{outa_src => src_outa}/outa_main.casl (100%) rename as/casl2lib/{outb_src => src_outb}/Makefile (100%) rename as/casl2lib/{outb_src => src_outb}/outb_main.casl (100%) rename as/casl2lib/{outl_src => src_outl}/Makefile (100%) rename as/casl2lib/{outl_src => src_outl}/outl_main.casl (100%) create mode 100644 as/casl2lib/test/Makefile create mode 100644 as/casl2lib/test/abs/0.txt create mode 100644 as/casl2lib/test/abs/Makefile rename as/{casl2lib_driver => casl2lib/test/abs}/abs.casl (89%) create mode 100644 as/casl2lib/test/abs/abs_0/1.txt create mode 100644 as/casl2lib/test/abs/abs_0/Makefile rename as/{casl2lib_driver/abs0.casl => casl2lib/test/abs/abs_0/abs_0.casl} (100%) create mode 100644 as/casl2lib/test/abs/abs_0/report.txt create mode 100644 as/casl2lib/test/addl32/0.txt create mode 100644 as/casl2lib/test/addl32/Makefile rename as/{casl2lib_driver => casl2lib/test/addl32/addl32_0}/addl32_0.casl (100%) rename as/{casl2lib_driver/addl32.casl => casl2lib/test/addl32/addl32_1.casl} (100%) create mode 100644 as/casl2lib/test/divl/0.txt create mode 100644 as/casl2lib/test/divl/Makefile rename as/{casl2lib_driver => casl2lib/test/divl}/divl.casl (86%) rename as/{casl2lib_driver => casl2lib/test/divl/divl0}/divl0.casl (69%) rename as/{casl2lib_driver => casl2lib/test/divl/divl1}/divl1.casl (100%) create mode 100644 as/casl2lib/test/inl/0.txt create mode 100644 as/casl2lib/test/inl/Makefile create mode 100644 as/casl2lib/test/inl/inl.casl create mode 100644 as/casl2lib/test/inl/teststr.txt create mode 100644 as/casl2lib/test/minim/0.txt create mode 100644 as/casl2lib/test/minim/1.txt rename as/{misc/fib_outl => casl2lib/test/minim}/Makefile (51%) rename as/{casl2lib_driver/minim_call.casl => casl2lib/test/minim/minim.casl} (100%) create mode 100644 as/casl2lib/test/minim/report.txt create mode 100644 as/casl2lib/test/mula/0.txt create mode 100644 as/casl2lib/test/mula/Makefile rename as/{casl2lib_driver/mula_call.casl => casl2lib/test/mula/mula.casl} (100%) create mode 100644 as/casl2lib/test/mula/mula0/0.txt create mode 100644 as/casl2lib/test/mula/mula0/Makefile rename as/{casl2lib_driver/mula_call0.casl => casl2lib/test/mula/mula0/mula0.casl} (100%) rename as/{casl2lib_driver => casl2lib/test/mula}/mula_call1.casl (100%) rename as/{casl2lib_driver => casl2lib/test/mula}/mula_call2.casl (100%) create mode 100644 as/casl2lib/test/mull/0.txt create mode 100644 as/casl2lib/test/mull/Makefile rename as/{casl2lib_driver/mull_call.casl => casl2lib/test/mull/mull.casl} (93%) rename as/{casl2lib_driver => casl2lib/test/mull}/mull_call0.casl (100%) rename as/{casl2lib_driver => casl2lib/test/mull}/mull_call1.casl (100%) create mode 100644 as/casl2lib/test/outa/0.txt create mode 100644 as/casl2lib/test/outa/1.txt rename as/{misc/divl0_test => casl2lib/test/outa}/Makefile (54%) rename as/{casl2lib_driver => casl2lib/test/outa}/outa_call.casl (100%) rename as/{casl2lib_driver => casl2lib/test/outa}/outa_call1.casl (100%) rename as/{casl2lib_driver => casl2lib/test/outa}/outa_call2.casl (100%) create mode 100644 as/casl2lib/test/outa/report.txt create mode 100644 as/casl2lib/test/outb/0.txt create mode 100644 as/casl2lib/test/outb/1.txt create mode 100644 as/casl2lib/test/outb/Makefile rename as/{casl2lib_driver => casl2lib/test/outb}/outb_call.casl (100%) create mode 100644 as/casl2lib/test/outb/report.txt create mode 100644 as/casl2lib/test/outd_q15/0.txt create mode 100644 as/casl2lib/test/outd_q15/1.txt create mode 100644 as/casl2lib/test/outd_q15/Makefile rename as/{casl2lib_driver => casl2lib/test/outd_q15}/outd_q15_call.casl (100%) rename as/{casl2lib_driver => casl2lib/test/outd_q15}/outd_q15_call0.casl (100%) create mode 100644 as/casl2lib/test/outd_q15/report.txt create mode 100644 as/casl2lib/test/outl/0.txt create mode 100644 as/casl2lib/test/outl/1.txt create mode 100644 as/casl2lib/test/outl/Makefile rename as/{casl2lib_driver => casl2lib/test/outl}/outl_call.casl (100%) rename as/{casl2lib_driver => casl2lib/test/outl}/outl_call0.casl (100%) rename as/{casl2lib_driver => casl2lib/test/outl}/outl_call1.casl (100%) rename as/{casl2lib_driver => casl2lib/test/outl}/outl_call2.casl (100%) create mode 100644 as/casl2lib/test/outl/report.txt create mode 100644 as/casl2lib/test/rev/0.txt create mode 100644 as/casl2lib/test/rev/1.txt create mode 100644 as/casl2lib/test/rev/Makefile create mode 100644 as/casl2lib/test/rev/report.txt rename as/{casl2lib_driver => casl2lib/test/rev}/rev_call.casl (100%) create mode 100644 as/casl2lib/test/sum/0.txt create mode 100644 as/casl2lib/test/sum/1.txt create mode 100644 as/casl2lib/test/sum/Makefile create mode 100644 as/casl2lib/test/sum/report.txt rename as/{casl2lib_driver => casl2lib/test/sum}/sum_call.casl (100%) delete mode 100644 as/casl2lib_driver/inl.casl delete mode 100644 as/err/cmd_err0.casl delete mode 100644 as/err/cmd_err1.casl delete mode 100644 as/err/dc_c1_err.casl rename as/err/{labeldup_err.casl => err_101.casl} (100%) create mode 100644 as/err/err_106_DC.casl rename as/err/{ds_err.casl => err_106_DS.casl} (51%) create mode 100644 as/err/err_109.casl create mode 100644 as/err/err_110.casl create mode 100644 as/err/err_118.casl create mode 100644 as/err/err_124.casl delete mode 100644 as/err/literalstr_err.casl create mode 100644 as/fe_tests/2008_10/Q09/test_ptn1/0.txt create mode 100644 as/fe_tests/2008_10/Q09/test_ptn1/Makefile rename as/fe_tests/2008_10/Q09/{ptn1_call.casl => test_ptn1/test_ptn1.casl} (100%) create mode 100644 as/fe_tests/2008_10/Q09/test_ptn2/0.txt create mode 100644 as/fe_tests/2008_10/Q09/test_ptn2/Makefile rename as/fe_tests/2008_10/Q09/{ptn2_call.casl => test_ptn2/test_ptn2.casl} (100%) create mode 100644 as/fe_tests/2008_10/Q09/test_ptn3/0.txt create mode 100644 as/fe_tests/2008_10/Q09/test_ptn3/Makefile rename as/fe_tests/2008_10/Q09/{ptn3_call.casl => test_ptn3/test_ptn3.casl} (100%) create mode 100644 as/fe_tests/2008_10/Q09/test_ptn4/0.txt create mode 100644 as/fe_tests/2008_10/Q09/test_ptn4/Makefile rename as/fe_tests/2008_10/Q09/{ptn4_call.casl => test_ptn4/test_ptn4.casl} (100%) create mode 100644 as/fe_tests/2008_10/Q13/testsummary/0.txt create mode 100644 as/fe_tests/2008_10/Q13/testsummary/Makefile rename as/fe_tests/2008_10/Q13/{summary_call.casl => testsummary/testsummary.casl} (100%) rename as/misc/{cnt60.casl => clocks.casl} (51%) create mode 100644 as/misc/fib_outl/1.txt create mode 100644 as/misc/fib_outl/report.txt create mode 100644 as/misc/hanoi/0.txt create mode 100644 as/misc/hanoi/1.txt rename as/{yakuwa/binout_test => misc/hanoi}/Makefile (55%) create mode 100644 as/misc/hanoi/report.txt delete mode 100644 as/misc/iotest.casl create mode 100644 as/misc/iotest/0.txt create mode 100644 as/misc/iotest/1.txt create mode 100644 as/misc/iotest/Makefile create mode 100644 as/misc/iotest/report.txt create mode 100644 as/misc/iotest/teststr.txt create mode 100644 as/misc/misc_count1/0.txt create mode 100644 as/misc/misc_count1/Makefile create mode 100644 as/misc/misc_out_hello/0.txt create mode 100644 as/misc/misc_out_hello/Makefile create mode 100644 as/misc/mula0_call/0.txt create mode 100644 as/misc/mula0_call/1.txt create mode 100644 as/misc/mula0_call/Makefile create mode 100644 as/misc/mula0_call/report.txt create mode 100644 as/misc/mull0_call/0.txt create mode 100644 as/misc/mull0_call/1.txt create mode 100644 as/misc/mull0_call/Makefile create mode 100644 as/misc/mull0_call/report.txt create mode 100644 as/misc/mull1_call/0.txt create mode 100644 as/misc/mull1_call/1.txt create mode 100644 as/misc/mull1_call/Makefile create mode 100644 as/misc/mull1_call/report.txt create mode 100644 as/misc/sum_2.casl rename as/misc/{divl0_test => test_divl0}/0.txt (100%) rename as/misc/{divl0_test => test_divl0}/1.txt (100%) create mode 100644 as/misc/test_divl0/Makefile rename as/misc/{divl0_test => test_divl0}/report.txt (100%) rename as/misc/{fib_outl => test_fib_outl}/0.txt (51%) create mode 100644 as/misc/test_fib_outl/Makefile rename as/{misc => }/sum_10.casl (100%) delete mode 100644 as/yakuwa/binout_test/0.txt delete mode 100644 as/yakuwa/binout_test/1.txt delete mode 100644 as/yakuwa/binout_test/report.txt delete mode 100644 as/yakuwa/floatedit/0.txt delete mode 100644 as/yakuwa/floatedit/1.txt delete mode 100644 as/yakuwa/floatedit/Makefile delete mode 100644 as/yakuwa/floatedit/report.txt create mode 100644 as/yakuwa/testbinout/0.txt create mode 100644 as/yakuwa/testbinout/Makefile create mode 100644 as/yakuwa/testbinout/testbinout.casl create mode 100644 as/yakuwa/testfloatedit/0.txt create mode 100644 as/yakuwa/testfloatedit/Makefile rename as/yakuwa/{floatedit => testfloatedit}/teststr.txt (100%) diff --git a/as/casl2lib/BUILD.mk b/as/casl2lib/BUILD.mk index 392dc06..704f247 100644 --- a/as/casl2lib/BUILD.mk +++ b/as/casl2lib/BUILD.mk @@ -1,6 +1,7 @@ .PHONY: clean $(TARGET): $(SRCFILE) - @cat $^ >$@ + @echo ";;; *** This file is auto generated from $(SRCFILE) of `pwd | xargs basename` ***" >$@; \ + cat $^ >>$@ clean: @rm $(TARGET) diff --git a/as/casl2lib/Makefile b/as/casl2lib/Makefile index 74da775..7ee2687 100644 --- a/as/casl2lib/Makefile +++ b/as/casl2lib/Makefile @@ -1,6 +1,10 @@ -SRCDIR = `ls -d *src` +SRCDIR = `ls -d src_*` +TESTDIR = test .PHONY: all clean all: @for target in $(SRCDIR); do $(MAKE) -C $$target; done clean: - @for target in $(SRCDIR); do $(MAKE) -C $$target clean; done + @for target in $(SRCDIR); do $(MAKE) -C $$target clean; done; + make -C $(TESTDIR) clean +check: + @make -C $(TESTDIR) diff --git a/as/casl2lib/inl.casl b/as/casl2lib/inl.casl index 0584e5f..aaca184 100644 --- a/as/casl2lib/inl.casl +++ b/as/casl2lib/inl.casl @@ -1,6 +1,8 @@ -;;; 数値の入力を受け付ける +;;; *** This file is auto generated from inl_main.casl ../mull.casl of src_inl *** +;;; 0〜65535の範囲にある整数の入力を受け付ける ;;; 入力 (SVC) -;;; 出力 GR1: 入力された数値 GR0: 文字の長さ +;;; 出力 GR1: 入力された数値 GR0: 文字の長さ。入力が数字以外の場合は、#FFFF +;;; 65536以上の正数が入力された場合はエラー INL START PUSH 0,GR2 PUSH 0,GR3 @@ -15,10 +17,10 @@ INL START STOL CPL GR4,ILEN ; ループ先頭。(GR4 = ILEN)の場合、ループ脱出 JZE CP ; ↓ LD GR1,IBUF,GR4 ; GR1に、入力文字列中の次の桁を格納 - CPL GR1,ZERO ; (GR1 < '0')の場合、IOVへジャンプ - JMI OV ; ↓ - CPL GR1,NINE ; (GR1 > '9')の場合、IOVへジャンプ - JPL OV ; ↓ + CPL GR1,ZERO ; (GR1 < '0')の場合、NANへジャンプ + JMI NAN ; ↓ + CPL GR1,NINE ; (GR1 > '9')の場合、NANへジャンプ + JPL NAN ; ↓ SUBL GR1,ZERO ; GR1の文字を、対応する数値に変換 ST GR4,NLEN ; GR4 <- ILEN - NLEN - 1 LD GR4,ILEN ; ↓ @@ -27,15 +29,16 @@ MUL10 CPA GR4,=1 ; ループ先頭。GR1 <- 10 ** GR4 JZE NEXT ; (GR4 = 1)の場合、ループ脱出 JMI NEXT ; ↓ CALL MULL ; MULLを呼び出し、GR0 <- GR1 * GR2 + JOV FIN ; ↓ LD GR1,GR0 ; GR1 <- GR0 LAD GR4,-1,GR4 ; GR4 <- GR4 -1 JUMP MUL10 ; ループ終端 NEXT LD GR4,NLEN ; GR4 <- NLEN。復元 ADDL GR3,GR1 ; GR3 <- GR3 + GR1 + JOV FIN ; ↓ LAD GR4,1,GR4 ; GR4 <- GR4 + 1 JUMP STOL ; ループ終端 -OV LAD GR0,#8000 ; GR0 <- 0。オーバーフローを強制的に発生させる - SLL GR0,1 ; ↓ +NAN LAD GR0,#FFFF ; GR0 <- #FFFF JUMP FIN ; FINへジャンプ CP LD GR1,GR3 ; GR0 <- GR3 LD GR0,ILEN ; GR0 <- ILEN @@ -49,6 +52,7 @@ IBUF DS 5 ILEN DS 1 NLEN DS 1 END + ;;; 0〜65535の範囲にある正数のかけ算(筆算方式)を行う ;;; 入力 GR1:被乗数 GR2:乗数 ;;; 出力 GR0:積 diff --git a/as/casl2lib/mula.casl b/as/casl2lib/mula.casl new file mode 100644 index 0000000..6155e55 --- /dev/null +++ b/as/casl2lib/mula.casl @@ -0,0 +1,72 @@ +;;; -32767〜32767の範囲にある正数のかけ算(筆算方式)を行う +;;; 入力 GR1:被乗数 GR2:乗数 +;;; 出力 GR0:積 +;;; 被乗数または乗数が-32768の場合は、オーバーフロー +;;; 積が-32767未満または32767より大きい場合は、GR0は積の下位16ビットになり、オーバーフロー +MULA START + RPUSH + XOR GR0,GR0 ; 積 + AND GR1,GR1 ; (GR1 = 0)の場合、終了 + JZE FIN ; ↓ + AND GR2,GR2 ; (GR2 = 0)の場合、終了 + JZE FIN ; ↓ + LAD GR3,1 ; 対象ビット + XOR GR4,GR4 ; マイナスフラグ +CHK1 AND GR1,GR1 ; (GR1 > 0)の場合は、CHK2へジャンプ + JPL CHK2 ; ↓ + XOR GR1,ALLON ; GR1の正負を反転 + ADDA GR1,ONE ; ↓ + JOV FIN ; (GR1 = -32768)の場合は終了 + XOR GR4,ONE ; GR4 <- 1 +CHK2 AND GR2,GR2 ; (GR1 > 0)の場合は、LOOPへジャンプ + JPL MUL ; ↓ + XOR GR2,ALLON ; GR2の正負を反転 + ADDA GR2,ONE ; ↓ + JOV FIN ; (GR2 = -32768)の場合は終了 + XOR GR4,ONE ; マイナスフラグを反転 +MUL CALL MULL ; GR0 <- GR1 * GR2 + JOV FIN + AND GR0,GR0 + JMI OV +MIN AND GR4,GR4 ; マイナスフラグがオフの場合、終了 + JZE FIN ; ↓ + XOR GR0,ALLON ; GR1の正負を反転 + ADDA GR0,ONE ; ↓ + JUMP FIN +OV ADDL GR0,=#8000 +FIN RPOP + RET +ONE DC 1 +ALLON DC #FFFF + END +;;; 0〜65535の範囲にある正数のかけ算(筆算方式)を行う +;;; 入力 GR1:被乗数 GR2:乗数 +;;; 出力 GR0:積 +;;; 積が65535より大きい場合は、GR0は積の下位16ビットになり、オーバーフロー +MULL START + PUSH 0,GR1 + PUSH 0,GR3 + XOR GR0,GR0 ; 積 + AND GR1,GR1 ; (GR1 = 0)の場合、終了 + JZE FIN ; ↓ + AND GR2,GR2 ; (GR2 = 0)の場合、終了 + JZE FIN ; ↓ + LAD GR3,1 ; 対象ビット +LOOP PUSH 0,GR3 ; ループ先頭。GR2のビット中でGR3が示すビットが0の場合、NEXTへジャンプ + AND GR3,GR2 ; ↓ + POP GR3 ; ↓ + JZE NEXT ; ↓ + ADDL GR0,GR1 ; GR0 <- GR0 + GR1 + JOV FIN ; GR0がオーバーフローした場合、ループ脱出 +NEXT SLL GR3,1 ; GR3を1回左シフト + AND GR3,GR3 ; (GR3 = 0)の場合、ループ脱出 + JZE FIN ; ↓ + CPL GR3,GR2 ; (GR3 > GR2)の場合、ループ脱出 + JPL FIN ; ↓ + SLL GR1,1 ; GR1を1回左シフト + JOV FIN ; GR1がオーバーフローした場合、ループ脱出 + JUMP LOOP ; ループ終端 +FIN POP GR3 + POP GR1 + RET + END diff --git a/as/casl2lib/outa.casl b/as/casl2lib/outa.casl index 3f7793d..4d0f161 100644 --- a/as/casl2lib/outa.casl +++ b/as/casl2lib/outa.casl @@ -116,3 +116,20 @@ PO CPL GR3,GR2 ; ループ先頭。(GR3 = GR2)の場合、ル FIN RPOP RET END +;;; GR1を絶対値に変換する +;;; 入力 GR1:-32768〜32767の整数 +;;; 出力 GR1:入力された整数の絶対値 +;;; OF:入力されたGR1が-32768の場合、1 +;;; SF:入力されたGR1が負数(-32767〜-1)の場合、1 +ABS START + AND GR1,GR1 + JPL FIN + JZE FIN + XOR GR1,ALLON + ADDA GR1,ONE + JOV FIN + CPL GR1,ALLON +FIN RET +ONE DC 1 +ALLON DC #FFFF + END diff --git a/as/casl2lib/outa_src/Makefile b/as/casl2lib/outa_src/Makefile deleted file mode 100644 index 259e059..0000000 --- a/as/casl2lib/outa_src/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -TARGET = ../outa.casl -SRCFILE = outa_main.casl ../divl.casl ../rev.casl -include ../BUILD.mk diff --git a/as/casl2lib/inl_src/Makefile b/as/casl2lib/src_inl/Makefile similarity index 100% rename from as/casl2lib/inl_src/Makefile rename to as/casl2lib/src_inl/Makefile diff --git a/as/casl2lib/inl_src/inl_main.casl b/as/casl2lib/src_inl/inl_main.casl similarity index 77% rename from as/casl2lib/inl_src/inl_main.casl rename to as/casl2lib/src_inl/inl_main.casl index f40a303..84a78e9 100644 --- a/as/casl2lib/inl_src/inl_main.casl +++ b/as/casl2lib/src_inl/inl_main.casl @@ -1,6 +1,7 @@ -;;; 数値の入力を受け付ける +;;; 0〜65535の範囲にある整数の入力を受け付ける ;;; 入力 (SVC) -;;; 出力 GR1: 入力された数値 GR0: 文字の長さ +;;; 出力 GR1: 入力された数値 GR0: 文字の長さ。入力が数字以外の場合は、#FFFF +;;; 65536以上の正数が入力された場合はエラー INL START PUSH 0,GR2 PUSH 0,GR3 @@ -15,10 +16,10 @@ INL START STOL CPL GR4,ILEN ; ループ先頭。(GR4 = ILEN)の場合、ループ脱出 JZE CP ; ↓ LD GR1,IBUF,GR4 ; GR1に、入力文字列中の次の桁を格納 - CPL GR1,ZERO ; (GR1 < '0')の場合、IOVへジャンプ - JMI OV ; ↓ - CPL GR1,NINE ; (GR1 > '9')の場合、IOVへジャンプ - JPL OV ; ↓ + CPL GR1,ZERO ; (GR1 < '0')の場合、NANへジャンプ + JMI NAN ; ↓ + CPL GR1,NINE ; (GR1 > '9')の場合、NANへジャンプ + JPL NAN ; ↓ SUBL GR1,ZERO ; GR1の文字を、対応する数値に変換 ST GR4,NLEN ; GR4 <- ILEN - NLEN - 1 LD GR4,ILEN ; ↓ @@ -27,15 +28,16 @@ MUL10 CPA GR4,=1 ; ループ先頭。GR1 <- 10 ** GR4 JZE NEXT ; (GR4 = 1)の場合、ループ脱出 JMI NEXT ; ↓ CALL MULL ; MULLを呼び出し、GR0 <- GR1 * GR2 + JOV FIN ; ↓ LD GR1,GR0 ; GR1 <- GR0 LAD GR4,-1,GR4 ; GR4 <- GR4 -1 JUMP MUL10 ; ループ終端 NEXT LD GR4,NLEN ; GR4 <- NLEN。復元 ADDL GR3,GR1 ; GR3 <- GR3 + GR1 + JOV FIN ; ↓ LAD GR4,1,GR4 ; GR4 <- GR4 + 1 JUMP STOL ; ループ終端 -OV LAD GR0,#8000 ; GR0 <- 0。オーバーフローを強制的に発生させる - SLL GR0,1 ; ↓ +NAN LAD GR0,#FFFF ; GR0 <- #FFFF JUMP FIN ; FINへジャンプ CP LD GR1,GR3 ; GR0 <- GR3 LD GR0,ILEN ; GR0 <- ILEN @@ -49,3 +51,4 @@ IBUF DS 5 ILEN DS 1 NLEN DS 1 END + diff --git a/as/casl2lib/mula_src/Makefile b/as/casl2lib/src_mula/Makefile similarity index 100% rename from as/casl2lib/mula_src/Makefile rename to as/casl2lib/src_mula/Makefile diff --git a/as/casl2lib/mula_src/mula_main.casl b/as/casl2lib/src_mula/mula_main.casl similarity index 100% rename from as/casl2lib/mula_src/mula_main.casl rename to as/casl2lib/src_mula/mula_main.casl diff --git a/as/casl2lib/src_outa/Makefile b/as/casl2lib/src_outa/Makefile new file mode 100644 index 0000000..f44a6d7 --- /dev/null +++ b/as/casl2lib/src_outa/Makefile @@ -0,0 +1,3 @@ +TARGET = ../outa.casl +SRCFILE = outa_main.casl ../divl.casl ../rev.casl ../abs.casl +include ../BUILD.mk diff --git a/as/casl2lib/outa_src/outa_main.casl b/as/casl2lib/src_outa/outa_main.casl similarity index 100% rename from as/casl2lib/outa_src/outa_main.casl rename to as/casl2lib/src_outa/outa_main.casl diff --git a/as/casl2lib/outb_src/Makefile b/as/casl2lib/src_outb/Makefile similarity index 100% rename from as/casl2lib/outb_src/Makefile rename to as/casl2lib/src_outb/Makefile diff --git a/as/casl2lib/outb_src/outb_main.casl b/as/casl2lib/src_outb/outb_main.casl similarity index 100% rename from as/casl2lib/outb_src/outb_main.casl rename to as/casl2lib/src_outb/outb_main.casl diff --git a/as/casl2lib/outl_src/Makefile b/as/casl2lib/src_outl/Makefile similarity index 100% rename from as/casl2lib/outl_src/Makefile rename to as/casl2lib/src_outl/Makefile diff --git a/as/casl2lib/outl_src/outl_main.casl b/as/casl2lib/src_outl/outl_main.casl similarity index 100% rename from as/casl2lib/outl_src/outl_main.casl rename to as/casl2lib/src_outl/outl_main.casl diff --git a/as/casl2lib/test/Makefile b/as/casl2lib/test/Makefile new file mode 100644 index 0000000..22dd7ec --- /dev/null +++ b/as/casl2lib/test/Makefile @@ -0,0 +1,45 @@ +# テストグループ +# make : すべてのテストを実施し、ログを作成 +# make all : ↓ +# make clean : すべてのテストで、「make」で生成されたファイルをクリア +# make check : すべてのテストを実施 +# make cleanall: すべてのテストで、「make」と「make prepare」で生成されたファイルをクリア +# make prepare : すべてのテストの、想定結果を出力 +# make create : UNITNAMEで指定されたテストを新規に作成 +TESTS = `ls | grep "^[^A-Z].*"` +LOGFILE = Test.log + +.PHONY: all check report clean cleanall prepare create +all: check report +check: + @rm -f $(LOGFILE) + @for target in $(TESTS); do \ + $(MAKE) check -C $$target; \ + done +$(LOGFILE): + @for target in $(TESTS); do \ + cat <$$target/report.txt >>$(LOGFILE); \ + done +report: $(LOGFILE) + @success=`grep "Success" $(LOGFILE) | wc -l`; \ + all=`cat $(LOGFILE) | wc -l`; \ + echo "$$success / $$all tests passed. Details in `pwd`/$(LOGFILE)"; \ + if test $$success -eq $$all; then \ + echo "All tests are succeded."; \ + fi +clean: + @for target in $(TESTS); do $(MAKE) clean -C $$target; done + @rm -f $(LOGFILE) +cleanall: + @for target in $(TESTS); do $(MAKE) cleanall -C $$target; done + @rm -f $(LOGFILE) +prepare: + @for target in $(TESTS) ; do $(MAKE) prepare -C $$target ; done +create: +ifdef UNITNAME + @mkdir $(UNITNAME) + @echo 'CMD = ' >>$(UNITNAME)/Makefile; \ + echo 'include ../TEST.mk' >>$(UNITNAME)/Makefile +else + @echo "no test created. set UNITNAME" +endif diff --git a/as/casl2lib/test/abs/0.txt b/as/casl2lib/test/abs/0.txt new file mode 100644 index 0000000..727ae50 --- /dev/null +++ b/as/casl2lib/test/abs/0.txt @@ -0,0 +1,33 @@ +../../../../casl2 abs.casl ../../../../as/casl2lib/outa.casl +12 ++ +12 +-------- +-12 +- +12 +-------- +1 ++ +1 +-------- +-1 +- +1 +-------- +32767 ++ +32767 +-------- +-32767 +- +32767 +-------- +0 ++ +0 +-------- +-32768 +OV +-32768 +-------- diff --git a/as/casl2lib/test/abs/Makefile b/as/casl2lib/test/abs/Makefile new file mode 100644 index 0000000..decee5f --- /dev/null +++ b/as/casl2lib/test/abs/Makefile @@ -0,0 +1,6 @@ +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = abs.casl $(LIBDIR)/outa.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/casl2lib_driver/abs.casl b/as/casl2lib/test/abs/abs.casl similarity index 89% rename from as/casl2lib_driver/abs.casl rename to as/casl2lib/test/abs/abs.casl index 1d0c3b5..e16585b 100644 --- a/as/casl2lib_driver/abs.casl +++ b/as/casl2lib/test/abs/abs.casl @@ -1,10 +1,8 @@ ;;; ABSを呼び出す -;;; casl2 abs_call.casl abs.casl outa.casl MAIN START LAD GR2,0 MLOOP CPA GR2,MLEN JZE MFIN - OUT SEP,MLEN LD GR1,MVAL,GR2 CALL OUTA CALL ABS diff --git a/as/casl2lib/test/abs/abs_0/1.txt b/as/casl2lib/test/abs/abs_0/1.txt new file mode 100644 index 0000000..c69fa9c --- /dev/null +++ b/as/casl2lib/test/abs/abs_0/1.txt @@ -0,0 +1,41 @@ +../../../../casl2 ../../../../as/FUNC/abs_call.casl ../../../../as/FUNC/abs.casl ../../../../as/FUNC/outa_main.casl ../../../../as/FUNC/divl1.casl ../../../../as/FUNC/rev.casl +-------- +12 ++ +12 +-------- +-------- +-12 +- +12 +-------- +-------- +1 ++ +1 +-------- +-------- +-1 +- +1 +-------- +-------- +32767 ++ +32767 +-------- +-------- +-32767 +- +32767 +-------- +-------- +0 ++ +0 +-------- +-------- +-32768 +OV +-32768 +-------- diff --git a/as/casl2lib/test/abs/abs_0/Makefile b/as/casl2lib/test/abs/abs_0/Makefile new file mode 100644 index 0000000..a04bba4 --- /dev/null +++ b/as/casl2lib/test/abs/abs_0/Makefile @@ -0,0 +1,6 @@ +YACASL2DIR= ../../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = abs_0.casl $(LIBDIR)/outa.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/casl2lib_driver/abs0.casl b/as/casl2lib/test/abs/abs_0/abs_0.casl similarity index 100% rename from as/casl2lib_driver/abs0.casl rename to as/casl2lib/test/abs/abs_0/abs_0.casl diff --git a/as/casl2lib/test/abs/abs_0/report.txt b/as/casl2lib/test/abs/abs_0/report.txt new file mode 100644 index 0000000..26373a0 --- /dev/null +++ b/as/casl2lib/test/abs/abs_0/report.txt @@ -0,0 +1 @@ +abs_call: Test Success 2010-02-12 01:12:37 diff --git a/as/casl2lib/test/addl32/0.txt b/as/casl2lib/test/addl32/0.txt new file mode 100644 index 0000000..520fa7a --- /dev/null +++ b/as/casl2lib/test/addl32/0.txt @@ -0,0 +1,3 @@ +../../../../casl2 addl32_1.casl ../../../../as/casl2lib/addl32.casl ../../../../as/casl2lib/outl.casl +4 +9 diff --git a/as/casl2lib/test/addl32/Makefile b/as/casl2lib/test/addl32/Makefile new file mode 100644 index 0000000..96a4411 --- /dev/null +++ b/as/casl2lib/test/addl32/Makefile @@ -0,0 +1,6 @@ +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = addl32_1.casl $(LIBDIR)/addl32.casl $(LIBDIR)/outl.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/casl2lib_driver/addl32_0.casl b/as/casl2lib/test/addl32/addl32_0/addl32_0.casl similarity index 100% rename from as/casl2lib_driver/addl32_0.casl rename to as/casl2lib/test/addl32/addl32_0/addl32_0.casl diff --git a/as/casl2lib_driver/addl32.casl b/as/casl2lib/test/addl32/addl32_1.casl similarity index 100% rename from as/casl2lib_driver/addl32.casl rename to as/casl2lib/test/addl32/addl32_1.casl diff --git a/as/casl2lib/test/divl/0.txt b/as/casl2lib/test/divl/0.txt new file mode 100644 index 0000000..9c60439 --- /dev/null +++ b/as/casl2lib/test/divl/0.txt @@ -0,0 +1,5556 @@ +../../../../casl2 divl.casl ../../../../as/casl2lib/outl.casl +-------------------- +100 +0 +Error: div by 0 +-------------------- +100 +1 +100 +0 +-------------------- +100 +2 +50 +0 +-------------------- +100 +3 +33 +1 +-------------------- +100 +4 +25 +0 +-------------------- +100 +5 +20 +0 +-------------------- +100 +6 +16 +4 +-------------------- +100 +7 +14 +2 +-------------------- +100 +8 +12 +4 +-------------------- +100 +9 +11 +1 +-------------------- +100 +10 +10 +0 +-------------------- +-------------------- +99 +0 +Error: div by 0 +-------------------- +99 +1 +99 +0 +-------------------- +99 +2 +49 +1 +-------------------- +99 +3 +33 +0 +-------------------- +99 +4 +24 +3 +-------------------- +99 +5 +19 +4 +-------------------- +99 +6 +16 +3 +-------------------- +99 +7 +14 +1 +-------------------- +99 +8 +12 +3 +-------------------- +99 +9 +11 +0 +-------------------- +99 +10 +9 +9 +-------------------- +-------------------- +98 +0 +Error: div by 0 +-------------------- +98 +1 +98 +0 +-------------------- +98 +2 +49 +0 +-------------------- +98 +3 +32 +2 +-------------------- +98 +4 +24 +2 +-------------------- +98 +5 +19 +3 +-------------------- +98 +6 +16 +2 +-------------------- +98 +7 +14 +0 +-------------------- +98 +8 +12 +2 +-------------------- +98 +9 +10 +8 +-------------------- +98 +10 +9 +8 +-------------------- +-------------------- +97 +0 +Error: div by 0 +-------------------- +97 +1 +97 +0 +-------------------- +97 +2 +48 +1 +-------------------- +97 +3 +32 +1 +-------------------- +97 +4 +24 +1 +-------------------- +97 +5 +19 +2 +-------------------- +97 +6 +16 +1 +-------------------- +97 +7 +13 +6 +-------------------- +97 +8 +12 +1 +-------------------- +97 +9 +10 +7 +-------------------- +97 +10 +9 +7 +-------------------- +-------------------- +96 +0 +Error: div by 0 +-------------------- +96 +1 +96 +0 +-------------------- +96 +2 +48 +0 +-------------------- +96 +3 +32 +0 +-------------------- +96 +4 +24 +0 +-------------------- +96 +5 +19 +1 +-------------------- +96 +6 +16 +0 +-------------------- +96 +7 +13 +5 +-------------------- +96 +8 +12 +0 +-------------------- +96 +9 +10 +6 +-------------------- +96 +10 +9 +6 +-------------------- +-------------------- +95 +0 +Error: div by 0 +-------------------- +95 +1 +95 +0 +-------------------- +95 +2 +47 +1 +-------------------- +95 +3 +31 +2 +-------------------- +95 +4 +23 +3 +-------------------- +95 +5 +19 +0 +-------------------- +95 +6 +15 +5 +-------------------- +95 +7 +13 +4 +-------------------- +95 +8 +11 +7 +-------------------- +95 +9 +10 +5 +-------------------- +95 +10 +9 +5 +-------------------- +-------------------- +94 +0 +Error: div by 0 +-------------------- +94 +1 +94 +0 +-------------------- +94 +2 +47 +0 +-------------------- +94 +3 +31 +1 +-------------------- +94 +4 +23 +2 +-------------------- +94 +5 +18 +4 +-------------------- +94 +6 +15 +4 +-------------------- +94 +7 +13 +3 +-------------------- +94 +8 +11 +6 +-------------------- +94 +9 +10 +4 +-------------------- +94 +10 +9 +4 +-------------------- +-------------------- +93 +0 +Error: div by 0 +-------------------- +93 +1 +93 +0 +-------------------- +93 +2 +46 +1 +-------------------- +93 +3 +31 +0 +-------------------- +93 +4 +23 +1 +-------------------- +93 +5 +18 +3 +-------------------- +93 +6 +15 +3 +-------------------- +93 +7 +13 +2 +-------------------- +93 +8 +11 +5 +-------------------- +93 +9 +10 +3 +-------------------- +93 +10 +9 +3 +-------------------- +-------------------- +92 +0 +Error: div by 0 +-------------------- +92 +1 +92 +0 +-------------------- +92 +2 +46 +0 +-------------------- +92 +3 +30 +2 +-------------------- +92 +4 +23 +0 +-------------------- +92 +5 +18 +2 +-------------------- +92 +6 +15 +2 +-------------------- +92 +7 +13 +1 +-------------------- +92 +8 +11 +4 +-------------------- +92 +9 +10 +2 +-------------------- +92 +10 +9 +2 +-------------------- +-------------------- +91 +0 +Error: div by 0 +-------------------- +91 +1 +91 +0 +-------------------- +91 +2 +45 +1 +-------------------- +91 +3 +30 +1 +-------------------- +91 +4 +22 +3 +-------------------- +91 +5 +18 +1 +-------------------- +91 +6 +15 +1 +-------------------- +91 +7 +13 +0 +-------------------- +91 +8 +11 +3 +-------------------- +91 +9 +10 +1 +-------------------- +91 +10 +9 +1 +-------------------- +-------------------- +90 +0 +Error: div by 0 +-------------------- +90 +1 +90 +0 +-------------------- +90 +2 +45 +0 +-------------------- +90 +3 +30 +0 +-------------------- +90 +4 +22 +2 +-------------------- +90 +5 +18 +0 +-------------------- +90 +6 +15 +0 +-------------------- +90 +7 +12 +6 +-------------------- +90 +8 +11 +2 +-------------------- +90 +9 +10 +0 +-------------------- +90 +10 +9 +0 +-------------------- +-------------------- +89 +0 +Error: div by 0 +-------------------- +89 +1 +89 +0 +-------------------- +89 +2 +44 +1 +-------------------- +89 +3 +29 +2 +-------------------- +89 +4 +22 +1 +-------------------- +89 +5 +17 +4 +-------------------- +89 +6 +14 +5 +-------------------- +89 +7 +12 +5 +-------------------- +89 +8 +11 +1 +-------------------- +89 +9 +9 +8 +-------------------- +89 +10 +8 +9 +-------------------- +-------------------- +88 +0 +Error: div by 0 +-------------------- +88 +1 +88 +0 +-------------------- +88 +2 +44 +0 +-------------------- +88 +3 +29 +1 +-------------------- +88 +4 +22 +0 +-------------------- +88 +5 +17 +3 +-------------------- +88 +6 +14 +4 +-------------------- +88 +7 +12 +4 +-------------------- +88 +8 +11 +0 +-------------------- +88 +9 +9 +7 +-------------------- +88 +10 +8 +8 +-------------------- +-------------------- +87 +0 +Error: div by 0 +-------------------- +87 +1 +87 +0 +-------------------- +87 +2 +43 +1 +-------------------- +87 +3 +29 +0 +-------------------- +87 +4 +21 +3 +-------------------- +87 +5 +17 +2 +-------------------- +87 +6 +14 +3 +-------------------- +87 +7 +12 +3 +-------------------- +87 +8 +10 +7 +-------------------- +87 +9 +9 +6 +-------------------- +87 +10 +8 +7 +-------------------- +-------------------- +86 +0 +Error: div by 0 +-------------------- +86 +1 +86 +0 +-------------------- +86 +2 +43 +0 +-------------------- +86 +3 +28 +2 +-------------------- +86 +4 +21 +2 +-------------------- +86 +5 +17 +1 +-------------------- +86 +6 +14 +2 +-------------------- +86 +7 +12 +2 +-------------------- +86 +8 +10 +6 +-------------------- +86 +9 +9 +5 +-------------------- +86 +10 +8 +6 +-------------------- +-------------------- +85 +0 +Error: div by 0 +-------------------- +85 +1 +85 +0 +-------------------- +85 +2 +42 +1 +-------------------- +85 +3 +28 +1 +-------------------- +85 +4 +21 +1 +-------------------- +85 +5 +17 +0 +-------------------- +85 +6 +14 +1 +-------------------- +85 +7 +12 +1 +-------------------- +85 +8 +10 +5 +-------------------- +85 +9 +9 +4 +-------------------- +85 +10 +8 +5 +-------------------- +-------------------- +84 +0 +Error: div by 0 +-------------------- +84 +1 +84 +0 +-------------------- +84 +2 +42 +0 +-------------------- +84 +3 +28 +0 +-------------------- +84 +4 +21 +0 +-------------------- +84 +5 +16 +4 +-------------------- +84 +6 +14 +0 +-------------------- +84 +7 +12 +0 +-------------------- +84 +8 +10 +4 +-------------------- +84 +9 +9 +3 +-------------------- +84 +10 +8 +4 +-------------------- +-------------------- +83 +0 +Error: div by 0 +-------------------- +83 +1 +83 +0 +-------------------- +83 +2 +41 +1 +-------------------- +83 +3 +27 +2 +-------------------- +83 +4 +20 +3 +-------------------- +83 +5 +16 +3 +-------------------- +83 +6 +13 +5 +-------------------- +83 +7 +11 +6 +-------------------- +83 +8 +10 +3 +-------------------- +83 +9 +9 +2 +-------------------- +83 +10 +8 +3 +-------------------- +-------------------- +82 +0 +Error: div by 0 +-------------------- +82 +1 +82 +0 +-------------------- +82 +2 +41 +0 +-------------------- +82 +3 +27 +1 +-------------------- +82 +4 +20 +2 +-------------------- +82 +5 +16 +2 +-------------------- +82 +6 +13 +4 +-------------------- +82 +7 +11 +5 +-------------------- +82 +8 +10 +2 +-------------------- +82 +9 +9 +1 +-------------------- +82 +10 +8 +2 +-------------------- +-------------------- +81 +0 +Error: div by 0 +-------------------- +81 +1 +81 +0 +-------------------- +81 +2 +40 +1 +-------------------- +81 +3 +27 +0 +-------------------- +81 +4 +20 +1 +-------------------- +81 +5 +16 +1 +-------------------- +81 +6 +13 +3 +-------------------- +81 +7 +11 +4 +-------------------- +81 +8 +10 +1 +-------------------- +81 +9 +9 +0 +-------------------- +81 +10 +8 +1 +-------------------- +-------------------- +80 +0 +Error: div by 0 +-------------------- +80 +1 +80 +0 +-------------------- +80 +2 +40 +0 +-------------------- +80 +3 +26 +2 +-------------------- +80 +4 +20 +0 +-------------------- +80 +5 +16 +0 +-------------------- +80 +6 +13 +2 +-------------------- +80 +7 +11 +3 +-------------------- +80 +8 +10 +0 +-------------------- +80 +9 +8 +8 +-------------------- +80 +10 +8 +0 +-------------------- +-------------------- +79 +0 +Error: div by 0 +-------------------- +79 +1 +79 +0 +-------------------- +79 +2 +39 +1 +-------------------- +79 +3 +26 +1 +-------------------- +79 +4 +19 +3 +-------------------- +79 +5 +15 +4 +-------------------- +79 +6 +13 +1 +-------------------- +79 +7 +11 +2 +-------------------- +79 +8 +9 +7 +-------------------- +79 +9 +8 +7 +-------------------- +79 +10 +7 +9 +-------------------- +-------------------- +78 +0 +Error: div by 0 +-------------------- +78 +1 +78 +0 +-------------------- +78 +2 +39 +0 +-------------------- +78 +3 +26 +0 +-------------------- +78 +4 +19 +2 +-------------------- +78 +5 +15 +3 +-------------------- +78 +6 +13 +0 +-------------------- +78 +7 +11 +1 +-------------------- +78 +8 +9 +6 +-------------------- +78 +9 +8 +6 +-------------------- +78 +10 +7 +8 +-------------------- +-------------------- +77 +0 +Error: div by 0 +-------------------- +77 +1 +77 +0 +-------------------- +77 +2 +38 +1 +-------------------- +77 +3 +25 +2 +-------------------- +77 +4 +19 +1 +-------------------- +77 +5 +15 +2 +-------------------- +77 +6 +12 +5 +-------------------- +77 +7 +11 +0 +-------------------- +77 +8 +9 +5 +-------------------- +77 +9 +8 +5 +-------------------- +77 +10 +7 +7 +-------------------- +-------------------- +76 +0 +Error: div by 0 +-------------------- +76 +1 +76 +0 +-------------------- +76 +2 +38 +0 +-------------------- +76 +3 +25 +1 +-------------------- +76 +4 +19 +0 +-------------------- +76 +5 +15 +1 +-------------------- +76 +6 +12 +4 +-------------------- +76 +7 +10 +6 +-------------------- +76 +8 +9 +4 +-------------------- +76 +9 +8 +4 +-------------------- +76 +10 +7 +6 +-------------------- +-------------------- +75 +0 +Error: div by 0 +-------------------- +75 +1 +75 +0 +-------------------- +75 +2 +37 +1 +-------------------- +75 +3 +25 +0 +-------------------- +75 +4 +18 +3 +-------------------- +75 +5 +15 +0 +-------------------- +75 +6 +12 +3 +-------------------- +75 +7 +10 +5 +-------------------- +75 +8 +9 +3 +-------------------- +75 +9 +8 +3 +-------------------- +75 +10 +7 +5 +-------------------- +-------------------- +74 +0 +Error: div by 0 +-------------------- +74 +1 +74 +0 +-------------------- +74 +2 +37 +0 +-------------------- +74 +3 +24 +2 +-------------------- +74 +4 +18 +2 +-------------------- +74 +5 +14 +4 +-------------------- +74 +6 +12 +2 +-------------------- +74 +7 +10 +4 +-------------------- +74 +8 +9 +2 +-------------------- +74 +9 +8 +2 +-------------------- +74 +10 +7 +4 +-------------------- +-------------------- +73 +0 +Error: div by 0 +-------------------- +73 +1 +73 +0 +-------------------- +73 +2 +36 +1 +-------------------- +73 +3 +24 +1 +-------------------- +73 +4 +18 +1 +-------------------- +73 +5 +14 +3 +-------------------- +73 +6 +12 +1 +-------------------- +73 +7 +10 +3 +-------------------- +73 +8 +9 +1 +-------------------- +73 +9 +8 +1 +-------------------- +73 +10 +7 +3 +-------------------- +-------------------- +72 +0 +Error: div by 0 +-------------------- +72 +1 +72 +0 +-------------------- +72 +2 +36 +0 +-------------------- +72 +3 +24 +0 +-------------------- +72 +4 +18 +0 +-------------------- +72 +5 +14 +2 +-------------------- +72 +6 +12 +0 +-------------------- +72 +7 +10 +2 +-------------------- +72 +8 +9 +0 +-------------------- +72 +9 +8 +0 +-------------------- +72 +10 +7 +2 +-------------------- +-------------------- +71 +0 +Error: div by 0 +-------------------- +71 +1 +71 +0 +-------------------- +71 +2 +35 +1 +-------------------- +71 +3 +23 +2 +-------------------- +71 +4 +17 +3 +-------------------- +71 +5 +14 +1 +-------------------- +71 +6 +11 +5 +-------------------- +71 +7 +10 +1 +-------------------- +71 +8 +8 +7 +-------------------- +71 +9 +7 +8 +-------------------- +71 +10 +7 +1 +-------------------- +-------------------- +70 +0 +Error: div by 0 +-------------------- +70 +1 +70 +0 +-------------------- +70 +2 +35 +0 +-------------------- +70 +3 +23 +1 +-------------------- +70 +4 +17 +2 +-------------------- +70 +5 +14 +0 +-------------------- +70 +6 +11 +4 +-------------------- +70 +7 +10 +0 +-------------------- +70 +8 +8 +6 +-------------------- +70 +9 +7 +7 +-------------------- +70 +10 +7 +0 +-------------------- +-------------------- +69 +0 +Error: div by 0 +-------------------- +69 +1 +69 +0 +-------------------- +69 +2 +34 +1 +-------------------- +69 +3 +23 +0 +-------------------- +69 +4 +17 +1 +-------------------- +69 +5 +13 +4 +-------------------- +69 +6 +11 +3 +-------------------- +69 +7 +9 +6 +-------------------- +69 +8 +8 +5 +-------------------- +69 +9 +7 +6 +-------------------- +69 +10 +6 +9 +-------------------- +-------------------- +68 +0 +Error: div by 0 +-------------------- +68 +1 +68 +0 +-------------------- +68 +2 +34 +0 +-------------------- +68 +3 +22 +2 +-------------------- +68 +4 +17 +0 +-------------------- +68 +5 +13 +3 +-------------------- +68 +6 +11 +2 +-------------------- +68 +7 +9 +5 +-------------------- +68 +8 +8 +4 +-------------------- +68 +9 +7 +5 +-------------------- +68 +10 +6 +8 +-------------------- +-------------------- +67 +0 +Error: div by 0 +-------------------- +67 +1 +67 +0 +-------------------- +67 +2 +33 +1 +-------------------- +67 +3 +22 +1 +-------------------- +67 +4 +16 +3 +-------------------- +67 +5 +13 +2 +-------------------- +67 +6 +11 +1 +-------------------- +67 +7 +9 +4 +-------------------- +67 +8 +8 +3 +-------------------- +67 +9 +7 +4 +-------------------- +67 +10 +6 +7 +-------------------- +-------------------- +66 +0 +Error: div by 0 +-------------------- +66 +1 +66 +0 +-------------------- +66 +2 +33 +0 +-------------------- +66 +3 +22 +0 +-------------------- +66 +4 +16 +2 +-------------------- +66 +5 +13 +1 +-------------------- +66 +6 +11 +0 +-------------------- +66 +7 +9 +3 +-------------------- +66 +8 +8 +2 +-------------------- +66 +9 +7 +3 +-------------------- +66 +10 +6 +6 +-------------------- +-------------------- +65 +0 +Error: div by 0 +-------------------- +65 +1 +65 +0 +-------------------- +65 +2 +32 +1 +-------------------- +65 +3 +21 +2 +-------------------- +65 +4 +16 +1 +-------------------- +65 +5 +13 +0 +-------------------- +65 +6 +10 +5 +-------------------- +65 +7 +9 +2 +-------------------- +65 +8 +8 +1 +-------------------- +65 +9 +7 +2 +-------------------- +65 +10 +6 +5 +-------------------- +-------------------- +64 +0 +Error: div by 0 +-------------------- +64 +1 +64 +0 +-------------------- +64 +2 +32 +0 +-------------------- +64 +3 +21 +1 +-------------------- +64 +4 +16 +0 +-------------------- +64 +5 +12 +4 +-------------------- +64 +6 +10 +4 +-------------------- +64 +7 +9 +1 +-------------------- +64 +8 +8 +0 +-------------------- +64 +9 +7 +1 +-------------------- +64 +10 +6 +4 +-------------------- +-------------------- +63 +0 +Error: div by 0 +-------------------- +63 +1 +63 +0 +-------------------- +63 +2 +31 +1 +-------------------- +63 +3 +21 +0 +-------------------- +63 +4 +15 +3 +-------------------- +63 +5 +12 +3 +-------------------- +63 +6 +10 +3 +-------------------- +63 +7 +9 +0 +-------------------- +63 +8 +7 +7 +-------------------- +63 +9 +7 +0 +-------------------- +63 +10 +6 +3 +-------------------- +-------------------- +62 +0 +Error: div by 0 +-------------------- +62 +1 +62 +0 +-------------------- +62 +2 +31 +0 +-------------------- +62 +3 +20 +2 +-------------------- +62 +4 +15 +2 +-------------------- +62 +5 +12 +2 +-------------------- +62 +6 +10 +2 +-------------------- +62 +7 +8 +6 +-------------------- +62 +8 +7 +6 +-------------------- +62 +9 +6 +8 +-------------------- +62 +10 +6 +2 +-------------------- +-------------------- +61 +0 +Error: div by 0 +-------------------- +61 +1 +61 +0 +-------------------- +61 +2 +30 +1 +-------------------- +61 +3 +20 +1 +-------------------- +61 +4 +15 +1 +-------------------- +61 +5 +12 +1 +-------------------- +61 +6 +10 +1 +-------------------- +61 +7 +8 +5 +-------------------- +61 +8 +7 +5 +-------------------- +61 +9 +6 +7 +-------------------- +61 +10 +6 +1 +-------------------- +-------------------- +60 +0 +Error: div by 0 +-------------------- +60 +1 +60 +0 +-------------------- +60 +2 +30 +0 +-------------------- +60 +3 +20 +0 +-------------------- +60 +4 +15 +0 +-------------------- +60 +5 +12 +0 +-------------------- +60 +6 +10 +0 +-------------------- +60 +7 +8 +4 +-------------------- +60 +8 +7 +4 +-------------------- +60 +9 +6 +6 +-------------------- +60 +10 +6 +0 +-------------------- +-------------------- +59 +0 +Error: div by 0 +-------------------- +59 +1 +59 +0 +-------------------- +59 +2 +29 +1 +-------------------- +59 +3 +19 +2 +-------------------- +59 +4 +14 +3 +-------------------- +59 +5 +11 +4 +-------------------- +59 +6 +9 +5 +-------------------- +59 +7 +8 +3 +-------------------- +59 +8 +7 +3 +-------------------- +59 +9 +6 +5 +-------------------- +59 +10 +5 +9 +-------------------- +-------------------- +58 +0 +Error: div by 0 +-------------------- +58 +1 +58 +0 +-------------------- +58 +2 +29 +0 +-------------------- +58 +3 +19 +1 +-------------------- +58 +4 +14 +2 +-------------------- +58 +5 +11 +3 +-------------------- +58 +6 +9 +4 +-------------------- +58 +7 +8 +2 +-------------------- +58 +8 +7 +2 +-------------------- +58 +9 +6 +4 +-------------------- +58 +10 +5 +8 +-------------------- +-------------------- +57 +0 +Error: div by 0 +-------------------- +57 +1 +57 +0 +-------------------- +57 +2 +28 +1 +-------------------- +57 +3 +19 +0 +-------------------- +57 +4 +14 +1 +-------------------- +57 +5 +11 +2 +-------------------- +57 +6 +9 +3 +-------------------- +57 +7 +8 +1 +-------------------- +57 +8 +7 +1 +-------------------- +57 +9 +6 +3 +-------------------- +57 +10 +5 +7 +-------------------- +-------------------- +56 +0 +Error: div by 0 +-------------------- +56 +1 +56 +0 +-------------------- +56 +2 +28 +0 +-------------------- +56 +3 +18 +2 +-------------------- +56 +4 +14 +0 +-------------------- +56 +5 +11 +1 +-------------------- +56 +6 +9 +2 +-------------------- +56 +7 +8 +0 +-------------------- +56 +8 +7 +0 +-------------------- +56 +9 +6 +2 +-------------------- +56 +10 +5 +6 +-------------------- +-------------------- +55 +0 +Error: div by 0 +-------------------- +55 +1 +55 +0 +-------------------- +55 +2 +27 +1 +-------------------- +55 +3 +18 +1 +-------------------- +55 +4 +13 +3 +-------------------- +55 +5 +11 +0 +-------------------- +55 +6 +9 +1 +-------------------- +55 +7 +7 +6 +-------------------- +55 +8 +6 +7 +-------------------- +55 +9 +6 +1 +-------------------- +55 +10 +5 +5 +-------------------- +-------------------- +54 +0 +Error: div by 0 +-------------------- +54 +1 +54 +0 +-------------------- +54 +2 +27 +0 +-------------------- +54 +3 +18 +0 +-------------------- +54 +4 +13 +2 +-------------------- +54 +5 +10 +4 +-------------------- +54 +6 +9 +0 +-------------------- +54 +7 +7 +5 +-------------------- +54 +8 +6 +6 +-------------------- +54 +9 +6 +0 +-------------------- +54 +10 +5 +4 +-------------------- +-------------------- +53 +0 +Error: div by 0 +-------------------- +53 +1 +53 +0 +-------------------- +53 +2 +26 +1 +-------------------- +53 +3 +17 +2 +-------------------- +53 +4 +13 +1 +-------------------- +53 +5 +10 +3 +-------------------- +53 +6 +8 +5 +-------------------- +53 +7 +7 +4 +-------------------- +53 +8 +6 +5 +-------------------- +53 +9 +5 +8 +-------------------- +53 +10 +5 +3 +-------------------- +-------------------- +52 +0 +Error: div by 0 +-------------------- +52 +1 +52 +0 +-------------------- +52 +2 +26 +0 +-------------------- +52 +3 +17 +1 +-------------------- +52 +4 +13 +0 +-------------------- +52 +5 +10 +2 +-------------------- +52 +6 +8 +4 +-------------------- +52 +7 +7 +3 +-------------------- +52 +8 +6 +4 +-------------------- +52 +9 +5 +7 +-------------------- +52 +10 +5 +2 +-------------------- +-------------------- +51 +0 +Error: div by 0 +-------------------- +51 +1 +51 +0 +-------------------- +51 +2 +25 +1 +-------------------- +51 +3 +17 +0 +-------------------- +51 +4 +12 +3 +-------------------- +51 +5 +10 +1 +-------------------- +51 +6 +8 +3 +-------------------- +51 +7 +7 +2 +-------------------- +51 +8 +6 +3 +-------------------- +51 +9 +5 +6 +-------------------- +51 +10 +5 +1 +-------------------- +-------------------- +50 +0 +Error: div by 0 +-------------------- +50 +1 +50 +0 +-------------------- +50 +2 +25 +0 +-------------------- +50 +3 +16 +2 +-------------------- +50 +4 +12 +2 +-------------------- +50 +5 +10 +0 +-------------------- +50 +6 +8 +2 +-------------------- +50 +7 +7 +1 +-------------------- +50 +8 +6 +2 +-------------------- +50 +9 +5 +5 +-------------------- +50 +10 +5 +0 +-------------------- +-------------------- +49 +0 +Error: div by 0 +-------------------- +49 +1 +49 +0 +-------------------- +49 +2 +24 +1 +-------------------- +49 +3 +16 +1 +-------------------- +49 +4 +12 +1 +-------------------- +49 +5 +9 +4 +-------------------- +49 +6 +8 +1 +-------------------- +49 +7 +7 +0 +-------------------- +49 +8 +6 +1 +-------------------- +49 +9 +5 +4 +-------------------- +49 +10 +4 +9 +-------------------- +-------------------- +48 +0 +Error: div by 0 +-------------------- +48 +1 +48 +0 +-------------------- +48 +2 +24 +0 +-------------------- +48 +3 +16 +0 +-------------------- +48 +4 +12 +0 +-------------------- +48 +5 +9 +3 +-------------------- +48 +6 +8 +0 +-------------------- +48 +7 +6 +6 +-------------------- +48 +8 +6 +0 +-------------------- +48 +9 +5 +3 +-------------------- +48 +10 +4 +8 +-------------------- +-------------------- +47 +0 +Error: div by 0 +-------------------- +47 +1 +47 +0 +-------------------- +47 +2 +23 +1 +-------------------- +47 +3 +15 +2 +-------------------- +47 +4 +11 +3 +-------------------- +47 +5 +9 +2 +-------------------- +47 +6 +7 +5 +-------------------- +47 +7 +6 +5 +-------------------- +47 +8 +5 +7 +-------------------- +47 +9 +5 +2 +-------------------- +47 +10 +4 +7 +-------------------- +-------------------- +46 +0 +Error: div by 0 +-------------------- +46 +1 +46 +0 +-------------------- +46 +2 +23 +0 +-------------------- +46 +3 +15 +1 +-------------------- +46 +4 +11 +2 +-------------------- +46 +5 +9 +1 +-------------------- +46 +6 +7 +4 +-------------------- +46 +7 +6 +4 +-------------------- +46 +8 +5 +6 +-------------------- +46 +9 +5 +1 +-------------------- +46 +10 +4 +6 +-------------------- +-------------------- +45 +0 +Error: div by 0 +-------------------- +45 +1 +45 +0 +-------------------- +45 +2 +22 +1 +-------------------- +45 +3 +15 +0 +-------------------- +45 +4 +11 +1 +-------------------- +45 +5 +9 +0 +-------------------- +45 +6 +7 +3 +-------------------- +45 +7 +6 +3 +-------------------- +45 +8 +5 +5 +-------------------- +45 +9 +5 +0 +-------------------- +45 +10 +4 +5 +-------------------- +-------------------- +44 +0 +Error: div by 0 +-------------------- +44 +1 +44 +0 +-------------------- +44 +2 +22 +0 +-------------------- +44 +3 +14 +2 +-------------------- +44 +4 +11 +0 +-------------------- +44 +5 +8 +4 +-------------------- +44 +6 +7 +2 +-------------------- +44 +7 +6 +2 +-------------------- +44 +8 +5 +4 +-------------------- +44 +9 +4 +8 +-------------------- +44 +10 +4 +4 +-------------------- +-------------------- +43 +0 +Error: div by 0 +-------------------- +43 +1 +43 +0 +-------------------- +43 +2 +21 +1 +-------------------- +43 +3 +14 +1 +-------------------- +43 +4 +10 +3 +-------------------- +43 +5 +8 +3 +-------------------- +43 +6 +7 +1 +-------------------- +43 +7 +6 +1 +-------------------- +43 +8 +5 +3 +-------------------- +43 +9 +4 +7 +-------------------- +43 +10 +4 +3 +-------------------- +-------------------- +42 +0 +Error: div by 0 +-------------------- +42 +1 +42 +0 +-------------------- +42 +2 +21 +0 +-------------------- +42 +3 +14 +0 +-------------------- +42 +4 +10 +2 +-------------------- +42 +5 +8 +2 +-------------------- +42 +6 +7 +0 +-------------------- +42 +7 +6 +0 +-------------------- +42 +8 +5 +2 +-------------------- +42 +9 +4 +6 +-------------------- +42 +10 +4 +2 +-------------------- +-------------------- +41 +0 +Error: div by 0 +-------------------- +41 +1 +41 +0 +-------------------- +41 +2 +20 +1 +-------------------- +41 +3 +13 +2 +-------------------- +41 +4 +10 +1 +-------------------- +41 +5 +8 +1 +-------------------- +41 +6 +6 +5 +-------------------- +41 +7 +5 +6 +-------------------- +41 +8 +5 +1 +-------------------- +41 +9 +4 +5 +-------------------- +41 +10 +4 +1 +-------------------- +-------------------- +40 +0 +Error: div by 0 +-------------------- +40 +1 +40 +0 +-------------------- +40 +2 +20 +0 +-------------------- +40 +3 +13 +1 +-------------------- +40 +4 +10 +0 +-------------------- +40 +5 +8 +0 +-------------------- +40 +6 +6 +4 +-------------------- +40 +7 +5 +5 +-------------------- +40 +8 +5 +0 +-------------------- +40 +9 +4 +4 +-------------------- +40 +10 +4 +0 +-------------------- +-------------------- +39 +0 +Error: div by 0 +-------------------- +39 +1 +39 +0 +-------------------- +39 +2 +19 +1 +-------------------- +39 +3 +13 +0 +-------------------- +39 +4 +9 +3 +-------------------- +39 +5 +7 +4 +-------------------- +39 +6 +6 +3 +-------------------- +39 +7 +5 +4 +-------------------- +39 +8 +4 +7 +-------------------- +39 +9 +4 +3 +-------------------- +39 +10 +3 +9 +-------------------- +-------------------- +38 +0 +Error: div by 0 +-------------------- +38 +1 +38 +0 +-------------------- +38 +2 +19 +0 +-------------------- +38 +3 +12 +2 +-------------------- +38 +4 +9 +2 +-------------------- +38 +5 +7 +3 +-------------------- +38 +6 +6 +2 +-------------------- +38 +7 +5 +3 +-------------------- +38 +8 +4 +6 +-------------------- +38 +9 +4 +2 +-------------------- +38 +10 +3 +8 +-------------------- +-------------------- +37 +0 +Error: div by 0 +-------------------- +37 +1 +37 +0 +-------------------- +37 +2 +18 +1 +-------------------- +37 +3 +12 +1 +-------------------- +37 +4 +9 +1 +-------------------- +37 +5 +7 +2 +-------------------- +37 +6 +6 +1 +-------------------- +37 +7 +5 +2 +-------------------- +37 +8 +4 +5 +-------------------- +37 +9 +4 +1 +-------------------- +37 +10 +3 +7 +-------------------- +-------------------- +36 +0 +Error: div by 0 +-------------------- +36 +1 +36 +0 +-------------------- +36 +2 +18 +0 +-------------------- +36 +3 +12 +0 +-------------------- +36 +4 +9 +0 +-------------------- +36 +5 +7 +1 +-------------------- +36 +6 +6 +0 +-------------------- +36 +7 +5 +1 +-------------------- +36 +8 +4 +4 +-------------------- +36 +9 +4 +0 +-------------------- +36 +10 +3 +6 +-------------------- +-------------------- +35 +0 +Error: div by 0 +-------------------- +35 +1 +35 +0 +-------------------- +35 +2 +17 +1 +-------------------- +35 +3 +11 +2 +-------------------- +35 +4 +8 +3 +-------------------- +35 +5 +7 +0 +-------------------- +35 +6 +5 +5 +-------------------- +35 +7 +5 +0 +-------------------- +35 +8 +4 +3 +-------------------- +35 +9 +3 +8 +-------------------- +35 +10 +3 +5 +-------------------- +-------------------- +34 +0 +Error: div by 0 +-------------------- +34 +1 +34 +0 +-------------------- +34 +2 +17 +0 +-------------------- +34 +3 +11 +1 +-------------------- +34 +4 +8 +2 +-------------------- +34 +5 +6 +4 +-------------------- +34 +6 +5 +4 +-------------------- +34 +7 +4 +6 +-------------------- +34 +8 +4 +2 +-------------------- +34 +9 +3 +7 +-------------------- +34 +10 +3 +4 +-------------------- +-------------------- +33 +0 +Error: div by 0 +-------------------- +33 +1 +33 +0 +-------------------- +33 +2 +16 +1 +-------------------- +33 +3 +11 +0 +-------------------- +33 +4 +8 +1 +-------------------- +33 +5 +6 +3 +-------------------- +33 +6 +5 +3 +-------------------- +33 +7 +4 +5 +-------------------- +33 +8 +4 +1 +-------------------- +33 +9 +3 +6 +-------------------- +33 +10 +3 +3 +-------------------- +-------------------- +32 +0 +Error: div by 0 +-------------------- +32 +1 +32 +0 +-------------------- +32 +2 +16 +0 +-------------------- +32 +3 +10 +2 +-------------------- +32 +4 +8 +0 +-------------------- +32 +5 +6 +2 +-------------------- +32 +6 +5 +2 +-------------------- +32 +7 +4 +4 +-------------------- +32 +8 +4 +0 +-------------------- +32 +9 +3 +5 +-------------------- +32 +10 +3 +2 +-------------------- +-------------------- +31 +0 +Error: div by 0 +-------------------- +31 +1 +31 +0 +-------------------- +31 +2 +15 +1 +-------------------- +31 +3 +10 +1 +-------------------- +31 +4 +7 +3 +-------------------- +31 +5 +6 +1 +-------------------- +31 +6 +5 +1 +-------------------- +31 +7 +4 +3 +-------------------- +31 +8 +3 +7 +-------------------- +31 +9 +3 +4 +-------------------- +31 +10 +3 +1 +-------------------- +-------------------- +30 +0 +Error: div by 0 +-------------------- +30 +1 +30 +0 +-------------------- +30 +2 +15 +0 +-------------------- +30 +3 +10 +0 +-------------------- +30 +4 +7 +2 +-------------------- +30 +5 +6 +0 +-------------------- +30 +6 +5 +0 +-------------------- +30 +7 +4 +2 +-------------------- +30 +8 +3 +6 +-------------------- +30 +9 +3 +3 +-------------------- +30 +10 +3 +0 +-------------------- +-------------------- +29 +0 +Error: div by 0 +-------------------- +29 +1 +29 +0 +-------------------- +29 +2 +14 +1 +-------------------- +29 +3 +9 +2 +-------------------- +29 +4 +7 +1 +-------------------- +29 +5 +5 +4 +-------------------- +29 +6 +4 +5 +-------------------- +29 +7 +4 +1 +-------------------- +29 +8 +3 +5 +-------------------- +29 +9 +3 +2 +-------------------- +29 +10 +2 +9 +-------------------- +-------------------- +28 +0 +Error: div by 0 +-------------------- +28 +1 +28 +0 +-------------------- +28 +2 +14 +0 +-------------------- +28 +3 +9 +1 +-------------------- +28 +4 +7 +0 +-------------------- +28 +5 +5 +3 +-------------------- +28 +6 +4 +4 +-------------------- +28 +7 +4 +0 +-------------------- +28 +8 +3 +4 +-------------------- +28 +9 +3 +1 +-------------------- +28 +10 +2 +8 +-------------------- +-------------------- +27 +0 +Error: div by 0 +-------------------- +27 +1 +27 +0 +-------------------- +27 +2 +13 +1 +-------------------- +27 +3 +9 +0 +-------------------- +27 +4 +6 +3 +-------------------- +27 +5 +5 +2 +-------------------- +27 +6 +4 +3 +-------------------- +27 +7 +3 +6 +-------------------- +27 +8 +3 +3 +-------------------- +27 +9 +3 +0 +-------------------- +27 +10 +2 +7 +-------------------- +-------------------- +26 +0 +Error: div by 0 +-------------------- +26 +1 +26 +0 +-------------------- +26 +2 +13 +0 +-------------------- +26 +3 +8 +2 +-------------------- +26 +4 +6 +2 +-------------------- +26 +5 +5 +1 +-------------------- +26 +6 +4 +2 +-------------------- +26 +7 +3 +5 +-------------------- +26 +8 +3 +2 +-------------------- +26 +9 +2 +8 +-------------------- +26 +10 +2 +6 +-------------------- +-------------------- +25 +0 +Error: div by 0 +-------------------- +25 +1 +25 +0 +-------------------- +25 +2 +12 +1 +-------------------- +25 +3 +8 +1 +-------------------- +25 +4 +6 +1 +-------------------- +25 +5 +5 +0 +-------------------- +25 +6 +4 +1 +-------------------- +25 +7 +3 +4 +-------------------- +25 +8 +3 +1 +-------------------- +25 +9 +2 +7 +-------------------- +25 +10 +2 +5 +-------------------- +-------------------- +24 +0 +Error: div by 0 +-------------------- +24 +1 +24 +0 +-------------------- +24 +2 +12 +0 +-------------------- +24 +3 +8 +0 +-------------------- +24 +4 +6 +0 +-------------------- +24 +5 +4 +4 +-------------------- +24 +6 +4 +0 +-------------------- +24 +7 +3 +3 +-------------------- +24 +8 +3 +0 +-------------------- +24 +9 +2 +6 +-------------------- +24 +10 +2 +4 +-------------------- +-------------------- +23 +0 +Error: div by 0 +-------------------- +23 +1 +23 +0 +-------------------- +23 +2 +11 +1 +-------------------- +23 +3 +7 +2 +-------------------- +23 +4 +5 +3 +-------------------- +23 +5 +4 +3 +-------------------- +23 +6 +3 +5 +-------------------- +23 +7 +3 +2 +-------------------- +23 +8 +2 +7 +-------------------- +23 +9 +2 +5 +-------------------- +23 +10 +2 +3 +-------------------- +-------------------- +22 +0 +Error: div by 0 +-------------------- +22 +1 +22 +0 +-------------------- +22 +2 +11 +0 +-------------------- +22 +3 +7 +1 +-------------------- +22 +4 +5 +2 +-------------------- +22 +5 +4 +2 +-------------------- +22 +6 +3 +4 +-------------------- +22 +7 +3 +1 +-------------------- +22 +8 +2 +6 +-------------------- +22 +9 +2 +4 +-------------------- +22 +10 +2 +2 +-------------------- +-------------------- +21 +0 +Error: div by 0 +-------------------- +21 +1 +21 +0 +-------------------- +21 +2 +10 +1 +-------------------- +21 +3 +7 +0 +-------------------- +21 +4 +5 +1 +-------------------- +21 +5 +4 +1 +-------------------- +21 +6 +3 +3 +-------------------- +21 +7 +3 +0 +-------------------- +21 +8 +2 +5 +-------------------- +21 +9 +2 +3 +-------------------- +21 +10 +2 +1 +-------------------- +-------------------- +20 +0 +Error: div by 0 +-------------------- +20 +1 +20 +0 +-------------------- +20 +2 +10 +0 +-------------------- +20 +3 +6 +2 +-------------------- +20 +4 +5 +0 +-------------------- +20 +5 +4 +0 +-------------------- +20 +6 +3 +2 +-------------------- +20 +7 +2 +6 +-------------------- +20 +8 +2 +4 +-------------------- +20 +9 +2 +2 +-------------------- +20 +10 +2 +0 +-------------------- +-------------------- +19 +0 +Error: div by 0 +-------------------- +19 +1 +19 +0 +-------------------- +19 +2 +9 +1 +-------------------- +19 +3 +6 +1 +-------------------- +19 +4 +4 +3 +-------------------- +19 +5 +3 +4 +-------------------- +19 +6 +3 +1 +-------------------- +19 +7 +2 +5 +-------------------- +19 +8 +2 +3 +-------------------- +19 +9 +2 +1 +-------------------- +19 +10 +1 +9 +-------------------- +-------------------- +18 +0 +Error: div by 0 +-------------------- +18 +1 +18 +0 +-------------------- +18 +2 +9 +0 +-------------------- +18 +3 +6 +0 +-------------------- +18 +4 +4 +2 +-------------------- +18 +5 +3 +3 +-------------------- +18 +6 +3 +0 +-------------------- +18 +7 +2 +4 +-------------------- +18 +8 +2 +2 +-------------------- +18 +9 +2 +0 +-------------------- +18 +10 +1 +8 +-------------------- +-------------------- +17 +0 +Error: div by 0 +-------------------- +17 +1 +17 +0 +-------------------- +17 +2 +8 +1 +-------------------- +17 +3 +5 +2 +-------------------- +17 +4 +4 +1 +-------------------- +17 +5 +3 +2 +-------------------- +17 +6 +2 +5 +-------------------- +17 +7 +2 +3 +-------------------- +17 +8 +2 +1 +-------------------- +17 +9 +1 +8 +-------------------- +17 +10 +1 +7 +-------------------- +-------------------- +16 +0 +Error: div by 0 +-------------------- +16 +1 +16 +0 +-------------------- +16 +2 +8 +0 +-------------------- +16 +3 +5 +1 +-------------------- +16 +4 +4 +0 +-------------------- +16 +5 +3 +1 +-------------------- +16 +6 +2 +4 +-------------------- +16 +7 +2 +2 +-------------------- +16 +8 +2 +0 +-------------------- +16 +9 +1 +7 +-------------------- +16 +10 +1 +6 +-------------------- +-------------------- +15 +0 +Error: div by 0 +-------------------- +15 +1 +15 +0 +-------------------- +15 +2 +7 +1 +-------------------- +15 +3 +5 +0 +-------------------- +15 +4 +3 +3 +-------------------- +15 +5 +3 +0 +-------------------- +15 +6 +2 +3 +-------------------- +15 +7 +2 +1 +-------------------- +15 +8 +1 +7 +-------------------- +15 +9 +1 +6 +-------------------- +15 +10 +1 +5 +-------------------- +-------------------- +14 +0 +Error: div by 0 +-------------------- +14 +1 +14 +0 +-------------------- +14 +2 +7 +0 +-------------------- +14 +3 +4 +2 +-------------------- +14 +4 +3 +2 +-------------------- +14 +5 +2 +4 +-------------------- +14 +6 +2 +2 +-------------------- +14 +7 +2 +0 +-------------------- +14 +8 +1 +6 +-------------------- +14 +9 +1 +5 +-------------------- +14 +10 +1 +4 +-------------------- +-------------------- +13 +0 +Error: div by 0 +-------------------- +13 +1 +13 +0 +-------------------- +13 +2 +6 +1 +-------------------- +13 +3 +4 +1 +-------------------- +13 +4 +3 +1 +-------------------- +13 +5 +2 +3 +-------------------- +13 +6 +2 +1 +-------------------- +13 +7 +1 +6 +-------------------- +13 +8 +1 +5 +-------------------- +13 +9 +1 +4 +-------------------- +13 +10 +1 +3 +-------------------- +-------------------- +12 +0 +Error: div by 0 +-------------------- +12 +1 +12 +0 +-------------------- +12 +2 +6 +0 +-------------------- +12 +3 +4 +0 +-------------------- +12 +4 +3 +0 +-------------------- +12 +5 +2 +2 +-------------------- +12 +6 +2 +0 +-------------------- +12 +7 +1 +5 +-------------------- +12 +8 +1 +4 +-------------------- +12 +9 +1 +3 +-------------------- +12 +10 +1 +2 +-------------------- +-------------------- +11 +0 +Error: div by 0 +-------------------- +11 +1 +11 +0 +-------------------- +11 +2 +5 +1 +-------------------- +11 +3 +3 +2 +-------------------- +11 +4 +2 +3 +-------------------- +11 +5 +2 +1 +-------------------- +11 +6 +1 +5 +-------------------- +11 +7 +1 +4 +-------------------- +11 +8 +1 +3 +-------------------- +11 +9 +1 +2 +-------------------- +11 +10 +1 +1 +-------------------- +-------------------- +10 +0 +Error: div by 0 +-------------------- +10 +1 +10 +0 +-------------------- +10 +2 +5 +0 +-------------------- +10 +3 +3 +1 +-------------------- +10 +4 +2 +2 +-------------------- +10 +5 +2 +0 +-------------------- +10 +6 +1 +4 +-------------------- +10 +7 +1 +3 +-------------------- +10 +8 +1 +2 +-------------------- +10 +9 +1 +1 +-------------------- +10 +10 +1 +0 +-------------------- +-------------------- +9 +0 +Error: div by 0 +-------------------- +9 +1 +9 +0 +-------------------- +9 +2 +4 +1 +-------------------- +9 +3 +3 +0 +-------------------- +9 +4 +2 +1 +-------------------- +9 +5 +1 +4 +-------------------- +9 +6 +1 +3 +-------------------- +9 +7 +1 +2 +-------------------- +9 +8 +1 +1 +-------------------- +9 +9 +1 +0 +-------------------- +9 +10 +0 +9 +-------------------- +-------------------- +8 +0 +Error: div by 0 +-------------------- +8 +1 +8 +0 +-------------------- +8 +2 +4 +0 +-------------------- +8 +3 +2 +2 +-------------------- +8 +4 +2 +0 +-------------------- +8 +5 +1 +3 +-------------------- +8 +6 +1 +2 +-------------------- +8 +7 +1 +1 +-------------------- +8 +8 +1 +0 +-------------------- +8 +9 +0 +8 +-------------------- +8 +10 +0 +8 +-------------------- +-------------------- +7 +0 +Error: div by 0 +-------------------- +7 +1 +7 +0 +-------------------- +7 +2 +3 +1 +-------------------- +7 +3 +2 +1 +-------------------- +7 +4 +1 +3 +-------------------- +7 +5 +1 +2 +-------------------- +7 +6 +1 +1 +-------------------- +7 +7 +1 +0 +-------------------- +7 +8 +0 +7 +-------------------- +7 +9 +0 +7 +-------------------- +7 +10 +0 +7 +-------------------- +-------------------- +6 +0 +Error: div by 0 +-------------------- +6 +1 +6 +0 +-------------------- +6 +2 +3 +0 +-------------------- +6 +3 +2 +0 +-------------------- +6 +4 +1 +2 +-------------------- +6 +5 +1 +1 +-------------------- +6 +6 +1 +0 +-------------------- +6 +7 +0 +6 +-------------------- +6 +8 +0 +6 +-------------------- +6 +9 +0 +6 +-------------------- +6 +10 +0 +6 +-------------------- +-------------------- +5 +0 +Error: div by 0 +-------------------- +5 +1 +5 +0 +-------------------- +5 +2 +2 +1 +-------------------- +5 +3 +1 +2 +-------------------- +5 +4 +1 +1 +-------------------- +5 +5 +1 +0 +-------------------- +5 +6 +0 +5 +-------------------- +5 +7 +0 +5 +-------------------- +5 +8 +0 +5 +-------------------- +5 +9 +0 +5 +-------------------- +5 +10 +0 +5 +-------------------- +-------------------- +4 +0 +Error: div by 0 +-------------------- +4 +1 +4 +0 +-------------------- +4 +2 +2 +0 +-------------------- +4 +3 +1 +1 +-------------------- +4 +4 +1 +0 +-------------------- +4 +5 +0 +4 +-------------------- +4 +6 +0 +4 +-------------------- +4 +7 +0 +4 +-------------------- +4 +8 +0 +4 +-------------------- +4 +9 +0 +4 +-------------------- +4 +10 +0 +4 +-------------------- +-------------------- +3 +0 +Error: div by 0 +-------------------- +3 +1 +3 +0 +-------------------- +3 +2 +1 +1 +-------------------- +3 +3 +1 +0 +-------------------- +3 +4 +0 +3 +-------------------- +3 +5 +0 +3 +-------------------- +3 +6 +0 +3 +-------------------- +3 +7 +0 +3 +-------------------- +3 +8 +0 +3 +-------------------- +3 +9 +0 +3 +-------------------- +3 +10 +0 +3 +-------------------- +-------------------- +2 +0 +Error: div by 0 +-------------------- +2 +1 +2 +0 +-------------------- +2 +2 +1 +0 +-------------------- +2 +3 +0 +2 +-------------------- +2 +4 +0 +2 +-------------------- +2 +5 +0 +2 +-------------------- +2 +6 +0 +2 +-------------------- +2 +7 +0 +2 +-------------------- +2 +8 +0 +2 +-------------------- +2 +9 +0 +2 +-------------------- +2 +10 +0 +2 +-------------------- +-------------------- +1 +0 +Error: div by 0 +-------------------- +1 +1 +1 +0 +-------------------- +1 +2 +0 +1 +-------------------- +1 +3 +0 +1 +-------------------- +1 +4 +0 +1 +-------------------- +1 +5 +0 +1 +-------------------- +1 +6 +0 +1 +-------------------- +1 +7 +0 +1 +-------------------- +1 +8 +0 +1 +-------------------- +1 +9 +0 +1 +-------------------- +1 +10 +0 +1 +-------------------- +-------------------- +0 +0 +Error: div by 0 +-------------------- +0 +1 +0 +0 +-------------------- +0 +2 +0 +0 +-------------------- +0 +3 +0 +0 +-------------------- +0 +4 +0 +0 +-------------------- +0 +5 +0 +0 +-------------------- +0 +6 +0 +0 +-------------------- +0 +7 +0 +0 +-------------------- +0 +8 +0 +0 +-------------------- +0 +9 +0 +0 +-------------------- +0 +10 +0 +0 +-------------------- diff --git a/as/casl2lib/test/divl/Makefile b/as/casl2lib/test/divl/Makefile new file mode 100644 index 0000000..3644cb3 --- /dev/null +++ b/as/casl2lib/test/divl/Makefile @@ -0,0 +1,6 @@ +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = divl.casl $(LIBDIR)/outl.casl # DIVLは、outl.caslに含まれる +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/casl2lib_driver/divl.casl b/as/casl2lib/test/divl/divl.casl similarity index 86% rename from as/casl2lib_driver/divl.casl rename to as/casl2lib/test/divl/divl.casl index bceca27..e988bea 100644 --- a/as/casl2lib_driver/divl.casl +++ b/as/casl2lib/test/divl/divl.casl @@ -2,7 +2,7 @@ MAIN START LD GR1,XMAX LOOPX CPA GR1,XMIN JMI FIN - OUT SEP,SLEN + OUT SEP,SLEN LD GR2,YMIN LOOPY CPL GR2,YMAX JPL XNEXT @@ -19,7 +19,7 @@ LOOPY CPL GR2,YMAX LD GR1,GR3 CALL OUTL POP GR1 -YNEXT OUT SEP,SLEN +YNEXT OUT SEP,SLEN LAD GR2,1,GR2 JUMP LOOPY WOV OUT Y0MSG,YLEN @@ -28,11 +28,11 @@ XNEXT LAD GR1,-1,GR1 JUMP LOOPX FIN RET XMAX DC 100 -XMIN DC 0 +XMIN DC 0 YMAX DC 10 YMIN DC 0 SEP DC '--------------------' SLEN DC 20 Y0MSG DC 'Error: div by 0' -YLEN DC 15 +YLEN DC 15 END diff --git a/as/casl2lib_driver/divl0.casl b/as/casl2lib/test/divl/divl0/divl0.casl similarity index 69% rename from as/casl2lib_driver/divl0.casl rename to as/casl2lib/test/divl/divl0/divl0.casl index cbdb169..b8c3a82 100644 --- a/as/casl2lib_driver/divl0.casl +++ b/as/casl2lib/test/divl/divl0/divl0.casl @@ -1,4 +1,3 @@ -;;; casl2 div0_call0.casl div0.casl outl.casl MAIN START BEGIN LAD GR1,101 LAD GR2,10 diff --git a/as/casl2lib_driver/divl1.casl b/as/casl2lib/test/divl/divl1/divl1.casl similarity index 100% rename from as/casl2lib_driver/divl1.casl rename to as/casl2lib/test/divl/divl1/divl1.casl diff --git a/as/casl2lib/test/inl/0.txt b/as/casl2lib/test/inl/0.txt new file mode 100644 index 0000000..c7e7298 --- /dev/null +++ b/as/casl2lib/test/inl/0.txt @@ -0,0 +1,14 @@ +../../../../casl2 inl.casl ../../../../as/casl2lib/inl.casl ../../../../as/casl2lib/outl.casl +0 +1 +2 +10 +12 +32767 +32768 +65535 +Over 65535 +Over 65535 +Over 65535 +Not A Number +Not A Number diff --git a/as/casl2lib/test/inl/Makefile b/as/casl2lib/test/inl/Makefile new file mode 100644 index 0000000..661568e --- /dev/null +++ b/as/casl2lib/test/inl/Makefile @@ -0,0 +1,7 @@ +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = inl.casl $(LIBDIR)/inl.casl $(LIBDIR)/outl.casl +IN = teststr.txt +CMD = $(CASL2) $(ASFILE) <$(IN) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/casl2lib/test/inl/inl.casl b/as/casl2lib/test/inl/inl.casl new file mode 100644 index 0000000..b76c51f --- /dev/null +++ b/as/casl2lib/test/inl/inl.casl @@ -0,0 +1,20 @@ +;;; casl2 inl.casl ../casl2lib/inl.casl ../casl2lib/outl.casl +MAIN START +LOOP CALL INL ; GR1に数値、GR0に文字列の長さ + JOV OV + AND GR0,GR0 + JZE FIN + CPL GR0,=#FFFF + JZE NAN + CALL OUTL + JUMP LOOP +OV OUT OVMSG,MLEN1 + JUMP LOOP +NAN OUT NANMSG,MLEN2 + JUMP LOOP +FIN RET +OVMSG DC 'Over 65535' +MLEN1 DC 10 +NANMSG DC 'Not A Number' +MLEN2 DC 12 + END diff --git a/as/casl2lib/test/inl/teststr.txt b/as/casl2lib/test/inl/teststr.txt new file mode 100644 index 0000000..0054244 --- /dev/null +++ b/as/casl2lib/test/inl/teststr.txt @@ -0,0 +1,13 @@ +0 +1 +2 +10 +12 +32767 +32768 +65535 +65536 +90000 +100000 +-1 +NOTNUMBER diff --git a/as/casl2lib/test/minim/0.txt b/as/casl2lib/test/minim/0.txt new file mode 100644 index 0000000..d36a803 --- /dev/null +++ b/as/casl2lib/test/minim/0.txt @@ -0,0 +1,2 @@ +../../../../casl2 ../../../../as/FUNC/minim_call.casl ../../../../as/FUNC/minim.casl ../../../../as/FUNC/outa.casl +-39 diff --git a/as/casl2lib/test/minim/1.txt b/as/casl2lib/test/minim/1.txt new file mode 100644 index 0000000..d36a803 --- /dev/null +++ b/as/casl2lib/test/minim/1.txt @@ -0,0 +1,2 @@ +../../../../casl2 ../../../../as/FUNC/minim_call.casl ../../../../as/FUNC/minim.casl ../../../../as/FUNC/outa.casl +-39 diff --git a/as/misc/fib_outl/Makefile b/as/casl2lib/test/minim/Makefile similarity index 51% rename from as/misc/fib_outl/Makefile rename to as/casl2lib/test/minim/Makefile index 0a8a14e..b0bf0c6 100644 --- a/as/misc/fib_outl/Makefile +++ b/as/casl2lib/test/minim/Makefile @@ -1,6 +1,6 @@ include ../CMD.mk # YACASL2DIR, CASL2 +ASDIR = $(YACASL2DIR)/as/casl2lib_test LIBDIR = $(YACASL2DIR)/as/casl2lib -ASDIR = $(YACASL2DIR)/as/misc -ASFILE = $(ASDIR)/fib_outl.casl $(LIBDIR)/outl.casl +ASFILE = $(ASDIR)/minim_call.casl $(LIBDIR)/minim.casl $(LIBDIR)/outa.casl CMD = $(CASL2) $(ASFILE) include ../TEST.mk diff --git a/as/casl2lib_driver/minim_call.casl b/as/casl2lib/test/minim/minim.casl similarity index 100% rename from as/casl2lib_driver/minim_call.casl rename to as/casl2lib/test/minim/minim.casl diff --git a/as/casl2lib/test/minim/report.txt b/as/casl2lib/test/minim/report.txt new file mode 100644 index 0000000..26311eb --- /dev/null +++ b/as/casl2lib/test/minim/report.txt @@ -0,0 +1 @@ +minim_call: Test Success 2010-02-12 01:12:43 diff --git a/as/casl2lib/test/mula/0.txt b/as/casl2lib/test/mula/0.txt new file mode 100644 index 0000000..2936628 --- /dev/null +++ b/as/casl2lib/test/mula/0.txt @@ -0,0 +1,1937 @@ +../../../../casl2 -M640 mula.casl ../../../../as/casl2lib/mula.casl ../../../../as/casl2lib/outa.casl +0 +0 +0 +-------------------- +0 +1 +0 +-------------------- +0 +2 +0 +-------------------- +0 +127 +0 +-------------------- +0 +128 +0 +-------------------- +0 +151 +0 +-------------------- +0 +217 +0 +-------------------- +0 +255 +0 +-------------------- +0 +256 +0 +-------------------- +0 +257 +0 +-------------------- +0 +32767 +0 +-------------------- +0 +-32768 +0 +-------------------- +0 +-32767 +0 +-------------------- +0 +-257 +0 +-------------------- +0 +-256 +0 +-------------------- +0 +-255 +0 +-------------------- +0 +-217 +0 +-------------------- +0 +-151 +0 +-------------------- +0 +-128 +0 +-------------------- +0 +-127 +0 +-------------------- +0 +-2 +0 +-------------------- +0 +-1 +0 +-------------------- +1 +0 +0 +-------------------- +1 +1 +1 +-------------------- +1 +2 +2 +-------------------- +1 +127 +127 +-------------------- +1 +128 +128 +-------------------- +1 +151 +151 +-------------------- +1 +217 +217 +-------------------- +1 +255 +255 +-------------------- +1 +256 +256 +-------------------- +1 +257 +257 +-------------------- +1 +32767 +32767 +-------------------- +1 +-32768 +Warning: overflow +-------------------- +1 +-32767 +-32767 +-------------------- +1 +-257 +-257 +-------------------- +1 +-256 +-256 +-------------------- +1 +-255 +-255 +-------------------- +1 +-217 +-217 +-------------------- +1 +-151 +-151 +-------------------- +1 +-128 +-128 +-------------------- +1 +-127 +-127 +-------------------- +1 +-2 +-2 +-------------------- +1 +-1 +-1 +-------------------- +2 +0 +0 +-------------------- +2 +1 +2 +-------------------- +2 +2 +4 +-------------------- +2 +127 +254 +-------------------- +2 +128 +256 +-------------------- +2 +151 +302 +-------------------- +2 +217 +434 +-------------------- +2 +255 +510 +-------------------- +2 +256 +512 +-------------------- +2 +257 +514 +-------------------- +2 +32767 +Warning: overflow +-------------------- +2 +-32768 +Warning: overflow +-------------------- +2 +-32767 +Warning: overflow +-------------------- +2 +-257 +-514 +-------------------- +2 +-256 +-512 +-------------------- +2 +-255 +-510 +-------------------- +2 +-217 +-434 +-------------------- +2 +-151 +-302 +-------------------- +2 +-128 +-256 +-------------------- +2 +-127 +-254 +-------------------- +2 +-2 +-4 +-------------------- +2 +-1 +-2 +-------------------- +127 +0 +0 +-------------------- +127 +1 +127 +-------------------- +127 +2 +254 +-------------------- +127 +127 +16129 +-------------------- +127 +128 +16256 +-------------------- +127 +151 +19177 +-------------------- +127 +217 +27559 +-------------------- +127 +255 +32385 +-------------------- +127 +256 +32512 +-------------------- +127 +257 +32639 +-------------------- +127 +32767 +Warning: overflow +-------------------- +127 +-32768 +Warning: overflow +-------------------- +127 +-32767 +Warning: overflow +-------------------- +127 +-257 +-32639 +-------------------- +127 +-256 +-32512 +-------------------- +127 +-255 +-32385 +-------------------- +127 +-217 +-27559 +-------------------- +127 +-151 +-19177 +-------------------- +127 +-128 +-16256 +-------------------- +127 +-127 +-16129 +-------------------- +127 +-2 +-254 +-------------------- +127 +-1 +-127 +-------------------- +128 +0 +0 +-------------------- +128 +1 +128 +-------------------- +128 +2 +256 +-------------------- +128 +127 +16256 +-------------------- +128 +128 +16384 +-------------------- +128 +151 +19328 +-------------------- +128 +217 +27776 +-------------------- +128 +255 +32640 +-------------------- +128 +256 +Warning: overflow +-------------------- +128 +257 +Warning: overflow +-------------------- +128 +32767 +Warning: overflow +-------------------- +128 +-32768 +Warning: overflow +-------------------- +128 +-32767 +Warning: overflow +-------------------- +128 +-257 +Warning: overflow +-------------------- +128 +-256 +Warning: overflow +-------------------- +128 +-255 +-32640 +-------------------- +128 +-217 +-27776 +-------------------- +128 +-151 +-19328 +-------------------- +128 +-128 +-16384 +-------------------- +128 +-127 +-16256 +-------------------- +128 +-2 +-256 +-------------------- +128 +-1 +-128 +-------------------- +151 +0 +0 +-------------------- +151 +1 +151 +-------------------- +151 +2 +302 +-------------------- +151 +127 +19177 +-------------------- +151 +128 +19328 +-------------------- +151 +151 +22801 +-------------------- +151 +217 +32767 +-------------------- +151 +255 +Warning: overflow +-------------------- +151 +256 +Warning: overflow +-------------------- +151 +257 +Warning: overflow +-------------------- +151 +32767 +Warning: overflow +-------------------- +151 +-32768 +Warning: overflow +-------------------- +151 +-32767 +Warning: overflow +-------------------- +151 +-257 +Warning: overflow +-------------------- +151 +-256 +Warning: overflow +-------------------- +151 +-255 +Warning: overflow +-------------------- +151 +-217 +-32767 +-------------------- +151 +-151 +-22801 +-------------------- +151 +-128 +-19328 +-------------------- +151 +-127 +-19177 +-------------------- +151 +-2 +-302 +-------------------- +151 +-1 +-151 +-------------------- +217 +0 +0 +-------------------- +217 +1 +217 +-------------------- +217 +2 +434 +-------------------- +217 +127 +27559 +-------------------- +217 +128 +27776 +-------------------- +217 +151 +32767 +-------------------- +217 +217 +Warning: overflow +-------------------- +217 +255 +Warning: overflow +-------------------- +217 +256 +Warning: overflow +-------------------- +217 +257 +Warning: overflow +-------------------- +217 +32767 +Warning: overflow +-------------------- +217 +-32768 +Warning: overflow +-------------------- +217 +-32767 +Warning: overflow +-------------------- +217 +-257 +Warning: overflow +-------------------- +217 +-256 +Warning: overflow +-------------------- +217 +-255 +Warning: overflow +-------------------- +217 +-217 +Warning: overflow +-------------------- +217 +-151 +-32767 +-------------------- +217 +-128 +-27776 +-------------------- +217 +-127 +-27559 +-------------------- +217 +-2 +-434 +-------------------- +217 +-1 +-217 +-------------------- +255 +0 +0 +-------------------- +255 +1 +255 +-------------------- +255 +2 +510 +-------------------- +255 +127 +32385 +-------------------- +255 +128 +32640 +-------------------- +255 +151 +Warning: overflow +-------------------- +255 +217 +Warning: overflow +-------------------- +255 +255 +Warning: overflow +-------------------- +255 +256 +Warning: overflow +-------------------- +255 +257 +Warning: overflow +-------------------- +255 +32767 +Warning: overflow +-------------------- +255 +-32768 +Warning: overflow +-------------------- +255 +-32767 +Warning: overflow +-------------------- +255 +-257 +Warning: overflow +-------------------- +255 +-256 +Warning: overflow +-------------------- +255 +-255 +Warning: overflow +-------------------- +255 +-217 +Warning: overflow +-------------------- +255 +-151 +Warning: overflow +-------------------- +255 +-128 +-32640 +-------------------- +255 +-127 +-32385 +-------------------- +255 +-2 +-510 +-------------------- +255 +-1 +-255 +-------------------- +256 +0 +0 +-------------------- +256 +1 +256 +-------------------- +256 +2 +512 +-------------------- +256 +127 +32512 +-------------------- +256 +128 +Warning: overflow +-------------------- +256 +151 +Warning: overflow +-------------------- +256 +217 +Warning: overflow +-------------------- +256 +255 +Warning: overflow +-------------------- +256 +256 +Warning: overflow +-------------------- +256 +257 +Warning: overflow +-------------------- +256 +32767 +Warning: overflow +-------------------- +256 +-32768 +Warning: overflow +-------------------- +256 +-32767 +Warning: overflow +-------------------- +256 +-257 +Warning: overflow +-------------------- +256 +-256 +Warning: overflow +-------------------- +256 +-255 +Warning: overflow +-------------------- +256 +-217 +Warning: overflow +-------------------- +256 +-151 +Warning: overflow +-------------------- +256 +-128 +Warning: overflow +-------------------- +256 +-127 +-32512 +-------------------- +256 +-2 +-512 +-------------------- +256 +-1 +-256 +-------------------- +257 +0 +0 +-------------------- +257 +1 +257 +-------------------- +257 +2 +514 +-------------------- +257 +127 +32639 +-------------------- +257 +128 +Warning: overflow +-------------------- +257 +151 +Warning: overflow +-------------------- +257 +217 +Warning: overflow +-------------------- +257 +255 +Warning: overflow +-------------------- +257 +256 +Warning: overflow +-------------------- +257 +257 +Warning: overflow +-------------------- +257 +32767 +Warning: overflow +-------------------- +257 +-32768 +Warning: overflow +-------------------- +257 +-32767 +Warning: overflow +-------------------- +257 +-257 +Warning: overflow +-------------------- +257 +-256 +Warning: overflow +-------------------- +257 +-255 +Warning: overflow +-------------------- +257 +-217 +Warning: overflow +-------------------- +257 +-151 +Warning: overflow +-------------------- +257 +-128 +Warning: overflow +-------------------- +257 +-127 +-32639 +-------------------- +257 +-2 +-514 +-------------------- +257 +-1 +-257 +-------------------- +32767 +0 +0 +-------------------- +32767 +1 +32767 +-------------------- +32767 +2 +Warning: overflow +-------------------- +32767 +127 +Warning: overflow +-------------------- +32767 +128 +Warning: overflow +-------------------- +32767 +151 +Warning: overflow +-------------------- +32767 +217 +Warning: overflow +-------------------- +32767 +255 +Warning: overflow +-------------------- +32767 +256 +Warning: overflow +-------------------- +32767 +257 +Warning: overflow +-------------------- +32767 +32767 +Warning: overflow +-------------------- +32767 +-32768 +Warning: overflow +-------------------- +32767 +-32767 +Warning: overflow +-------------------- +32767 +-257 +Warning: overflow +-------------------- +32767 +-256 +Warning: overflow +-------------------- +32767 +-255 +Warning: overflow +-------------------- +32767 +-217 +Warning: overflow +-------------------- +32767 +-151 +Warning: overflow +-------------------- +32767 +-128 +Warning: overflow +-------------------- +32767 +-127 +Warning: overflow +-------------------- +32767 +-2 +Warning: overflow +-------------------- +32767 +-1 +-32767 +-------------------- +-32768 +0 +0 +-------------------- +-32768 +1 +Warning: overflow +-------------------- +-32768 +2 +Warning: overflow +-------------------- +-32768 +127 +Warning: overflow +-------------------- +-32768 +128 +Warning: overflow +-------------------- +-32768 +151 +Warning: overflow +-------------------- +-32768 +217 +Warning: overflow +-------------------- +-32768 +255 +Warning: overflow +-------------------- +-32768 +256 +Warning: overflow +-------------------- +-32768 +257 +Warning: overflow +-------------------- +-32768 +32767 +Warning: overflow +-------------------- +-32768 +-32768 +Warning: overflow +-------------------- +-32768 +-32767 +Warning: overflow +-------------------- +-32768 +-257 +Warning: overflow +-------------------- +-32768 +-256 +Warning: overflow +-------------------- +-32768 +-255 +Warning: overflow +-------------------- +-32768 +-217 +Warning: overflow +-------------------- +-32768 +-151 +Warning: overflow +-------------------- +-32768 +-128 +Warning: overflow +-------------------- +-32768 +-127 +Warning: overflow +-------------------- +-32768 +-2 +Warning: overflow +-------------------- +-32768 +-1 +Warning: overflow +-------------------- +-32767 +0 +0 +-------------------- +-32767 +1 +-32767 +-------------------- +-32767 +2 +Warning: overflow +-------------------- +-32767 +127 +Warning: overflow +-------------------- +-32767 +128 +Warning: overflow +-------------------- +-32767 +151 +Warning: overflow +-------------------- +-32767 +217 +Warning: overflow +-------------------- +-32767 +255 +Warning: overflow +-------------------- +-32767 +256 +Warning: overflow +-------------------- +-32767 +257 +Warning: overflow +-------------------- +-32767 +32767 +Warning: overflow +-------------------- +-32767 +-32768 +Warning: overflow +-------------------- +-32767 +-32767 +Warning: overflow +-------------------- +-32767 +-257 +Warning: overflow +-------------------- +-32767 +-256 +Warning: overflow +-------------------- +-32767 +-255 +Warning: overflow +-------------------- +-32767 +-217 +Warning: overflow +-------------------- +-32767 +-151 +Warning: overflow +-------------------- +-32767 +-128 +Warning: overflow +-------------------- +-32767 +-127 +Warning: overflow +-------------------- +-32767 +-2 +Warning: overflow +-------------------- +-32767 +-1 +32767 +-------------------- +-257 +0 +0 +-------------------- +-257 +1 +-257 +-------------------- +-257 +2 +-514 +-------------------- +-257 +127 +-32639 +-------------------- +-257 +128 +Warning: overflow +-------------------- +-257 +151 +Warning: overflow +-------------------- +-257 +217 +Warning: overflow +-------------------- +-257 +255 +Warning: overflow +-------------------- +-257 +256 +Warning: overflow +-------------------- +-257 +257 +Warning: overflow +-------------------- +-257 +32767 +Warning: overflow +-------------------- +-257 +-32768 +Warning: overflow +-------------------- +-257 +-32767 +Warning: overflow +-------------------- +-257 +-257 +Warning: overflow +-------------------- +-257 +-256 +Warning: overflow +-------------------- +-257 +-255 +Warning: overflow +-------------------- +-257 +-217 +Warning: overflow +-------------------- +-257 +-151 +Warning: overflow +-------------------- +-257 +-128 +Warning: overflow +-------------------- +-257 +-127 +32639 +-------------------- +-257 +-2 +514 +-------------------- +-257 +-1 +257 +-------------------- +-256 +0 +0 +-------------------- +-256 +1 +-256 +-------------------- +-256 +2 +-512 +-------------------- +-256 +127 +-32512 +-------------------- +-256 +128 +Warning: overflow +-------------------- +-256 +151 +Warning: overflow +-------------------- +-256 +217 +Warning: overflow +-------------------- +-256 +255 +Warning: overflow +-------------------- +-256 +256 +Warning: overflow +-------------------- +-256 +257 +Warning: overflow +-------------------- +-256 +32767 +Warning: overflow +-------------------- +-256 +-32768 +Warning: overflow +-------------------- +-256 +-32767 +Warning: overflow +-------------------- +-256 +-257 +Warning: overflow +-------------------- +-256 +-256 +Warning: overflow +-------------------- +-256 +-255 +Warning: overflow +-------------------- +-256 +-217 +Warning: overflow +-------------------- +-256 +-151 +Warning: overflow +-------------------- +-256 +-128 +Warning: overflow +-------------------- +-256 +-127 +32512 +-------------------- +-256 +-2 +512 +-------------------- +-256 +-1 +256 +-------------------- +-255 +0 +0 +-------------------- +-255 +1 +-255 +-------------------- +-255 +2 +-510 +-------------------- +-255 +127 +-32385 +-------------------- +-255 +128 +-32640 +-------------------- +-255 +151 +Warning: overflow +-------------------- +-255 +217 +Warning: overflow +-------------------- +-255 +255 +Warning: overflow +-------------------- +-255 +256 +Warning: overflow +-------------------- +-255 +257 +Warning: overflow +-------------------- +-255 +32767 +Warning: overflow +-------------------- +-255 +-32768 +Warning: overflow +-------------------- +-255 +-32767 +Warning: overflow +-------------------- +-255 +-257 +Warning: overflow +-------------------- +-255 +-256 +Warning: overflow +-------------------- +-255 +-255 +Warning: overflow +-------------------- +-255 +-217 +Warning: overflow +-------------------- +-255 +-151 +Warning: overflow +-------------------- +-255 +-128 +32640 +-------------------- +-255 +-127 +32385 +-------------------- +-255 +-2 +510 +-------------------- +-255 +-1 +255 +-------------------- +-217 +0 +0 +-------------------- +-217 +1 +-217 +-------------------- +-217 +2 +-434 +-------------------- +-217 +127 +-27559 +-------------------- +-217 +128 +-27776 +-------------------- +-217 +151 +-32767 +-------------------- +-217 +217 +Warning: overflow +-------------------- +-217 +255 +Warning: overflow +-------------------- +-217 +256 +Warning: overflow +-------------------- +-217 +257 +Warning: overflow +-------------------- +-217 +32767 +Warning: overflow +-------------------- +-217 +-32768 +Warning: overflow +-------------------- +-217 +-32767 +Warning: overflow +-------------------- +-217 +-257 +Warning: overflow +-------------------- +-217 +-256 +Warning: overflow +-------------------- +-217 +-255 +Warning: overflow +-------------------- +-217 +-217 +Warning: overflow +-------------------- +-217 +-151 +32767 +-------------------- +-217 +-128 +27776 +-------------------- +-217 +-127 +27559 +-------------------- +-217 +-2 +434 +-------------------- +-217 +-1 +217 +-------------------- +-151 +0 +0 +-------------------- +-151 +1 +-151 +-------------------- +-151 +2 +-302 +-------------------- +-151 +127 +-19177 +-------------------- +-151 +128 +-19328 +-------------------- +-151 +151 +-22801 +-------------------- +-151 +217 +-32767 +-------------------- +-151 +255 +Warning: overflow +-------------------- +-151 +256 +Warning: overflow +-------------------- +-151 +257 +Warning: overflow +-------------------- +-151 +32767 +Warning: overflow +-------------------- +-151 +-32768 +Warning: overflow +-------------------- +-151 +-32767 +Warning: overflow +-------------------- +-151 +-257 +Warning: overflow +-------------------- +-151 +-256 +Warning: overflow +-------------------- +-151 +-255 +Warning: overflow +-------------------- +-151 +-217 +32767 +-------------------- +-151 +-151 +22801 +-------------------- +-151 +-128 +19328 +-------------------- +-151 +-127 +19177 +-------------------- +-151 +-2 +302 +-------------------- +-151 +-1 +151 +-------------------- +-128 +0 +0 +-------------------- +-128 +1 +-128 +-------------------- +-128 +2 +-256 +-------------------- +-128 +127 +-16256 +-------------------- +-128 +128 +-16384 +-------------------- +-128 +151 +-19328 +-------------------- +-128 +217 +-27776 +-------------------- +-128 +255 +-32640 +-------------------- +-128 +256 +Warning: overflow +-------------------- +-128 +257 +Warning: overflow +-------------------- +-128 +32767 +Warning: overflow +-------------------- +-128 +-32768 +Warning: overflow +-------------------- +-128 +-32767 +Warning: overflow +-------------------- +-128 +-257 +Warning: overflow +-------------------- +-128 +-256 +Warning: overflow +-------------------- +-128 +-255 +32640 +-------------------- +-128 +-217 +27776 +-------------------- +-128 +-151 +19328 +-------------------- +-128 +-128 +16384 +-------------------- +-128 +-127 +16256 +-------------------- +-128 +-2 +256 +-------------------- +-128 +-1 +128 +-------------------- +-127 +0 +0 +-------------------- +-127 +1 +-127 +-------------------- +-127 +2 +-254 +-------------------- +-127 +127 +-16129 +-------------------- +-127 +128 +-16256 +-------------------- +-127 +151 +-19177 +-------------------- +-127 +217 +-27559 +-------------------- +-127 +255 +-32385 +-------------------- +-127 +256 +-32512 +-------------------- +-127 +257 +-32639 +-------------------- +-127 +32767 +Warning: overflow +-------------------- +-127 +-32768 +Warning: overflow +-------------------- +-127 +-32767 +Warning: overflow +-------------------- +-127 +-257 +32639 +-------------------- +-127 +-256 +32512 +-------------------- +-127 +-255 +32385 +-------------------- +-127 +-217 +27559 +-------------------- +-127 +-151 +19177 +-------------------- +-127 +-128 +16256 +-------------------- +-127 +-127 +16129 +-------------------- +-127 +-2 +254 +-------------------- +-127 +-1 +127 +-------------------- +-2 +0 +0 +-------------------- +-2 +1 +-2 +-------------------- +-2 +2 +-4 +-------------------- +-2 +127 +-254 +-------------------- +-2 +128 +-256 +-------------------- +-2 +151 +-302 +-------------------- +-2 +217 +-434 +-------------------- +-2 +255 +-510 +-------------------- +-2 +256 +-512 +-------------------- +-2 +257 +-514 +-------------------- +-2 +32767 +Warning: overflow +-------------------- +-2 +-32768 +Warning: overflow +-------------------- +-2 +-32767 +Warning: overflow +-------------------- +-2 +-257 +514 +-------------------- +-2 +-256 +512 +-------------------- +-2 +-255 +510 +-------------------- +-2 +-217 +434 +-------------------- +-2 +-151 +302 +-------------------- +-2 +-128 +256 +-------------------- +-2 +-127 +254 +-------------------- +-2 +-2 +4 +-------------------- +-2 +-1 +2 +-------------------- +-1 +0 +0 +-------------------- +-1 +1 +-1 +-------------------- +-1 +2 +-2 +-------------------- +-1 +127 +-127 +-------------------- +-1 +128 +-128 +-------------------- +-1 +151 +-151 +-------------------- +-1 +217 +-217 +-------------------- +-1 +255 +-255 +-------------------- +-1 +256 +-256 +-------------------- +-1 +257 +-257 +-------------------- +-1 +32767 +-32767 +-------------------- +-1 +-32768 +Warning: overflow +-------------------- +-1 +-32767 +32767 +-------------------- +-1 +-257 +257 +-------------------- +-1 +-256 +256 +-------------------- +-1 +-255 +255 +-------------------- +-1 +-217 +217 +-------------------- +-1 +-151 +151 +-------------------- +-1 +-128 +128 +-------------------- +-1 +-127 +127 +-------------------- +-1 +-2 +2 +-------------------- +-1 +-1 +1 +-------------------- diff --git a/as/casl2lib/test/mula/Makefile b/as/casl2lib/test/mula/Makefile new file mode 100644 index 0000000..a365298 --- /dev/null +++ b/as/casl2lib/test/mula/Makefile @@ -0,0 +1,7 @@ +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +CASL2FLAG = -M640 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = mula.casl $(LIBDIR)/mula.casl $(LIBDIR)/outa.casl +CMD = $(CASL2) $(CASL2FLAG) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/casl2lib_driver/mula_call.casl b/as/casl2lib/test/mula/mula.casl similarity index 100% rename from as/casl2lib_driver/mula_call.casl rename to as/casl2lib/test/mula/mula.casl diff --git a/as/casl2lib/test/mula/mula0/0.txt b/as/casl2lib/test/mula/mula0/0.txt new file mode 100644 index 0000000..0f9020b --- /dev/null +++ b/as/casl2lib/test/mula/mula0/0.txt @@ -0,0 +1,1147 @@ +../../../../../casl2 -at -M160 mula0.casl ../../../../../as/casl2lib/mula.casl + +Assemble mula0.casl (0) + +Assemble ../../../../../as/casl2lib/mula.casl (0) + +Assemble mula0.casl (1) +mula0.casl: 1:;;; casl2 mula_call0.casl mula.casl outa.casl +mula0.casl: 2:MAIN START +mula0.casl: 3: LAD GR1,12 + #0000 #1210 + #0001 #000C +mula0.casl: 4: LAD GR2,3 + #0002 #1220 + #0003 #0003 +mula0.casl: 5: CALL MULA + #0004 #8000 + #0005 #0007 +mula0.casl: 6: RET + #0006 #8100 +mula0.casl: 7: END + +Assemble ../../../../../as/casl2lib/mula.casl (1) +../../../../../as/casl2lib/mula.casl: 1:;;; -32767〜32767の範囲にある正数のかけ算(筆算方式)を行う +../../../../../as/casl2lib/mula.casl: 2:;;; 入力 GR1:被乗数 GR2:乗数 +../../../../../as/casl2lib/mula.casl: 3:;;; 出力 GR0:積 +../../../../../as/casl2lib/mula.casl: 4:;;; 被乗数または乗数が-32768の場合は、オーバーフロー +../../../../../as/casl2lib/mula.casl: 5:;;; 積が-32767未満または32767より大きい場合は、GR0は積の下位16ビットになり、オーバーフロー +../../../../../as/casl2lib/mula.casl: 6:MULA START +../../../../../as/casl2lib/mula.casl: 7: RPUSH + #0007 #7001 + #0008 #0000 + #0009 #7002 + #000A #0000 + #000B #7003 + #000C #0000 + #000D #7004 + #000E #0000 + #000F #7005 + #0010 #0000 + #0011 #7006 + #0012 #0000 + #0013 #7007 + #0014 #0000 +../../../../../as/casl2lib/mula.casl: 8: XOR GR0,GR0 ; 積 + #0015 #3600 +../../../../../as/casl2lib/mula.casl: 9: AND GR1,GR1 ; (GR1 = 0)の場合、終了 + #0016 #3411 +../../../../../as/casl2lib/mula.casl: 10: JZE FIN ; ↓ + #0017 #6300 + #0018 #0047 +../../../../../as/casl2lib/mula.casl: 11: AND GR2,GR2 ; (GR2 = 0)の場合、終了 + #0019 #3422 +../../../../../as/casl2lib/mula.casl: 12: JZE FIN ; ↓ + #001A #6300 + #001B #0047 +../../../../../as/casl2lib/mula.casl: 13: LAD GR3,1 ; 対象ビット + #001C #1230 + #001D #0001 +../../../../../as/casl2lib/mula.casl: 14: XOR GR4,GR4 ; マイナスフラグ + #001E #3644 +../../../../../as/casl2lib/mula.casl: 15:CHK1 AND GR1,GR1 ; (GR1 > 0)の場合は、CHK2へジャンプ + #001F #3411 +../../../../../as/casl2lib/mula.casl: 16: JPL CHK2 ; ↓ + #0020 #6500 + #0021 #002A +../../../../../as/casl2lib/mula.casl: 17: XOR GR1,ALLON ; GR1の正負を反転 + #0022 #3210 + #0023 #0050 +../../../../../as/casl2lib/mula.casl: 18: ADDA GR1,ONE ; ↓ + #0024 #2010 + #0025 #004F +../../../../../as/casl2lib/mula.casl: 19: JOV FIN ; (GR1 = -32768)の場合は終了 + #0026 #6600 + #0027 #0047 +../../../../../as/casl2lib/mula.casl: 20: XOR GR4,ONE ; GR4 <- 1 + #0028 #3240 + #0029 #004F +../../../../../as/casl2lib/mula.casl: 21:CHK2 AND GR2,GR2 ; (GR1 > 0)の場合は、LOOPへジャンプ + #002A #3422 +../../../../../as/casl2lib/mula.casl: 22: JPL MUL ; ↓ + #002B #6500 + #002C #0035 +../../../../../as/casl2lib/mula.casl: 23: XOR GR2,ALLON ; GR2の正負を反転 + #002D #3220 + #002E #0050 +../../../../../as/casl2lib/mula.casl: 24: ADDA GR2,ONE ; ↓ + #002F #2020 + #0030 #004F +../../../../../as/casl2lib/mula.casl: 25: JOV FIN ; (GR2 = -32768)の場合は終了 + #0031 #6600 + #0032 #0047 +../../../../../as/casl2lib/mula.casl: 26: XOR GR4,ONE ; マイナスフラグを反転 + #0033 #3240 + #0034 #004F +../../../../../as/casl2lib/mula.casl: 27:MUL CALL MULL ; GR0 <- GR1 * GR2 + #0035 #8000 + #0036 #0051 +../../../../../as/casl2lib/mula.casl: 28: JOV FIN + #0037 #6600 + #0038 #0047 +../../../../../as/casl2lib/mula.casl: 29: AND GR0,GR0 + #0039 #3400 +../../../../../as/casl2lib/mula.casl: 30: JMI OV + #003A #6100 + #003B #0045 +../../../../../as/casl2lib/mula.casl: 31:MIN AND GR4,GR4 ; マイナスフラグがオフの場合、終了 + #003C #3444 +../../../../../as/casl2lib/mula.casl: 32: JZE FIN ; ↓ + #003D #6300 + #003E #0047 +../../../../../as/casl2lib/mula.casl: 33: XOR GR0,ALLON ; GR1の正負を反転 + #003F #3200 + #0040 #0050 +../../../../../as/casl2lib/mula.casl: 34: ADDA GR0,ONE ; ↓ + #0041 #2000 + #0042 #004F +../../../../../as/casl2lib/mula.casl: 35: JUMP FIN + #0043 #6400 + #0044 #0047 +../../../../../as/casl2lib/mula.casl: 36:OV ADDL GR0,=#8000 + #0078 #8000 + #0045 #2200 + #0046 #0078 +../../../../../as/casl2lib/mula.casl: 37:FIN RPOP + #0047 #7170 + #0048 #7160 + #0049 #7150 + #004A #7140 + #004B #7130 + #004C #7120 + #004D #7110 +../../../../../as/casl2lib/mula.casl: 38: RET + #004E #8100 +../../../../../as/casl2lib/mula.casl: 39:ONE DC 1 + #004F #0001 +../../../../../as/casl2lib/mula.casl: 40:ALLON DC #FFFF + #0050 #FFFF +../../../../../as/casl2lib/mula.casl: 41: END +../../../../../as/casl2lib/mula.casl: 42:;;; 0〜65535の範囲にある正数のかけ算(筆算方式)を行う +../../../../../as/casl2lib/mula.casl: 43:;;; 入力 GR1:被乗数 GR2:乗数 +../../../../../as/casl2lib/mula.casl: 44:;;; 出力 GR0:積 +../../../../../as/casl2lib/mula.casl: 45:;;; 積が65535より大きい場合は、GR0は積の下位16ビットになり、オーバーフロー +../../../../../as/casl2lib/mula.casl: 46:MULL START +../../../../../as/casl2lib/mula.casl: 47: PUSH 0,GR1 + #0051 #7001 + #0052 #0000 +../../../../../as/casl2lib/mula.casl: 48: PUSH 0,GR3 + #0053 #7003 + #0054 #0000 +../../../../../as/casl2lib/mula.casl: 49: XOR GR0,GR0 ; 積 + #0055 #3600 +../../../../../as/casl2lib/mula.casl: 50: AND GR1,GR1 ; (GR1 = 0)の場合、終了 + #0056 #3411 +../../../../../as/casl2lib/mula.casl: 51: JZE FIN ; ↓ + #0057 #6300 + #0058 #0075 +../../../../../as/casl2lib/mula.casl: 52: AND GR2,GR2 ; (GR2 = 0)の場合、終了 + #0059 #3422 +../../../../../as/casl2lib/mula.casl: 53: JZE FIN ; ↓ + #005A #6300 + #005B #0075 +../../../../../as/casl2lib/mula.casl: 54: LAD GR3,1 ; 対象ビット + #005C #1230 + #005D #0001 +../../../../../as/casl2lib/mula.casl: 55:LOOP PUSH 0,GR3 ; ループ先頭。GR2のビット中でGR3が示すビットが0の場合、NEXTへジャンプ + #005E #7003 + #005F #0000 +../../../../../as/casl2lib/mula.casl: 56: AND GR3,GR2 ; ↓ + #0060 #3432 +../../../../../as/casl2lib/mula.casl: 57: POP GR3 ; ↓ + #0061 #7130 +../../../../../as/casl2lib/mula.casl: 58: JZE NEXT ; ↓ + #0062 #6300 + #0063 #0067 +../../../../../as/casl2lib/mula.casl: 59: ADDL GR0,GR1 ; GR0 <- GR0 + GR1 + #0064 #2601 +../../../../../as/casl2lib/mula.casl: 60: JOV FIN ; GR0がオーバーフローした場合、ループ脱出 + #0065 #6600 + #0066 #0075 +../../../../../as/casl2lib/mula.casl: 61:NEXT SLL GR3,1 ; GR3を1回左シフト + #0067 #5230 + #0068 #0001 +../../../../../as/casl2lib/mula.casl: 62: AND GR3,GR3 ; (GR3 = 0)の場合、ループ脱出 + #0069 #3433 +../../../../../as/casl2lib/mula.casl: 63: JZE FIN ; ↓ + #006A #6300 + #006B #0075 +../../../../../as/casl2lib/mula.casl: 64: CPL GR3,GR2 ; (GR3 > GR2)の場合、ループ脱出 + #006C #4532 +../../../../../as/casl2lib/mula.casl: 65: JPL FIN ; ↓ + #006D #6500 + #006E #0075 +../../../../../as/casl2lib/mula.casl: 66: SLL GR1,1 ; GR1を1回左シフト + #006F #5210 + #0070 #0001 +../../../../../as/casl2lib/mula.casl: 67: JOV FIN ; GR1がオーバーフローした場合、ループ脱出 + #0071 #6600 + #0072 #0075 +../../../../../as/casl2lib/mula.casl: 68: JUMP LOOP ; ループ終端 + #0073 #6400 + #0074 #005E +../../../../../as/casl2lib/mula.casl: 69:FIN POP GR3 + #0075 #7130 +../../../../../as/casl2lib/mula.casl: 70: POP GR1 + #0076 #7110 +../../../../../as/casl2lib/mula.casl: 71: RET + #0077 #8100 +../../../../../as/casl2lib/mula.casl: 72: END + +Executing machine codes +#0000: Register:::: +#0000: GR0: 0 = #0000 = 0000000000000000 +#0000: GR1: 0 = #0000 = 0000000000000000 +#0000: GR2: 0 = #0000 = 0000000000000000 +#0000: GR3: 0 = #0000 = 0000000000000000 +#0000: GR4: 0 = #0000 = 0000000000000000 +#0000: GR5: 0 = #0000 = 0000000000000000 +#0000: GR6: 0 = #0000 = 0000000000000000 +#0000: GR7: 0 = #0000 = 0000000000000000 +#0000: SP: 160 = #00A0 = 0000000010100000 +#0000: PR: 0 = #0000 = 0000000000000000 +#0000: FR (OF SF ZF): 000 + +#0002: Register:::: +#0002: GR0: 0 = #0000 = 0000000000000000 +#0002: GR1: 12 = #000C = 0000000000001100 +#0002: GR2: 0 = #0000 = 0000000000000000 +#0002: GR3: 0 = #0000 = 0000000000000000 +#0002: GR4: 0 = #0000 = 0000000000000000 +#0002: GR5: 0 = #0000 = 0000000000000000 +#0002: GR6: 0 = #0000 = 0000000000000000 +#0002: GR7: 0 = #0000 = 0000000000000000 +#0002: SP: 160 = #00A0 = 0000000010100000 +#0002: PR: 2 = #0002 = 0000000000000010 +#0002: FR (OF SF ZF): 000 + +#0004: Register:::: +#0004: GR0: 0 = #0000 = 0000000000000000 +#0004: GR1: 12 = #000C = 0000000000001100 +#0004: GR2: 3 = #0003 = 0000000000000011 +#0004: GR3: 0 = #0000 = 0000000000000000 +#0004: GR4: 0 = #0000 = 0000000000000000 +#0004: GR5: 0 = #0000 = 0000000000000000 +#0004: GR6: 0 = #0000 = 0000000000000000 +#0004: GR7: 0 = #0000 = 0000000000000000 +#0004: SP: 160 = #00A0 = 0000000010100000 +#0004: PR: 4 = #0004 = 0000000000000100 +#0004: FR (OF SF ZF): 000 + +#0007: Register:::: +#0007: GR0: 0 = #0000 = 0000000000000000 +#0007: GR1: 12 = #000C = 0000000000001100 +#0007: GR2: 3 = #0003 = 0000000000000011 +#0007: GR3: 0 = #0000 = 0000000000000000 +#0007: GR4: 0 = #0000 = 0000000000000000 +#0007: GR5: 0 = #0000 = 0000000000000000 +#0007: GR6: 0 = #0000 = 0000000000000000 +#0007: GR7: 0 = #0000 = 0000000000000000 +#0007: SP: 159 = #009F = 0000000010011111 +#0007: PR: 7 = #0007 = 0000000000000111 +#0007: FR (OF SF ZF): 000 + +#0009: Register:::: +#0009: GR0: 0 = #0000 = 0000000000000000 +#0009: GR1: 12 = #000C = 0000000000001100 +#0009: GR2: 3 = #0003 = 0000000000000011 +#0009: GR3: 0 = #0000 = 0000000000000000 +#0009: GR4: 0 = #0000 = 0000000000000000 +#0009: GR5: 0 = #0000 = 0000000000000000 +#0009: GR6: 0 = #0000 = 0000000000000000 +#0009: GR7: 0 = #0000 = 0000000000000000 +#0009: SP: 158 = #009E = 0000000010011110 +#0009: PR: 9 = #0009 = 0000000000001001 +#0009: FR (OF SF ZF): 000 + +#000B: Register:::: +#000B: GR0: 0 = #0000 = 0000000000000000 +#000B: GR1: 12 = #000C = 0000000000001100 +#000B: GR2: 3 = #0003 = 0000000000000011 +#000B: GR3: 0 = #0000 = 0000000000000000 +#000B: GR4: 0 = #0000 = 0000000000000000 +#000B: GR5: 0 = #0000 = 0000000000000000 +#000B: GR6: 0 = #0000 = 0000000000000000 +#000B: GR7: 0 = #0000 = 0000000000000000 +#000B: SP: 157 = #009D = 0000000010011101 +#000B: PR: 11 = #000B = 0000000000001011 +#000B: FR (OF SF ZF): 000 + +#000D: Register:::: +#000D: GR0: 0 = #0000 = 0000000000000000 +#000D: GR1: 12 = #000C = 0000000000001100 +#000D: GR2: 3 = #0003 = 0000000000000011 +#000D: GR3: 0 = #0000 = 0000000000000000 +#000D: GR4: 0 = #0000 = 0000000000000000 +#000D: GR5: 0 = #0000 = 0000000000000000 +#000D: GR6: 0 = #0000 = 0000000000000000 +#000D: GR7: 0 = #0000 = 0000000000000000 +#000D: SP: 156 = #009C = 0000000010011100 +#000D: PR: 13 = #000D = 0000000000001101 +#000D: FR (OF SF ZF): 000 + +#000F: Register:::: +#000F: GR0: 0 = #0000 = 0000000000000000 +#000F: GR1: 12 = #000C = 0000000000001100 +#000F: GR2: 3 = #0003 = 0000000000000011 +#000F: GR3: 0 = #0000 = 0000000000000000 +#000F: GR4: 0 = #0000 = 0000000000000000 +#000F: GR5: 0 = #0000 = 0000000000000000 +#000F: GR6: 0 = #0000 = 0000000000000000 +#000F: GR7: 0 = #0000 = 0000000000000000 +#000F: SP: 155 = #009B = 0000000010011011 +#000F: PR: 15 = #000F = 0000000000001111 +#000F: FR (OF SF ZF): 000 + +#0011: Register:::: +#0011: GR0: 0 = #0000 = 0000000000000000 +#0011: GR1: 12 = #000C = 0000000000001100 +#0011: GR2: 3 = #0003 = 0000000000000011 +#0011: GR3: 0 = #0000 = 0000000000000000 +#0011: GR4: 0 = #0000 = 0000000000000000 +#0011: GR5: 0 = #0000 = 0000000000000000 +#0011: GR6: 0 = #0000 = 0000000000000000 +#0011: GR7: 0 = #0000 = 0000000000000000 +#0011: SP: 154 = #009A = 0000000010011010 +#0011: PR: 17 = #0011 = 0000000000010001 +#0011: FR (OF SF ZF): 000 + +#0013: Register:::: +#0013: GR0: 0 = #0000 = 0000000000000000 +#0013: GR1: 12 = #000C = 0000000000001100 +#0013: GR2: 3 = #0003 = 0000000000000011 +#0013: GR3: 0 = #0000 = 0000000000000000 +#0013: GR4: 0 = #0000 = 0000000000000000 +#0013: GR5: 0 = #0000 = 0000000000000000 +#0013: GR6: 0 = #0000 = 0000000000000000 +#0013: GR7: 0 = #0000 = 0000000000000000 +#0013: SP: 153 = #0099 = 0000000010011001 +#0013: PR: 19 = #0013 = 0000000000010011 +#0013: FR (OF SF ZF): 000 + +#0015: Register:::: +#0015: GR0: 0 = #0000 = 0000000000000000 +#0015: GR1: 12 = #000C = 0000000000001100 +#0015: GR2: 3 = #0003 = 0000000000000011 +#0015: GR3: 0 = #0000 = 0000000000000000 +#0015: GR4: 0 = #0000 = 0000000000000000 +#0015: GR5: 0 = #0000 = 0000000000000000 +#0015: GR6: 0 = #0000 = 0000000000000000 +#0015: GR7: 0 = #0000 = 0000000000000000 +#0015: SP: 152 = #0098 = 0000000010011000 +#0015: PR: 21 = #0015 = 0000000000010101 +#0015: FR (OF SF ZF): 000 + +#0016: Register:::: +#0016: GR0: 0 = #0000 = 0000000000000000 +#0016: GR1: 12 = #000C = 0000000000001100 +#0016: GR2: 3 = #0003 = 0000000000000011 +#0016: GR3: 0 = #0000 = 0000000000000000 +#0016: GR4: 0 = #0000 = 0000000000000000 +#0016: GR5: 0 = #0000 = 0000000000000000 +#0016: GR6: 0 = #0000 = 0000000000000000 +#0016: GR7: 0 = #0000 = 0000000000000000 +#0016: SP: 152 = #0098 = 0000000010011000 +#0016: PR: 22 = #0016 = 0000000000010110 +#0016: FR (OF SF ZF): 001 + +#0017: Register:::: +#0017: GR0: 0 = #0000 = 0000000000000000 +#0017: GR1: 12 = #000C = 0000000000001100 +#0017: GR2: 3 = #0003 = 0000000000000011 +#0017: GR3: 0 = #0000 = 0000000000000000 +#0017: GR4: 0 = #0000 = 0000000000000000 +#0017: GR5: 0 = #0000 = 0000000000000000 +#0017: GR6: 0 = #0000 = 0000000000000000 +#0017: GR7: 0 = #0000 = 0000000000000000 +#0017: SP: 152 = #0098 = 0000000010011000 +#0017: PR: 23 = #0017 = 0000000000010111 +#0017: FR (OF SF ZF): 000 + +#0019: Register:::: +#0019: GR0: 0 = #0000 = 0000000000000000 +#0019: GR1: 12 = #000C = 0000000000001100 +#0019: GR2: 3 = #0003 = 0000000000000011 +#0019: GR3: 0 = #0000 = 0000000000000000 +#0019: GR4: 0 = #0000 = 0000000000000000 +#0019: GR5: 0 = #0000 = 0000000000000000 +#0019: GR6: 0 = #0000 = 0000000000000000 +#0019: GR7: 0 = #0000 = 0000000000000000 +#0019: SP: 152 = #0098 = 0000000010011000 +#0019: PR: 25 = #0019 = 0000000000011001 +#0019: FR (OF SF ZF): 000 + +#001A: Register:::: +#001A: GR0: 0 = #0000 = 0000000000000000 +#001A: GR1: 12 = #000C = 0000000000001100 +#001A: GR2: 3 = #0003 = 0000000000000011 +#001A: GR3: 0 = #0000 = 0000000000000000 +#001A: GR4: 0 = #0000 = 0000000000000000 +#001A: GR5: 0 = #0000 = 0000000000000000 +#001A: GR6: 0 = #0000 = 0000000000000000 +#001A: GR7: 0 = #0000 = 0000000000000000 +#001A: SP: 152 = #0098 = 0000000010011000 +#001A: PR: 26 = #001A = 0000000000011010 +#001A: FR (OF SF ZF): 000 + +#001C: Register:::: +#001C: GR0: 0 = #0000 = 0000000000000000 +#001C: GR1: 12 = #000C = 0000000000001100 +#001C: GR2: 3 = #0003 = 0000000000000011 +#001C: GR3: 0 = #0000 = 0000000000000000 +#001C: GR4: 0 = #0000 = 0000000000000000 +#001C: GR5: 0 = #0000 = 0000000000000000 +#001C: GR6: 0 = #0000 = 0000000000000000 +#001C: GR7: 0 = #0000 = 0000000000000000 +#001C: SP: 152 = #0098 = 0000000010011000 +#001C: PR: 28 = #001C = 0000000000011100 +#001C: FR (OF SF ZF): 000 + +#001E: Register:::: +#001E: GR0: 0 = #0000 = 0000000000000000 +#001E: GR1: 12 = #000C = 0000000000001100 +#001E: GR2: 3 = #0003 = 0000000000000011 +#001E: GR3: 1 = #0001 = 0000000000000001 +#001E: GR4: 0 = #0000 = 0000000000000000 +#001E: GR5: 0 = #0000 = 0000000000000000 +#001E: GR6: 0 = #0000 = 0000000000000000 +#001E: GR7: 0 = #0000 = 0000000000000000 +#001E: SP: 152 = #0098 = 0000000010011000 +#001E: PR: 30 = #001E = 0000000000011110 +#001E: FR (OF SF ZF): 000 + +#001F: Register:::: +#001F: GR0: 0 = #0000 = 0000000000000000 +#001F: GR1: 12 = #000C = 0000000000001100 +#001F: GR2: 3 = #0003 = 0000000000000011 +#001F: GR3: 1 = #0001 = 0000000000000001 +#001F: GR4: 0 = #0000 = 0000000000000000 +#001F: GR5: 0 = #0000 = 0000000000000000 +#001F: GR6: 0 = #0000 = 0000000000000000 +#001F: GR7: 0 = #0000 = 0000000000000000 +#001F: SP: 152 = #0098 = 0000000010011000 +#001F: PR: 31 = #001F = 0000000000011111 +#001F: FR (OF SF ZF): 001 + +#0020: Register:::: +#0020: GR0: 0 = #0000 = 0000000000000000 +#0020: GR1: 12 = #000C = 0000000000001100 +#0020: GR2: 3 = #0003 = 0000000000000011 +#0020: GR3: 1 = #0001 = 0000000000000001 +#0020: GR4: 0 = #0000 = 0000000000000000 +#0020: GR5: 0 = #0000 = 0000000000000000 +#0020: GR6: 0 = #0000 = 0000000000000000 +#0020: GR7: 0 = #0000 = 0000000000000000 +#0020: SP: 152 = #0098 = 0000000010011000 +#0020: PR: 32 = #0020 = 0000000000100000 +#0020: FR (OF SF ZF): 000 + +#002A: Register:::: +#002A: GR0: 0 = #0000 = 0000000000000000 +#002A: GR1: 12 = #000C = 0000000000001100 +#002A: GR2: 3 = #0003 = 0000000000000011 +#002A: GR3: 1 = #0001 = 0000000000000001 +#002A: GR4: 0 = #0000 = 0000000000000000 +#002A: GR5: 0 = #0000 = 0000000000000000 +#002A: GR6: 0 = #0000 = 0000000000000000 +#002A: GR7: 0 = #0000 = 0000000000000000 +#002A: SP: 152 = #0098 = 0000000010011000 +#002A: PR: 42 = #002A = 0000000000101010 +#002A: FR (OF SF ZF): 000 + +#002B: Register:::: +#002B: GR0: 0 = #0000 = 0000000000000000 +#002B: GR1: 12 = #000C = 0000000000001100 +#002B: GR2: 3 = #0003 = 0000000000000011 +#002B: GR3: 1 = #0001 = 0000000000000001 +#002B: GR4: 0 = #0000 = 0000000000000000 +#002B: GR5: 0 = #0000 = 0000000000000000 +#002B: GR6: 0 = #0000 = 0000000000000000 +#002B: GR7: 0 = #0000 = 0000000000000000 +#002B: SP: 152 = #0098 = 0000000010011000 +#002B: PR: 43 = #002B = 0000000000101011 +#002B: FR (OF SF ZF): 000 + +#0035: Register:::: +#0035: GR0: 0 = #0000 = 0000000000000000 +#0035: GR1: 12 = #000C = 0000000000001100 +#0035: GR2: 3 = #0003 = 0000000000000011 +#0035: GR3: 1 = #0001 = 0000000000000001 +#0035: GR4: 0 = #0000 = 0000000000000000 +#0035: GR5: 0 = #0000 = 0000000000000000 +#0035: GR6: 0 = #0000 = 0000000000000000 +#0035: GR7: 0 = #0000 = 0000000000000000 +#0035: SP: 152 = #0098 = 0000000010011000 +#0035: PR: 53 = #0035 = 0000000000110101 +#0035: FR (OF SF ZF): 000 + +#0051: Register:::: +#0051: GR0: 0 = #0000 = 0000000000000000 +#0051: GR1: 12 = #000C = 0000000000001100 +#0051: GR2: 3 = #0003 = 0000000000000011 +#0051: GR3: 1 = #0001 = 0000000000000001 +#0051: GR4: 0 = #0000 = 0000000000000000 +#0051: GR5: 0 = #0000 = 0000000000000000 +#0051: GR6: 0 = #0000 = 0000000000000000 +#0051: GR7: 0 = #0000 = 0000000000000000 +#0051: SP: 151 = #0097 = 0000000010010111 +#0051: PR: 81 = #0051 = 0000000001010001 +#0051: FR (OF SF ZF): 000 + +#0053: Register:::: +#0053: GR0: 0 = #0000 = 0000000000000000 +#0053: GR1: 12 = #000C = 0000000000001100 +#0053: GR2: 3 = #0003 = 0000000000000011 +#0053: GR3: 1 = #0001 = 0000000000000001 +#0053: GR4: 0 = #0000 = 0000000000000000 +#0053: GR5: 0 = #0000 = 0000000000000000 +#0053: GR6: 0 = #0000 = 0000000000000000 +#0053: GR7: 0 = #0000 = 0000000000000000 +#0053: SP: 150 = #0096 = 0000000010010110 +#0053: PR: 83 = #0053 = 0000000001010011 +#0053: FR (OF SF ZF): 000 + +#0055: Register:::: +#0055: GR0: 0 = #0000 = 0000000000000000 +#0055: GR1: 12 = #000C = 0000000000001100 +#0055: GR2: 3 = #0003 = 0000000000000011 +#0055: GR3: 1 = #0001 = 0000000000000001 +#0055: GR4: 0 = #0000 = 0000000000000000 +#0055: GR5: 0 = #0000 = 0000000000000000 +#0055: GR6: 0 = #0000 = 0000000000000000 +#0055: GR7: 0 = #0000 = 0000000000000000 +#0055: SP: 149 = #0095 = 0000000010010101 +#0055: PR: 85 = #0055 = 0000000001010101 +#0055: FR (OF SF ZF): 000 + +#0056: Register:::: +#0056: GR0: 0 = #0000 = 0000000000000000 +#0056: GR1: 12 = #000C = 0000000000001100 +#0056: GR2: 3 = #0003 = 0000000000000011 +#0056: GR3: 1 = #0001 = 0000000000000001 +#0056: GR4: 0 = #0000 = 0000000000000000 +#0056: GR5: 0 = #0000 = 0000000000000000 +#0056: GR6: 0 = #0000 = 0000000000000000 +#0056: GR7: 0 = #0000 = 0000000000000000 +#0056: SP: 149 = #0095 = 0000000010010101 +#0056: PR: 86 = #0056 = 0000000001010110 +#0056: FR (OF SF ZF): 001 + +#0057: Register:::: +#0057: GR0: 0 = #0000 = 0000000000000000 +#0057: GR1: 12 = #000C = 0000000000001100 +#0057: GR2: 3 = #0003 = 0000000000000011 +#0057: GR3: 1 = #0001 = 0000000000000001 +#0057: GR4: 0 = #0000 = 0000000000000000 +#0057: GR5: 0 = #0000 = 0000000000000000 +#0057: GR6: 0 = #0000 = 0000000000000000 +#0057: GR7: 0 = #0000 = 0000000000000000 +#0057: SP: 149 = #0095 = 0000000010010101 +#0057: PR: 87 = #0057 = 0000000001010111 +#0057: FR (OF SF ZF): 000 + +#0059: Register:::: +#0059: GR0: 0 = #0000 = 0000000000000000 +#0059: GR1: 12 = #000C = 0000000000001100 +#0059: GR2: 3 = #0003 = 0000000000000011 +#0059: GR3: 1 = #0001 = 0000000000000001 +#0059: GR4: 0 = #0000 = 0000000000000000 +#0059: GR5: 0 = #0000 = 0000000000000000 +#0059: GR6: 0 = #0000 = 0000000000000000 +#0059: GR7: 0 = #0000 = 0000000000000000 +#0059: SP: 149 = #0095 = 0000000010010101 +#0059: PR: 89 = #0059 = 0000000001011001 +#0059: FR (OF SF ZF): 000 + +#005A: Register:::: +#005A: GR0: 0 = #0000 = 0000000000000000 +#005A: GR1: 12 = #000C = 0000000000001100 +#005A: GR2: 3 = #0003 = 0000000000000011 +#005A: GR3: 1 = #0001 = 0000000000000001 +#005A: GR4: 0 = #0000 = 0000000000000000 +#005A: GR5: 0 = #0000 = 0000000000000000 +#005A: GR6: 0 = #0000 = 0000000000000000 +#005A: GR7: 0 = #0000 = 0000000000000000 +#005A: SP: 149 = #0095 = 0000000010010101 +#005A: PR: 90 = #005A = 0000000001011010 +#005A: FR (OF SF ZF): 000 + +#005C: Register:::: +#005C: GR0: 0 = #0000 = 0000000000000000 +#005C: GR1: 12 = #000C = 0000000000001100 +#005C: GR2: 3 = #0003 = 0000000000000011 +#005C: GR3: 1 = #0001 = 0000000000000001 +#005C: GR4: 0 = #0000 = 0000000000000000 +#005C: GR5: 0 = #0000 = 0000000000000000 +#005C: GR6: 0 = #0000 = 0000000000000000 +#005C: GR7: 0 = #0000 = 0000000000000000 +#005C: SP: 149 = #0095 = 0000000010010101 +#005C: PR: 92 = #005C = 0000000001011100 +#005C: FR (OF SF ZF): 000 + +#005E: Register:::: +#005E: GR0: 0 = #0000 = 0000000000000000 +#005E: GR1: 12 = #000C = 0000000000001100 +#005E: GR2: 3 = #0003 = 0000000000000011 +#005E: GR3: 1 = #0001 = 0000000000000001 +#005E: GR4: 0 = #0000 = 0000000000000000 +#005E: GR5: 0 = #0000 = 0000000000000000 +#005E: GR6: 0 = #0000 = 0000000000000000 +#005E: GR7: 0 = #0000 = 0000000000000000 +#005E: SP: 149 = #0095 = 0000000010010101 +#005E: PR: 94 = #005E = 0000000001011110 +#005E: FR (OF SF ZF): 000 + +#0060: Register:::: +#0060: GR0: 0 = #0000 = 0000000000000000 +#0060: GR1: 12 = #000C = 0000000000001100 +#0060: GR2: 3 = #0003 = 0000000000000011 +#0060: GR3: 1 = #0001 = 0000000000000001 +#0060: GR4: 0 = #0000 = 0000000000000000 +#0060: GR5: 0 = #0000 = 0000000000000000 +#0060: GR6: 0 = #0000 = 0000000000000000 +#0060: GR7: 0 = #0000 = 0000000000000000 +#0060: SP: 148 = #0094 = 0000000010010100 +#0060: PR: 96 = #0060 = 0000000001100000 +#0060: FR (OF SF ZF): 000 + +#0061: Register:::: +#0061: GR0: 0 = #0000 = 0000000000000000 +#0061: GR1: 12 = #000C = 0000000000001100 +#0061: GR2: 3 = #0003 = 0000000000000011 +#0061: GR3: 1 = #0001 = 0000000000000001 +#0061: GR4: 0 = #0000 = 0000000000000000 +#0061: GR5: 0 = #0000 = 0000000000000000 +#0061: GR6: 0 = #0000 = 0000000000000000 +#0061: GR7: 0 = #0000 = 0000000000000000 +#0061: SP: 148 = #0094 = 0000000010010100 +#0061: PR: 97 = #0061 = 0000000001100001 +#0061: FR (OF SF ZF): 000 + +#0062: Register:::: +#0062: GR0: 0 = #0000 = 0000000000000000 +#0062: GR1: 12 = #000C = 0000000000001100 +#0062: GR2: 3 = #0003 = 0000000000000011 +#0062: GR3: 1 = #0001 = 0000000000000001 +#0062: GR4: 0 = #0000 = 0000000000000000 +#0062: GR5: 0 = #0000 = 0000000000000000 +#0062: GR6: 0 = #0000 = 0000000000000000 +#0062: GR7: 0 = #0000 = 0000000000000000 +#0062: SP: 149 = #0095 = 0000000010010101 +#0062: PR: 98 = #0062 = 0000000001100010 +#0062: FR (OF SF ZF): 000 + +#0064: Register:::: +#0064: GR0: 0 = #0000 = 0000000000000000 +#0064: GR1: 12 = #000C = 0000000000001100 +#0064: GR2: 3 = #0003 = 0000000000000011 +#0064: GR3: 1 = #0001 = 0000000000000001 +#0064: GR4: 0 = #0000 = 0000000000000000 +#0064: GR5: 0 = #0000 = 0000000000000000 +#0064: GR6: 0 = #0000 = 0000000000000000 +#0064: GR7: 0 = #0000 = 0000000000000000 +#0064: SP: 149 = #0095 = 0000000010010101 +#0064: PR: 100 = #0064 = 0000000001100100 +#0064: FR (OF SF ZF): 000 + +#0065: Register:::: +#0065: GR0: 12 = #000C = 0000000000001100 +#0065: GR1: 12 = #000C = 0000000000001100 +#0065: GR2: 3 = #0003 = 0000000000000011 +#0065: GR3: 1 = #0001 = 0000000000000001 +#0065: GR4: 0 = #0000 = 0000000000000000 +#0065: GR5: 0 = #0000 = 0000000000000000 +#0065: GR6: 0 = #0000 = 0000000000000000 +#0065: GR7: 0 = #0000 = 0000000000000000 +#0065: SP: 149 = #0095 = 0000000010010101 +#0065: PR: 101 = #0065 = 0000000001100101 +#0065: FR (OF SF ZF): 000 + +#0067: Register:::: +#0067: GR0: 12 = #000C = 0000000000001100 +#0067: GR1: 12 = #000C = 0000000000001100 +#0067: GR2: 3 = #0003 = 0000000000000011 +#0067: GR3: 1 = #0001 = 0000000000000001 +#0067: GR4: 0 = #0000 = 0000000000000000 +#0067: GR5: 0 = #0000 = 0000000000000000 +#0067: GR6: 0 = #0000 = 0000000000000000 +#0067: GR7: 0 = #0000 = 0000000000000000 +#0067: SP: 149 = #0095 = 0000000010010101 +#0067: PR: 103 = #0067 = 0000000001100111 +#0067: FR (OF SF ZF): 000 + +#0069: Register:::: +#0069: GR0: 12 = #000C = 0000000000001100 +#0069: GR1: 12 = #000C = 0000000000001100 +#0069: GR2: 3 = #0003 = 0000000000000011 +#0069: GR3: 2 = #0002 = 0000000000000010 +#0069: GR4: 0 = #0000 = 0000000000000000 +#0069: GR5: 0 = #0000 = 0000000000000000 +#0069: GR6: 0 = #0000 = 0000000000000000 +#0069: GR7: 0 = #0000 = 0000000000000000 +#0069: SP: 149 = #0095 = 0000000010010101 +#0069: PR: 105 = #0069 = 0000000001101001 +#0069: FR (OF SF ZF): 000 + +#006A: Register:::: +#006A: GR0: 12 = #000C = 0000000000001100 +#006A: GR1: 12 = #000C = 0000000000001100 +#006A: GR2: 3 = #0003 = 0000000000000011 +#006A: GR3: 2 = #0002 = 0000000000000010 +#006A: GR4: 0 = #0000 = 0000000000000000 +#006A: GR5: 0 = #0000 = 0000000000000000 +#006A: GR6: 0 = #0000 = 0000000000000000 +#006A: GR7: 0 = #0000 = 0000000000000000 +#006A: SP: 149 = #0095 = 0000000010010101 +#006A: PR: 106 = #006A = 0000000001101010 +#006A: FR (OF SF ZF): 000 + +#006C: Register:::: +#006C: GR0: 12 = #000C = 0000000000001100 +#006C: GR1: 12 = #000C = 0000000000001100 +#006C: GR2: 3 = #0003 = 0000000000000011 +#006C: GR3: 2 = #0002 = 0000000000000010 +#006C: GR4: 0 = #0000 = 0000000000000000 +#006C: GR5: 0 = #0000 = 0000000000000000 +#006C: GR6: 0 = #0000 = 0000000000000000 +#006C: GR7: 0 = #0000 = 0000000000000000 +#006C: SP: 149 = #0095 = 0000000010010101 +#006C: PR: 108 = #006C = 0000000001101100 +#006C: FR (OF SF ZF): 000 + +#006D: Register:::: +#006D: GR0: 12 = #000C = 0000000000001100 +#006D: GR1: 12 = #000C = 0000000000001100 +#006D: GR2: 3 = #0003 = 0000000000000011 +#006D: GR3: 2 = #0002 = 0000000000000010 +#006D: GR4: 0 = #0000 = 0000000000000000 +#006D: GR5: 0 = #0000 = 0000000000000000 +#006D: GR6: 0 = #0000 = 0000000000000000 +#006D: GR7: 0 = #0000 = 0000000000000000 +#006D: SP: 149 = #0095 = 0000000010010101 +#006D: PR: 109 = #006D = 0000000001101101 +#006D: FR (OF SF ZF): 010 + +#006F: Register:::: +#006F: GR0: 12 = #000C = 0000000000001100 +#006F: GR1: 12 = #000C = 0000000000001100 +#006F: GR2: 3 = #0003 = 0000000000000011 +#006F: GR3: 2 = #0002 = 0000000000000010 +#006F: GR4: 0 = #0000 = 0000000000000000 +#006F: GR5: 0 = #0000 = 0000000000000000 +#006F: GR6: 0 = #0000 = 0000000000000000 +#006F: GR7: 0 = #0000 = 0000000000000000 +#006F: SP: 149 = #0095 = 0000000010010101 +#006F: PR: 111 = #006F = 0000000001101111 +#006F: FR (OF SF ZF): 010 + +#0071: Register:::: +#0071: GR0: 12 = #000C = 0000000000001100 +#0071: GR1: 24 = #0018 = 0000000000011000 +#0071: GR2: 3 = #0003 = 0000000000000011 +#0071: GR3: 2 = #0002 = 0000000000000010 +#0071: GR4: 0 = #0000 = 0000000000000000 +#0071: GR5: 0 = #0000 = 0000000000000000 +#0071: GR6: 0 = #0000 = 0000000000000000 +#0071: GR7: 0 = #0000 = 0000000000000000 +#0071: SP: 149 = #0095 = 0000000010010101 +#0071: PR: 113 = #0071 = 0000000001110001 +#0071: FR (OF SF ZF): 000 + +#0073: Register:::: +#0073: GR0: 12 = #000C = 0000000000001100 +#0073: GR1: 24 = #0018 = 0000000000011000 +#0073: GR2: 3 = #0003 = 0000000000000011 +#0073: GR3: 2 = #0002 = 0000000000000010 +#0073: GR4: 0 = #0000 = 0000000000000000 +#0073: GR5: 0 = #0000 = 0000000000000000 +#0073: GR6: 0 = #0000 = 0000000000000000 +#0073: GR7: 0 = #0000 = 0000000000000000 +#0073: SP: 149 = #0095 = 0000000010010101 +#0073: PR: 115 = #0073 = 0000000001110011 +#0073: FR (OF SF ZF): 000 + +#005E: Register:::: +#005E: GR0: 12 = #000C = 0000000000001100 +#005E: GR1: 24 = #0018 = 0000000000011000 +#005E: GR2: 3 = #0003 = 0000000000000011 +#005E: GR3: 2 = #0002 = 0000000000000010 +#005E: GR4: 0 = #0000 = 0000000000000000 +#005E: GR5: 0 = #0000 = 0000000000000000 +#005E: GR6: 0 = #0000 = 0000000000000000 +#005E: GR7: 0 = #0000 = 0000000000000000 +#005E: SP: 149 = #0095 = 0000000010010101 +#005E: PR: 94 = #005E = 0000000001011110 +#005E: FR (OF SF ZF): 000 + +#0060: Register:::: +#0060: GR0: 12 = #000C = 0000000000001100 +#0060: GR1: 24 = #0018 = 0000000000011000 +#0060: GR2: 3 = #0003 = 0000000000000011 +#0060: GR3: 2 = #0002 = 0000000000000010 +#0060: GR4: 0 = #0000 = 0000000000000000 +#0060: GR5: 0 = #0000 = 0000000000000000 +#0060: GR6: 0 = #0000 = 0000000000000000 +#0060: GR7: 0 = #0000 = 0000000000000000 +#0060: SP: 148 = #0094 = 0000000010010100 +#0060: PR: 96 = #0060 = 0000000001100000 +#0060: FR (OF SF ZF): 000 + +#0061: Register:::: +#0061: GR0: 12 = #000C = 0000000000001100 +#0061: GR1: 24 = #0018 = 0000000000011000 +#0061: GR2: 3 = #0003 = 0000000000000011 +#0061: GR3: 2 = #0002 = 0000000000000010 +#0061: GR4: 0 = #0000 = 0000000000000000 +#0061: GR5: 0 = #0000 = 0000000000000000 +#0061: GR6: 0 = #0000 = 0000000000000000 +#0061: GR7: 0 = #0000 = 0000000000000000 +#0061: SP: 148 = #0094 = 0000000010010100 +#0061: PR: 97 = #0061 = 0000000001100001 +#0061: FR (OF SF ZF): 000 + +#0062: Register:::: +#0062: GR0: 12 = #000C = 0000000000001100 +#0062: GR1: 24 = #0018 = 0000000000011000 +#0062: GR2: 3 = #0003 = 0000000000000011 +#0062: GR3: 2 = #0002 = 0000000000000010 +#0062: GR4: 0 = #0000 = 0000000000000000 +#0062: GR5: 0 = #0000 = 0000000000000000 +#0062: GR6: 0 = #0000 = 0000000000000000 +#0062: GR7: 0 = #0000 = 0000000000000000 +#0062: SP: 149 = #0095 = 0000000010010101 +#0062: PR: 98 = #0062 = 0000000001100010 +#0062: FR (OF SF ZF): 000 + +#0064: Register:::: +#0064: GR0: 12 = #000C = 0000000000001100 +#0064: GR1: 24 = #0018 = 0000000000011000 +#0064: GR2: 3 = #0003 = 0000000000000011 +#0064: GR3: 2 = #0002 = 0000000000000010 +#0064: GR4: 0 = #0000 = 0000000000000000 +#0064: GR5: 0 = #0000 = 0000000000000000 +#0064: GR6: 0 = #0000 = 0000000000000000 +#0064: GR7: 0 = #0000 = 0000000000000000 +#0064: SP: 149 = #0095 = 0000000010010101 +#0064: PR: 100 = #0064 = 0000000001100100 +#0064: FR (OF SF ZF): 000 + +#0065: Register:::: +#0065: GR0: 36 = #0024 = 0000000000100100 = '$' +#0065: GR1: 24 = #0018 = 0000000000011000 +#0065: GR2: 3 = #0003 = 0000000000000011 +#0065: GR3: 2 = #0002 = 0000000000000010 +#0065: GR4: 0 = #0000 = 0000000000000000 +#0065: GR5: 0 = #0000 = 0000000000000000 +#0065: GR6: 0 = #0000 = 0000000000000000 +#0065: GR7: 0 = #0000 = 0000000000000000 +#0065: SP: 149 = #0095 = 0000000010010101 +#0065: PR: 101 = #0065 = 0000000001100101 +#0065: FR (OF SF ZF): 000 + +#0067: Register:::: +#0067: GR0: 36 = #0024 = 0000000000100100 = '$' +#0067: GR1: 24 = #0018 = 0000000000011000 +#0067: GR2: 3 = #0003 = 0000000000000011 +#0067: GR3: 2 = #0002 = 0000000000000010 +#0067: GR4: 0 = #0000 = 0000000000000000 +#0067: GR5: 0 = #0000 = 0000000000000000 +#0067: GR6: 0 = #0000 = 0000000000000000 +#0067: GR7: 0 = #0000 = 0000000000000000 +#0067: SP: 149 = #0095 = 0000000010010101 +#0067: PR: 103 = #0067 = 0000000001100111 +#0067: FR (OF SF ZF): 000 + +#0069: Register:::: +#0069: GR0: 36 = #0024 = 0000000000100100 = '$' +#0069: GR1: 24 = #0018 = 0000000000011000 +#0069: GR2: 3 = #0003 = 0000000000000011 +#0069: GR3: 4 = #0004 = 0000000000000100 +#0069: GR4: 0 = #0000 = 0000000000000000 +#0069: GR5: 0 = #0000 = 0000000000000000 +#0069: GR6: 0 = #0000 = 0000000000000000 +#0069: GR7: 0 = #0000 = 0000000000000000 +#0069: SP: 149 = #0095 = 0000000010010101 +#0069: PR: 105 = #0069 = 0000000001101001 +#0069: FR (OF SF ZF): 000 + +#006A: Register:::: +#006A: GR0: 36 = #0024 = 0000000000100100 = '$' +#006A: GR1: 24 = #0018 = 0000000000011000 +#006A: GR2: 3 = #0003 = 0000000000000011 +#006A: GR3: 4 = #0004 = 0000000000000100 +#006A: GR4: 0 = #0000 = 0000000000000000 +#006A: GR5: 0 = #0000 = 0000000000000000 +#006A: GR6: 0 = #0000 = 0000000000000000 +#006A: GR7: 0 = #0000 = 0000000000000000 +#006A: SP: 149 = #0095 = 0000000010010101 +#006A: PR: 106 = #006A = 0000000001101010 +#006A: FR (OF SF ZF): 000 + +#006C: Register:::: +#006C: GR0: 36 = #0024 = 0000000000100100 = '$' +#006C: GR1: 24 = #0018 = 0000000000011000 +#006C: GR2: 3 = #0003 = 0000000000000011 +#006C: GR3: 4 = #0004 = 0000000000000100 +#006C: GR4: 0 = #0000 = 0000000000000000 +#006C: GR5: 0 = #0000 = 0000000000000000 +#006C: GR6: 0 = #0000 = 0000000000000000 +#006C: GR7: 0 = #0000 = 0000000000000000 +#006C: SP: 149 = #0095 = 0000000010010101 +#006C: PR: 108 = #006C = 0000000001101100 +#006C: FR (OF SF ZF): 000 + +#006D: Register:::: +#006D: GR0: 36 = #0024 = 0000000000100100 = '$' +#006D: GR1: 24 = #0018 = 0000000000011000 +#006D: GR2: 3 = #0003 = 0000000000000011 +#006D: GR3: 4 = #0004 = 0000000000000100 +#006D: GR4: 0 = #0000 = 0000000000000000 +#006D: GR5: 0 = #0000 = 0000000000000000 +#006D: GR6: 0 = #0000 = 0000000000000000 +#006D: GR7: 0 = #0000 = 0000000000000000 +#006D: SP: 149 = #0095 = 0000000010010101 +#006D: PR: 109 = #006D = 0000000001101101 +#006D: FR (OF SF ZF): 000 + +#0075: Register:::: +#0075: GR0: 36 = #0024 = 0000000000100100 = '$' +#0075: GR1: 24 = #0018 = 0000000000011000 +#0075: GR2: 3 = #0003 = 0000000000000011 +#0075: GR3: 4 = #0004 = 0000000000000100 +#0075: GR4: 0 = #0000 = 0000000000000000 +#0075: GR5: 0 = #0000 = 0000000000000000 +#0075: GR6: 0 = #0000 = 0000000000000000 +#0075: GR7: 0 = #0000 = 0000000000000000 +#0075: SP: 149 = #0095 = 0000000010010101 +#0075: PR: 117 = #0075 = 0000000001110101 +#0075: FR (OF SF ZF): 000 + +#0076: Register:::: +#0076: GR0: 36 = #0024 = 0000000000100100 = '$' +#0076: GR1: 24 = #0018 = 0000000000011000 +#0076: GR2: 3 = #0003 = 0000000000000011 +#0076: GR3: 1 = #0001 = 0000000000000001 +#0076: GR4: 0 = #0000 = 0000000000000000 +#0076: GR5: 0 = #0000 = 0000000000000000 +#0076: GR6: 0 = #0000 = 0000000000000000 +#0076: GR7: 0 = #0000 = 0000000000000000 +#0076: SP: 150 = #0096 = 0000000010010110 +#0076: PR: 118 = #0076 = 0000000001110110 +#0076: FR (OF SF ZF): 000 + +#0077: Register:::: +#0077: GR0: 36 = #0024 = 0000000000100100 = '$' +#0077: GR1: 12 = #000C = 0000000000001100 +#0077: GR2: 3 = #0003 = 0000000000000011 +#0077: GR3: 1 = #0001 = 0000000000000001 +#0077: GR4: 0 = #0000 = 0000000000000000 +#0077: GR5: 0 = #0000 = 0000000000000000 +#0077: GR6: 0 = #0000 = 0000000000000000 +#0077: GR7: 0 = #0000 = 0000000000000000 +#0077: SP: 151 = #0097 = 0000000010010111 +#0077: PR: 119 = #0077 = 0000000001110111 +#0077: FR (OF SF ZF): 000 + +#0037: Register:::: +#0037: GR0: 36 = #0024 = 0000000000100100 = '$' +#0037: GR1: 12 = #000C = 0000000000001100 +#0037: GR2: 3 = #0003 = 0000000000000011 +#0037: GR3: 1 = #0001 = 0000000000000001 +#0037: GR4: 0 = #0000 = 0000000000000000 +#0037: GR5: 0 = #0000 = 0000000000000000 +#0037: GR6: 0 = #0000 = 0000000000000000 +#0037: GR7: 0 = #0000 = 0000000000000000 +#0037: SP: 152 = #0098 = 0000000010011000 +#0037: PR: 55 = #0037 = 0000000000110111 +#0037: FR (OF SF ZF): 000 + +#0039: Register:::: +#0039: GR0: 36 = #0024 = 0000000000100100 = '$' +#0039: GR1: 12 = #000C = 0000000000001100 +#0039: GR2: 3 = #0003 = 0000000000000011 +#0039: GR3: 1 = #0001 = 0000000000000001 +#0039: GR4: 0 = #0000 = 0000000000000000 +#0039: GR5: 0 = #0000 = 0000000000000000 +#0039: GR6: 0 = #0000 = 0000000000000000 +#0039: GR7: 0 = #0000 = 0000000000000000 +#0039: SP: 152 = #0098 = 0000000010011000 +#0039: PR: 57 = #0039 = 0000000000111001 +#0039: FR (OF SF ZF): 000 + +#003A: Register:::: +#003A: GR0: 36 = #0024 = 0000000000100100 = '$' +#003A: GR1: 12 = #000C = 0000000000001100 +#003A: GR2: 3 = #0003 = 0000000000000011 +#003A: GR3: 1 = #0001 = 0000000000000001 +#003A: GR4: 0 = #0000 = 0000000000000000 +#003A: GR5: 0 = #0000 = 0000000000000000 +#003A: GR6: 0 = #0000 = 0000000000000000 +#003A: GR7: 0 = #0000 = 0000000000000000 +#003A: SP: 152 = #0098 = 0000000010011000 +#003A: PR: 58 = #003A = 0000000000111010 +#003A: FR (OF SF ZF): 000 + +#003C: Register:::: +#003C: GR0: 36 = #0024 = 0000000000100100 = '$' +#003C: GR1: 12 = #000C = 0000000000001100 +#003C: GR2: 3 = #0003 = 0000000000000011 +#003C: GR3: 1 = #0001 = 0000000000000001 +#003C: GR4: 0 = #0000 = 0000000000000000 +#003C: GR5: 0 = #0000 = 0000000000000000 +#003C: GR6: 0 = #0000 = 0000000000000000 +#003C: GR7: 0 = #0000 = 0000000000000000 +#003C: SP: 152 = #0098 = 0000000010011000 +#003C: PR: 60 = #003C = 0000000000111100 +#003C: FR (OF SF ZF): 000 + +#003D: Register:::: +#003D: GR0: 36 = #0024 = 0000000000100100 = '$' +#003D: GR1: 12 = #000C = 0000000000001100 +#003D: GR2: 3 = #0003 = 0000000000000011 +#003D: GR3: 1 = #0001 = 0000000000000001 +#003D: GR4: 0 = #0000 = 0000000000000000 +#003D: GR5: 0 = #0000 = 0000000000000000 +#003D: GR6: 0 = #0000 = 0000000000000000 +#003D: GR7: 0 = #0000 = 0000000000000000 +#003D: SP: 152 = #0098 = 0000000010011000 +#003D: PR: 61 = #003D = 0000000000111101 +#003D: FR (OF SF ZF): 001 + +#0047: Register:::: +#0047: GR0: 36 = #0024 = 0000000000100100 = '$' +#0047: GR1: 12 = #000C = 0000000000001100 +#0047: GR2: 3 = #0003 = 0000000000000011 +#0047: GR3: 1 = #0001 = 0000000000000001 +#0047: GR4: 0 = #0000 = 0000000000000000 +#0047: GR5: 0 = #0000 = 0000000000000000 +#0047: GR6: 0 = #0000 = 0000000000000000 +#0047: GR7: 0 = #0000 = 0000000000000000 +#0047: SP: 152 = #0098 = 0000000010011000 +#0047: PR: 71 = #0047 = 0000000001000111 +#0047: FR (OF SF ZF): 001 + +#0048: Register:::: +#0048: GR0: 36 = #0024 = 0000000000100100 = '$' +#0048: GR1: 12 = #000C = 0000000000001100 +#0048: GR2: 3 = #0003 = 0000000000000011 +#0048: GR3: 1 = #0001 = 0000000000000001 +#0048: GR4: 0 = #0000 = 0000000000000000 +#0048: GR5: 0 = #0000 = 0000000000000000 +#0048: GR6: 0 = #0000 = 0000000000000000 +#0048: GR7: 0 = #0000 = 0000000000000000 +#0048: SP: 153 = #0099 = 0000000010011001 +#0048: PR: 72 = #0048 = 0000000001001000 +#0048: FR (OF SF ZF): 001 + +#0049: Register:::: +#0049: GR0: 36 = #0024 = 0000000000100100 = '$' +#0049: GR1: 12 = #000C = 0000000000001100 +#0049: GR2: 3 = #0003 = 0000000000000011 +#0049: GR3: 1 = #0001 = 0000000000000001 +#0049: GR4: 0 = #0000 = 0000000000000000 +#0049: GR5: 0 = #0000 = 0000000000000000 +#0049: GR6: 0 = #0000 = 0000000000000000 +#0049: GR7: 0 = #0000 = 0000000000000000 +#0049: SP: 154 = #009A = 0000000010011010 +#0049: PR: 73 = #0049 = 0000000001001001 +#0049: FR (OF SF ZF): 001 + +#004A: Register:::: +#004A: GR0: 36 = #0024 = 0000000000100100 = '$' +#004A: GR1: 12 = #000C = 0000000000001100 +#004A: GR2: 3 = #0003 = 0000000000000011 +#004A: GR3: 1 = #0001 = 0000000000000001 +#004A: GR4: 0 = #0000 = 0000000000000000 +#004A: GR5: 0 = #0000 = 0000000000000000 +#004A: GR6: 0 = #0000 = 0000000000000000 +#004A: GR7: 0 = #0000 = 0000000000000000 +#004A: SP: 155 = #009B = 0000000010011011 +#004A: PR: 74 = #004A = 0000000001001010 +#004A: FR (OF SF ZF): 001 + +#004B: Register:::: +#004B: GR0: 36 = #0024 = 0000000000100100 = '$' +#004B: GR1: 12 = #000C = 0000000000001100 +#004B: GR2: 3 = #0003 = 0000000000000011 +#004B: GR3: 1 = #0001 = 0000000000000001 +#004B: GR4: 0 = #0000 = 0000000000000000 +#004B: GR5: 0 = #0000 = 0000000000000000 +#004B: GR6: 0 = #0000 = 0000000000000000 +#004B: GR7: 0 = #0000 = 0000000000000000 +#004B: SP: 156 = #009C = 0000000010011100 +#004B: PR: 75 = #004B = 0000000001001011 +#004B: FR (OF SF ZF): 001 + +#004C: Register:::: +#004C: GR0: 36 = #0024 = 0000000000100100 = '$' +#004C: GR1: 12 = #000C = 0000000000001100 +#004C: GR2: 3 = #0003 = 0000000000000011 +#004C: GR3: 0 = #0000 = 0000000000000000 +#004C: GR4: 0 = #0000 = 0000000000000000 +#004C: GR5: 0 = #0000 = 0000000000000000 +#004C: GR6: 0 = #0000 = 0000000000000000 +#004C: GR7: 0 = #0000 = 0000000000000000 +#004C: SP: 157 = #009D = 0000000010011101 +#004C: PR: 76 = #004C = 0000000001001100 +#004C: FR (OF SF ZF): 001 + +#004D: Register:::: +#004D: GR0: 36 = #0024 = 0000000000100100 = '$' +#004D: GR1: 12 = #000C = 0000000000001100 +#004D: GR2: 3 = #0003 = 0000000000000011 +#004D: GR3: 0 = #0000 = 0000000000000000 +#004D: GR4: 0 = #0000 = 0000000000000000 +#004D: GR5: 0 = #0000 = 0000000000000000 +#004D: GR6: 0 = #0000 = 0000000000000000 +#004D: GR7: 0 = #0000 = 0000000000000000 +#004D: SP: 158 = #009E = 0000000010011110 +#004D: PR: 77 = #004D = 0000000001001101 +#004D: FR (OF SF ZF): 001 + +#004E: Register:::: +#004E: GR0: 36 = #0024 = 0000000000100100 = '$' +#004E: GR1: 12 = #000C = 0000000000001100 +#004E: GR2: 3 = #0003 = 0000000000000011 +#004E: GR3: 0 = #0000 = 0000000000000000 +#004E: GR4: 0 = #0000 = 0000000000000000 +#004E: GR5: 0 = #0000 = 0000000000000000 +#004E: GR6: 0 = #0000 = 0000000000000000 +#004E: GR7: 0 = #0000 = 0000000000000000 +#004E: SP: 159 = #009F = 0000000010011111 +#004E: PR: 78 = #004E = 0000000001001110 +#004E: FR (OF SF ZF): 001 + +#0006: Register:::: +#0006: GR0: 36 = #0024 = 0000000000100100 = '$' +#0006: GR1: 12 = #000C = 0000000000001100 +#0006: GR2: 3 = #0003 = 0000000000000011 +#0006: GR3: 0 = #0000 = 0000000000000000 +#0006: GR4: 0 = #0000 = 0000000000000000 +#0006: GR5: 0 = #0000 = 0000000000000000 +#0006: GR6: 0 = #0000 = 0000000000000000 +#0006: GR7: 0 = #0000 = 0000000000000000 +#0006: SP: 160 = #00A0 = 0000000010100000 +#0006: PR: 6 = #0006 = 0000000000000110 +#0006: FR (OF SF ZF): 001 + diff --git a/as/casl2lib/test/mula/mula0/Makefile b/as/casl2lib/test/mula/mula0/Makefile new file mode 100644 index 0000000..963d37a --- /dev/null +++ b/as/casl2lib/test/mula/mula0/Makefile @@ -0,0 +1,7 @@ +YACASL2DIR= ../../../../.. +CASL2 = $(YACASL2DIR)/casl2 +CASL2FLAG = -at -M160 +CASL2LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = mula0.casl $(CASL2LIBDIR)/mula.casl +CMD = $(CASL2) $(CASL2FLAG) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/casl2lib_driver/mula_call0.casl b/as/casl2lib/test/mula/mula0/mula0.casl similarity index 100% rename from as/casl2lib_driver/mula_call0.casl rename to as/casl2lib/test/mula/mula0/mula0.casl diff --git a/as/casl2lib_driver/mula_call1.casl b/as/casl2lib/test/mula/mula_call1.casl similarity index 100% rename from as/casl2lib_driver/mula_call1.casl rename to as/casl2lib/test/mula/mula_call1.casl diff --git a/as/casl2lib_driver/mula_call2.casl b/as/casl2lib/test/mula/mula_call2.casl similarity index 100% rename from as/casl2lib_driver/mula_call2.casl rename to as/casl2lib/test/mula/mula_call2.casl diff --git a/as/casl2lib/test/mull/0.txt b/as/casl2lib/test/mull/0.txt new file mode 100644 index 0000000..8666054 --- /dev/null +++ b/as/casl2lib/test/mull/0.txt @@ -0,0 +1,485 @@ +../../../../casl2 mull.casl ../../../../as/casl2lib/mull.casl ../../../../as/casl2lib/outl.casl +0 +0 +0 +-------------------- +0 +1 +0 +-------------------- +0 +2 +0 +-------------------- +0 +127 +0 +-------------------- +0 +128 +0 +-------------------- +0 +255 +0 +-------------------- +0 +256 +0 +-------------------- +0 +257 +0 +-------------------- +0 +32767 +0 +-------------------- +0 +32768 +0 +-------------------- +0 +65535 +0 +-------------------- +1 +0 +0 +-------------------- +1 +1 +1 +-------------------- +1 +2 +2 +-------------------- +1 +127 +127 +-------------------- +1 +128 +128 +-------------------- +1 +255 +255 +-------------------- +1 +256 +256 +-------------------- +1 +257 +257 +-------------------- +1 +32767 +32767 +-------------------- +1 +32768 +32768 +-------------------- +1 +65535 +65535 +-------------------- +2 +0 +0 +-------------------- +2 +1 +2 +-------------------- +2 +2 +4 +-------------------- +2 +127 +254 +-------------------- +2 +128 +256 +-------------------- +2 +255 +510 +-------------------- +2 +256 +512 +-------------------- +2 +257 +514 +-------------------- +2 +32767 +65534 +-------------------- +2 +32768 +Warning: overflow +-------------------- +2 +65535 +Warning: overflow +-------------------- +127 +0 +0 +-------------------- +127 +1 +127 +-------------------- +127 +2 +254 +-------------------- +127 +127 +16129 +-------------------- +127 +128 +16256 +-------------------- +127 +255 +32385 +-------------------- +127 +256 +32512 +-------------------- +127 +257 +32639 +-------------------- +127 +32767 +Warning: overflow +-------------------- +127 +32768 +Warning: overflow +-------------------- +127 +65535 +Warning: overflow +-------------------- +128 +0 +0 +-------------------- +128 +1 +128 +-------------------- +128 +2 +256 +-------------------- +128 +127 +16256 +-------------------- +128 +128 +16384 +-------------------- +128 +255 +32640 +-------------------- +128 +256 +32768 +-------------------- +128 +257 +32896 +-------------------- +128 +32767 +Warning: overflow +-------------------- +128 +32768 +Warning: overflow +-------------------- +128 +65535 +Warning: overflow +-------------------- +255 +0 +0 +-------------------- +255 +1 +255 +-------------------- +255 +2 +510 +-------------------- +255 +127 +32385 +-------------------- +255 +128 +32640 +-------------------- +255 +255 +65025 +-------------------- +255 +256 +65280 +-------------------- +255 +257 +65535 +-------------------- +255 +32767 +Warning: overflow +-------------------- +255 +32768 +Warning: overflow +-------------------- +255 +65535 +Warning: overflow +-------------------- +256 +0 +0 +-------------------- +256 +1 +256 +-------------------- +256 +2 +512 +-------------------- +256 +127 +32512 +-------------------- +256 +128 +32768 +-------------------- +256 +255 +65280 +-------------------- +256 +256 +Warning: overflow +-------------------- +256 +257 +Warning: overflow +-------------------- +256 +32767 +Warning: overflow +-------------------- +256 +32768 +Warning: overflow +-------------------- +256 +65535 +Warning: overflow +-------------------- +257 +0 +0 +-------------------- +257 +1 +257 +-------------------- +257 +2 +514 +-------------------- +257 +127 +32639 +-------------------- +257 +128 +32896 +-------------------- +257 +255 +65535 +-------------------- +257 +256 +Warning: overflow +-------------------- +257 +257 +Warning: overflow +-------------------- +257 +32767 +Warning: overflow +-------------------- +257 +32768 +Warning: overflow +-------------------- +257 +65535 +Warning: overflow +-------------------- +32767 +0 +0 +-------------------- +32767 +1 +32767 +-------------------- +32767 +2 +65534 +-------------------- +32767 +127 +Warning: overflow +-------------------- +32767 +128 +Warning: overflow +-------------------- +32767 +255 +Warning: overflow +-------------------- +32767 +256 +Warning: overflow +-------------------- +32767 +257 +Warning: overflow +-------------------- +32767 +32767 +Warning: overflow +-------------------- +32767 +32768 +Warning: overflow +-------------------- +32767 +65535 +Warning: overflow +-------------------- +32768 +0 +0 +-------------------- +32768 +1 +32768 +-------------------- +32768 +2 +Warning: overflow +-------------------- +32768 +127 +Warning: overflow +-------------------- +32768 +128 +Warning: overflow +-------------------- +32768 +255 +Warning: overflow +-------------------- +32768 +256 +Warning: overflow +-------------------- +32768 +257 +Warning: overflow +-------------------- +32768 +32767 +Warning: overflow +-------------------- +32768 +32768 +Warning: overflow +-------------------- +32768 +65535 +Warning: overflow +-------------------- +65535 +0 +0 +-------------------- +65535 +1 +65535 +-------------------- +65535 +2 +Warning: overflow +-------------------- +65535 +127 +Warning: overflow +-------------------- +65535 +128 +Warning: overflow +-------------------- +65535 +255 +Warning: overflow +-------------------- +65535 +256 +Warning: overflow +-------------------- +65535 +257 +Warning: overflow +-------------------- +65535 +32767 +Warning: overflow +-------------------- +65535 +32768 +Warning: overflow +-------------------- +65535 +65535 +Warning: overflow +-------------------- diff --git a/as/casl2lib/test/mull/Makefile b/as/casl2lib/test/mull/Makefile new file mode 100644 index 0000000..d7fd994 --- /dev/null +++ b/as/casl2lib/test/mull/Makefile @@ -0,0 +1,6 @@ +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = mull.casl $(LIBDIR)/mull.casl $(LIBDIR)/outl.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/casl2lib_driver/mull_call.casl b/as/casl2lib/test/mull/mull.casl similarity index 93% rename from as/casl2lib_driver/mull_call.casl rename to as/casl2lib/test/mull/mull.casl index 5b03a07..b7d6997 100644 --- a/as/casl2lib_driver/mull_call.casl +++ b/as/casl2lib/test/mull/mull.casl @@ -7,7 +7,6 @@ LOOPX CPA GR3,XCNT ; (GR3 = XCNT)の場合、ループ脱出 LOOPY CPA GR4,YCNT ; (GR4 = YCNT)の場合、ループ脱出 JZE XNEXT ; ↓ LD GR2,Y,GR4 ; GR2に、(X+GR4)番地の値を転送 - OUT SEP,SLEN ; 区切り線を出力 CALL OUTL ; GR1の数値を出力 PUSH 0,GR1 ; GR2の数値を出力 LD GR1,GR2 ; ↓ @@ -15,7 +14,7 @@ LOOPY CPA GR4,YCNT ; (GR4 = YCNT)の場合、ループ脱出 POP GR1 ; ↓ CALL MULL ; GR0 <- GR1 * GR2 JOV WOV ; オーバーフローの場合は、WOVへジャンプ - PUSH 0,GR1 ; GR0の数値を出力 + PUSH 0,GR1 ; GR0の数値を出力 LD GR1,GR0 ; ↓ CALL OUTL ; ↓ POP GR1 ; ↓ diff --git a/as/casl2lib_driver/mull_call0.casl b/as/casl2lib/test/mull/mull_call0.casl similarity index 100% rename from as/casl2lib_driver/mull_call0.casl rename to as/casl2lib/test/mull/mull_call0.casl diff --git a/as/casl2lib_driver/mull_call1.casl b/as/casl2lib/test/mull/mull_call1.casl similarity index 100% rename from as/casl2lib_driver/mull_call1.casl rename to as/casl2lib/test/mull/mull_call1.casl diff --git a/as/casl2lib/test/outa/0.txt b/as/casl2lib/test/outa/0.txt new file mode 100644 index 0000000..3cf5382 --- /dev/null +++ b/as/casl2lib/test/outa/0.txt @@ -0,0 +1,35 @@ +../../../../casl2 ../../../../as/FUNC/outa_call.casl ../../../../as/FUNC/outa.casl +0 +1 +2 +4 +8 +16 +32 +64 +128 +256 +512 +1024 +2048 +4096 +8192 +16384 +32767 +-32768 +-32767 +-16384 +-8192 +-4096 +-2048 +-1024 +-512 +-256 +-128 +-64 +-32 +-16 +-8 +-4 +-2 +-1 diff --git a/as/casl2lib/test/outa/1.txt b/as/casl2lib/test/outa/1.txt new file mode 100644 index 0000000..3cf5382 --- /dev/null +++ b/as/casl2lib/test/outa/1.txt @@ -0,0 +1,35 @@ +../../../../casl2 ../../../../as/FUNC/outa_call.casl ../../../../as/FUNC/outa.casl +0 +1 +2 +4 +8 +16 +32 +64 +128 +256 +512 +1024 +2048 +4096 +8192 +16384 +32767 +-32768 +-32767 +-16384 +-8192 +-4096 +-2048 +-1024 +-512 +-256 +-128 +-64 +-32 +-16 +-8 +-4 +-2 +-1 diff --git a/as/misc/divl0_test/Makefile b/as/casl2lib/test/outa/Makefile similarity index 54% rename from as/misc/divl0_test/Makefile rename to as/casl2lib/test/outa/Makefile index ef00902..3747f3c 100644 --- a/as/misc/divl0_test/Makefile +++ b/as/casl2lib/test/outa/Makefile @@ -1,5 +1,5 @@ include ../CMD.mk # YACASL2DIR, CASL2 ASDIR = $(YACASL2DIR)/as/FUNC -ASFILE = $(ASDIR)/divl_call.casl $(ASDIR)/divl0.casl $(ASDIR)/outl_main.casl $(ASDIR)/rev.casl +ASFILE = $(ASDIR)/outa_call.casl $(ASDIR)/outa.casl CMD = $(CASL2) $(ASFILE) include ../TEST.mk diff --git a/as/casl2lib_driver/outa_call.casl b/as/casl2lib/test/outa/outa_call.casl similarity index 100% rename from as/casl2lib_driver/outa_call.casl rename to as/casl2lib/test/outa/outa_call.casl diff --git a/as/casl2lib_driver/outa_call1.casl b/as/casl2lib/test/outa/outa_call1.casl similarity index 100% rename from as/casl2lib_driver/outa_call1.casl rename to as/casl2lib/test/outa/outa_call1.casl diff --git a/as/casl2lib_driver/outa_call2.casl b/as/casl2lib/test/outa/outa_call2.casl similarity index 100% rename from as/casl2lib_driver/outa_call2.casl rename to as/casl2lib/test/outa/outa_call2.casl diff --git a/as/casl2lib/test/outa/report.txt b/as/casl2lib/test/outa/report.txt new file mode 100644 index 0000000..6fa3d4c --- /dev/null +++ b/as/casl2lib/test/outa/report.txt @@ -0,0 +1 @@ +outa_call: Test Success 2010-02-12 01:13:06 diff --git a/as/casl2lib/test/outb/0.txt b/as/casl2lib/test/outb/0.txt new file mode 100644 index 0000000..042c126 --- /dev/null +++ b/as/casl2lib/test/outb/0.txt @@ -0,0 +1,35 @@ +../../../../casl2 ../../../../as/FUNC/outb_call.casl ../../../../as/FUNC/outb.casl +0000000000000000 +0000000000000001 +0000000000000010 +0000000000000100 +0000000000001000 +0000000000010000 +0000000000100000 +0000000001000000 +0000000010000000 +0000000100000000 +0000001000000000 +0000010000000000 +0000100000000000 +0001000000000000 +0010000000000000 +0100000000000000 +0111111111111111 +1000000000000000 +1000000000000001 +1100000000000000 +1110000000000000 +1111000000000000 +1111100000000000 +1111110000000000 +1111111000000000 +1111111100000000 +1111111110000000 +1111111111000000 +1111111111100000 +1111111111110000 +1111111111111000 +1111111111111100 +1111111111111110 +1111111111111111 diff --git a/as/casl2lib/test/outb/1.txt b/as/casl2lib/test/outb/1.txt new file mode 100644 index 0000000..042c126 --- /dev/null +++ b/as/casl2lib/test/outb/1.txt @@ -0,0 +1,35 @@ +../../../../casl2 ../../../../as/FUNC/outb_call.casl ../../../../as/FUNC/outb.casl +0000000000000000 +0000000000000001 +0000000000000010 +0000000000000100 +0000000000001000 +0000000000010000 +0000000000100000 +0000000001000000 +0000000010000000 +0000000100000000 +0000001000000000 +0000010000000000 +0000100000000000 +0001000000000000 +0010000000000000 +0100000000000000 +0111111111111111 +1000000000000000 +1000000000000001 +1100000000000000 +1110000000000000 +1111000000000000 +1111100000000000 +1111110000000000 +1111111000000000 +1111111100000000 +1111111110000000 +1111111111000000 +1111111111100000 +1111111111110000 +1111111111111000 +1111111111111100 +1111111111111110 +1111111111111111 diff --git a/as/casl2lib/test/outb/Makefile b/as/casl2lib/test/outb/Makefile new file mode 100644 index 0000000..0bb8de2 --- /dev/null +++ b/as/casl2lib/test/outb/Makefile @@ -0,0 +1,5 @@ +include ../CMD.mk # YACASL2DIR, CASL2 +ASDIR = $(YACASL2DIR)/as/FUNC +ASFILE = $(ASDIR)/outb_call.casl $(ASDIR)/outb.casl +CMD = $(CASL2) $(ASFILE) +include ../TEST.mk diff --git a/as/casl2lib_driver/outb_call.casl b/as/casl2lib/test/outb/outb_call.casl similarity index 100% rename from as/casl2lib_driver/outb_call.casl rename to as/casl2lib/test/outb/outb_call.casl diff --git a/as/casl2lib/test/outb/report.txt b/as/casl2lib/test/outb/report.txt new file mode 100644 index 0000000..5d84ab9 --- /dev/null +++ b/as/casl2lib/test/outb/report.txt @@ -0,0 +1 @@ +outb_call: Test Success 2010-02-12 01:13:06 diff --git a/as/casl2lib/test/outd_q15/0.txt b/as/casl2lib/test/outd_q15/0.txt new file mode 100644 index 0000000..2c0a4cd --- /dev/null +++ b/as/casl2lib/test/outd_q15/0.txt @@ -0,0 +1,34 @@ +../../../../casl2 ../../../../as/FUNC/outd_q15_call.casl ../../../../as/FUNC/outd_q15.casl +0.999969482421875 +0.5 +0.25 +0.125 +0.0625 +0.03125 +0.015625 +0.0078125 +0.00390625 +0.001953125 +0.0009765625 +0.00048828125 +0.000244140625 +0.0001220703125 +0.00006103515625 +0.000030517578125 +-1 +-0.999969482421875 +-0.5 +-0.25 +-0.125 +-0.0625 +-0.03125 +-0.015625 +-0.0078125 +-0.00390625 +-0.001953125 +-0.0009765625 +-0.00048828125 +-0.000244140625 +-0.0001220703125 +-0.00006103515625 +-0.000030517578125 diff --git a/as/casl2lib/test/outd_q15/1.txt b/as/casl2lib/test/outd_q15/1.txt new file mode 100644 index 0000000..2c0a4cd --- /dev/null +++ b/as/casl2lib/test/outd_q15/1.txt @@ -0,0 +1,34 @@ +../../../../casl2 ../../../../as/FUNC/outd_q15_call.casl ../../../../as/FUNC/outd_q15.casl +0.999969482421875 +0.5 +0.25 +0.125 +0.0625 +0.03125 +0.015625 +0.0078125 +0.00390625 +0.001953125 +0.0009765625 +0.00048828125 +0.000244140625 +0.0001220703125 +0.00006103515625 +0.000030517578125 +-1 +-0.999969482421875 +-0.5 +-0.25 +-0.125 +-0.0625 +-0.03125 +-0.015625 +-0.0078125 +-0.00390625 +-0.001953125 +-0.0009765625 +-0.00048828125 +-0.000244140625 +-0.0001220703125 +-0.00006103515625 +-0.000030517578125 diff --git a/as/casl2lib/test/outd_q15/Makefile b/as/casl2lib/test/outd_q15/Makefile new file mode 100644 index 0000000..3a82670 --- /dev/null +++ b/as/casl2lib/test/outd_q15/Makefile @@ -0,0 +1,5 @@ +include ../CMD.mk # YACASL2DIR, CASL2 +ASDIR = $(YACASL2DIR)/as/FUNC +ASFILE = $(ASDIR)/outd_q15_call.casl $(ASDIR)/outd_q15.casl +CMD = $(CASL2) $(ASFILE) +include ../TEST.mk diff --git a/as/casl2lib_driver/outd_q15_call.casl b/as/casl2lib/test/outd_q15/outd_q15_call.casl similarity index 100% rename from as/casl2lib_driver/outd_q15_call.casl rename to as/casl2lib/test/outd_q15/outd_q15_call.casl diff --git a/as/casl2lib_driver/outd_q15_call0.casl b/as/casl2lib/test/outd_q15/outd_q15_call0.casl similarity index 100% rename from as/casl2lib_driver/outd_q15_call0.casl rename to as/casl2lib/test/outd_q15/outd_q15_call0.casl diff --git a/as/casl2lib/test/outd_q15/report.txt b/as/casl2lib/test/outd_q15/report.txt new file mode 100644 index 0000000..3eb8090 --- /dev/null +++ b/as/casl2lib/test/outd_q15/report.txt @@ -0,0 +1 @@ +outd_q15_call: Test Success 2010-02-12 01:13:06 diff --git a/as/casl2lib/test/outl/0.txt b/as/casl2lib/test/outl/0.txt new file mode 100644 index 0000000..4b14c37 --- /dev/null +++ b/as/casl2lib/test/outl/0.txt @@ -0,0 +1,35 @@ +../../../../casl2 ../../../../as/FUNC/outl_call.casl ../../../../as/FUNC/outl.casl +0 +1 +2 +4 +8 +16 +32 +64 +128 +256 +512 +1024 +2048 +4096 +8192 +16384 +32767 +32768 +32769 +49152 +57344 +61440 +63488 +64512 +65024 +65280 +65408 +65472 +65504 +65520 +65528 +65532 +65534 +65535 diff --git a/as/casl2lib/test/outl/1.txt b/as/casl2lib/test/outl/1.txt new file mode 100644 index 0000000..4b14c37 --- /dev/null +++ b/as/casl2lib/test/outl/1.txt @@ -0,0 +1,35 @@ +../../../../casl2 ../../../../as/FUNC/outl_call.casl ../../../../as/FUNC/outl.casl +0 +1 +2 +4 +8 +16 +32 +64 +128 +256 +512 +1024 +2048 +4096 +8192 +16384 +32767 +32768 +32769 +49152 +57344 +61440 +63488 +64512 +65024 +65280 +65408 +65472 +65504 +65520 +65528 +65532 +65534 +65535 diff --git a/as/casl2lib/test/outl/Makefile b/as/casl2lib/test/outl/Makefile new file mode 100644 index 0000000..1af77f7 --- /dev/null +++ b/as/casl2lib/test/outl/Makefile @@ -0,0 +1,5 @@ +include ../CMD.mk # YACASL2DIR, CASL2 +ASDIR = $(YACASL2DIR)/as +ASFILE = $(ASDIR)/FUNC/outl_call.casl $(ASDIR)/FUNC/outl.casl +CMD = $(CASL2) $(ASFILE) +include ../TEST.mk diff --git a/as/casl2lib_driver/outl_call.casl b/as/casl2lib/test/outl/outl_call.casl similarity index 100% rename from as/casl2lib_driver/outl_call.casl rename to as/casl2lib/test/outl/outl_call.casl diff --git a/as/casl2lib_driver/outl_call0.casl b/as/casl2lib/test/outl/outl_call0.casl similarity index 100% rename from as/casl2lib_driver/outl_call0.casl rename to as/casl2lib/test/outl/outl_call0.casl diff --git a/as/casl2lib_driver/outl_call1.casl b/as/casl2lib/test/outl/outl_call1.casl similarity index 100% rename from as/casl2lib_driver/outl_call1.casl rename to as/casl2lib/test/outl/outl_call1.casl diff --git a/as/casl2lib_driver/outl_call2.casl b/as/casl2lib/test/outl/outl_call2.casl similarity index 100% rename from as/casl2lib_driver/outl_call2.casl rename to as/casl2lib/test/outl/outl_call2.casl diff --git a/as/casl2lib/test/outl/report.txt b/as/casl2lib/test/outl/report.txt new file mode 100644 index 0000000..db6b765 --- /dev/null +++ b/as/casl2lib/test/outl/report.txt @@ -0,0 +1 @@ +outl_call: Test Success 2010-02-12 01:13:06 diff --git a/as/casl2lib/test/rev/0.txt b/as/casl2lib/test/rev/0.txt new file mode 100644 index 0000000..60268ad --- /dev/null +++ b/as/casl2lib/test/rev/0.txt @@ -0,0 +1,3 @@ +../../../../casl2 ../../../../as/FUNC/rev_call.casl ../../../../as/FUNC/rev.casl +12345 +54321 diff --git a/as/casl2lib/test/rev/1.txt b/as/casl2lib/test/rev/1.txt new file mode 100644 index 0000000..60268ad --- /dev/null +++ b/as/casl2lib/test/rev/1.txt @@ -0,0 +1,3 @@ +../../../../casl2 ../../../../as/FUNC/rev_call.casl ../../../../as/FUNC/rev.casl +12345 +54321 diff --git a/as/casl2lib/test/rev/Makefile b/as/casl2lib/test/rev/Makefile new file mode 100644 index 0000000..8239a50 --- /dev/null +++ b/as/casl2lib/test/rev/Makefile @@ -0,0 +1,5 @@ +include ../CMD.mk # YACASL2DIR, CASL2 +ASDIR = $(YACASL2DIR)/as/FUNC +ASFILE = $(ASDIR)/rev_call.casl $(ASDIR)/rev.casl +CMD = $(CASL2) $(CASL2FLAG) $(ASFILE) +include ../TEST.mk diff --git a/as/casl2lib/test/rev/report.txt b/as/casl2lib/test/rev/report.txt new file mode 100644 index 0000000..cd94214 --- /dev/null +++ b/as/casl2lib/test/rev/report.txt @@ -0,0 +1 @@ +rev_call: Test Success 2010-02-12 01:13:07 diff --git a/as/casl2lib_driver/rev_call.casl b/as/casl2lib/test/rev/rev_call.casl similarity index 100% rename from as/casl2lib_driver/rev_call.casl rename to as/casl2lib/test/rev/rev_call.casl diff --git a/as/casl2lib/test/sum/0.txt b/as/casl2lib/test/sum/0.txt new file mode 100644 index 0000000..ea8a2ce --- /dev/null +++ b/as/casl2lib/test/sum/0.txt @@ -0,0 +1,2 @@ +../../../../casl2 ../../../../as/FUNC/sum_call.casl ../../../../as/FUNC/sum.casl ../../../../as/FUNC/outl.casl +65341 diff --git a/as/casl2lib/test/sum/1.txt b/as/casl2lib/test/sum/1.txt new file mode 100644 index 0000000..ea8a2ce --- /dev/null +++ b/as/casl2lib/test/sum/1.txt @@ -0,0 +1,2 @@ +../../../../casl2 ../../../../as/FUNC/sum_call.casl ../../../../as/FUNC/sum.casl ../../../../as/FUNC/outl.casl +65341 diff --git a/as/casl2lib/test/sum/Makefile b/as/casl2lib/test/sum/Makefile new file mode 100644 index 0000000..f52e4b3 --- /dev/null +++ b/as/casl2lib/test/sum/Makefile @@ -0,0 +1,5 @@ +include ../CMD.mk # YACASL2DIR, CASL2 +ASDIR = $(YACASL2DIR)/as/FUNC +ASFILE = $(ASDIR)/sum_call.casl $(ASDIR)/sum.casl $(ASDIR)/outl.casl +CMD = $(CASL2) $(ASFILE) +include ../TEST.mk diff --git a/as/casl2lib/test/sum/report.txt b/as/casl2lib/test/sum/report.txt new file mode 100644 index 0000000..afde31f --- /dev/null +++ b/as/casl2lib/test/sum/report.txt @@ -0,0 +1 @@ +sum_call: Test Success 2010-02-12 01:13:08 diff --git a/as/casl2lib_driver/sum_call.casl b/as/casl2lib/test/sum/sum_call.casl similarity index 100% rename from as/casl2lib_driver/sum_call.casl rename to as/casl2lib/test/sum/sum_call.casl diff --git a/as/casl2lib_driver/inl.casl b/as/casl2lib_driver/inl.casl deleted file mode 100644 index b24c688..0000000 --- a/as/casl2lib_driver/inl.casl +++ /dev/null @@ -1,14 +0,0 @@ -;;; casl2 inl.casl ../casl2lib/inl.casl ../casl2lib/outl.caslg -MAIN START -LOOP CALL INL ; GR1に数値、GR0に文字列の長さ - JOV NAN - AND GR0,GR0 - JZE FIN - CALL OUTL - JUMP LOOP -NAN OUT NANMSG,MLEN - JUMP LOOP -FIN RET -NANMSG DC 'Not A Number' -MLEN DC 12 - END diff --git a/as/err/cmd_err0.casl b/as/err/cmd_err0.casl deleted file mode 100644 index 82efe3e..0000000 --- a/as/err/cmd_err0.casl +++ /dev/null @@ -1,6 +0,0 @@ -MAIN START BEGIN -BEGIN LAD GR1,3 - LAD GR2,2 - LEA GR1,GR2 - RET - END diff --git a/as/err/cmd_err1.casl b/as/err/cmd_err1.casl deleted file mode 100644 index c90bc38..0000000 --- a/as/err/cmd_err1.casl +++ /dev/null @@ -1,5 +0,0 @@ -MAIN START BEGIN -BEGIN LEA GR1,A - RET -A DC 3 - END diff --git a/as/err/dc_c1_err.casl b/as/err/dc_c1_err.casl deleted file mode 100644 index dd05608..0000000 --- a/as/err/dc_c1_err.casl +++ /dev/null @@ -1,7 +0,0 @@ -;; DC 文字定数 -MAIN START - RET - DC ' !"#$%&''()*+,-./0123456789:;<=>?@ABCDEFG' - DC 'GHIJKLMNOPQRSTUVWXYZ[\]^_abcdefghijklmnop' - DC 'pqrstuvwxyz{|}~' - END diff --git a/as/err/labeldup_err.casl b/as/err/err_101.casl similarity index 100% rename from as/err/labeldup_err.casl rename to as/err/err_101.casl diff --git a/as/err/err_106_DC.casl b/as/err/err_106_DC.casl new file mode 100644 index 0000000..e799d6a --- /dev/null +++ b/as/err/err_106_DC.casl @@ -0,0 +1,4 @@ +MAIN START + RET + DC + END diff --git a/as/err/ds_err.casl b/as/err/err_106_DS.casl similarity index 51% rename from as/err/ds_err.casl rename to as/err/err_106_DS.casl index 666484d..81c395f 100644 --- a/as/err/ds_err.casl +++ b/as/err/err_106_DS.casl @@ -1,6 +1,5 @@ MAIN START - LAD GR0,=10 - ST GR0,A -A DS + LD GR1,A RET +A DS END diff --git a/as/err/err_109.casl b/as/err/err_109.casl new file mode 100644 index 0000000..928dd91 --- /dev/null +++ b/as/err/err_109.casl @@ -0,0 +1,4 @@ +MAIN START + LEA GR1,GR2 + RET + END diff --git a/as/err/err_110.casl b/as/err/err_110.casl new file mode 100644 index 0000000..944742c --- /dev/null +++ b/as/err/err_110.casl @@ -0,0 +1,5 @@ +MAIN START + LEA GR1,A + RET +A DC 3 + END diff --git a/as/err/err_118.casl b/as/err/err_118.casl new file mode 100644 index 0000000..5d2d720 --- /dev/null +++ b/as/err/err_118.casl @@ -0,0 +1,4 @@ +MAIN START + RET + DC '12345678901234567890123456789012345678901' + END diff --git a/as/err/err_124.casl b/as/err/err_124.casl new file mode 100644 index 0000000..c3a4061 --- /dev/null +++ b/as/err/err_124.casl @@ -0,0 +1,4 @@ +MAIN START + LAD GR1,='ab' +END RET + END diff --git a/as/err/literalstr_err.casl b/as/err/literalstr_err.casl deleted file mode 100644 index 6abe2a3..0000000 --- a/as/err/literalstr_err.casl +++ /dev/null @@ -1,13 +0,0 @@ -MAIN START - LAD GR1,='abcdeABCDE' - LAD GR2,10 -LOOP CPA GR2,=0 - JZE LEND - JMI LEND - LD GR3,0,GR1 - ADDA GR1,=1 - SUBA GR2,=1 - JUMP LOOP -LEND RET -LEN DC 5 - END diff --git a/as/err/opd_x_err.casl b/as/err/opd_x_err.casl index ee98241..bec8e00 100644 --- a/as/err/opd_x_err.casl +++ b/as/err/opd_x_err.casl @@ -1,9 +1,5 @@ -;;; ADDA r,adr,x 演算結果が負数(r < adr) MAIN START - LD GR1,A - LAD GR2,1 - ADDA GR1,A,1 + LD GR1,A,1 RET -A DC -10 - DC 20 +A DC 0,1 END diff --git a/as/fe_tests/2008_04/Q09/token_call.casl b/as/fe_tests/2008_04/Q09/token_call.casl index bd42226..9ed899b 100644 --- a/as/fe_tests/2008_04/Q09/token_call.casl +++ b/as/fe_tests/2008_04/Q09/token_call.casl @@ -5,5 +5,5 @@ MAIN START RET DS 93 STR DC ' THIS 1234 AN9999.' -TBL DS 100 +TBL DS 100 END diff --git a/as/fe_tests/2008_10/Q09/test_ptn1/0.txt b/as/fe_tests/2008_10/Q09/test_ptn1/0.txt new file mode 100644 index 0000000..ff9bad1 --- /dev/null +++ b/as/fe_tests/2008_10/Q09/test_ptn1/0.txt @@ -0,0 +1,2 @@ +../../../../../casl2 test_ptn1.casl ../ptn1.casl ../../../../../as/casl2lib/outb.casl +1111111111100000 diff --git a/as/fe_tests/2008_10/Q09/test_ptn1/Makefile b/as/fe_tests/2008_10/Q09/test_ptn1/Makefile new file mode 100644 index 0000000..9b30969 --- /dev/null +++ b/as/fe_tests/2008_10/Q09/test_ptn1/Makefile @@ -0,0 +1,6 @@ +YACASL2DIR= ../../../../.. +CASL2 = $(YACASL2DIR)/casl2 +CASL2LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = test_ptn1.casl ../ptn1.casl $(CASL2LIBDIR)/outb.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/fe_tests/2008_10/Q09/ptn1_call.casl b/as/fe_tests/2008_10/Q09/test_ptn1/test_ptn1.casl similarity index 100% rename from as/fe_tests/2008_10/Q09/ptn1_call.casl rename to as/fe_tests/2008_10/Q09/test_ptn1/test_ptn1.casl diff --git a/as/fe_tests/2008_10/Q09/test_ptn2/0.txt b/as/fe_tests/2008_10/Q09/test_ptn2/0.txt new file mode 100644 index 0000000..7a4395f --- /dev/null +++ b/as/fe_tests/2008_10/Q09/test_ptn2/0.txt @@ -0,0 +1,2 @@ +../../../../../casl2 testptn2.casl ../ptn2.casl ../../../../../as/casl2lib/outb.casl +0000000000011111 diff --git a/as/fe_tests/2008_10/Q09/test_ptn2/Makefile b/as/fe_tests/2008_10/Q09/test_ptn2/Makefile new file mode 100644 index 0000000..2d72cac --- /dev/null +++ b/as/fe_tests/2008_10/Q09/test_ptn2/Makefile @@ -0,0 +1,6 @@ +YACASL2DIR= ../../../../.. +CASL2 = $(YACASL2DIR)/casl2 +CASL2LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = test_ptn2.casl ../ptn2.casl $(CASL2LIBDIR)/outb.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/fe_tests/2008_10/Q09/ptn2_call.casl b/as/fe_tests/2008_10/Q09/test_ptn2/test_ptn2.casl similarity index 100% rename from as/fe_tests/2008_10/Q09/ptn2_call.casl rename to as/fe_tests/2008_10/Q09/test_ptn2/test_ptn2.casl diff --git a/as/fe_tests/2008_10/Q09/test_ptn3/0.txt b/as/fe_tests/2008_10/Q09/test_ptn3/0.txt new file mode 100644 index 0000000..7920706 --- /dev/null +++ b/as/fe_tests/2008_10/Q09/test_ptn3/0.txt @@ -0,0 +1,2 @@ +../../../../../casl2 testptn3.casl ../ptn3.casl ../../../../../as/casl2lib/outb.casl +0000000000100000 diff --git a/as/fe_tests/2008_10/Q09/test_ptn3/Makefile b/as/fe_tests/2008_10/Q09/test_ptn3/Makefile new file mode 100644 index 0000000..568739e --- /dev/null +++ b/as/fe_tests/2008_10/Q09/test_ptn3/Makefile @@ -0,0 +1,6 @@ +YACASL2DIR= ../../../../.. +CASL2 = $(YACASL2DIR)/casl2 +CASL2LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = test_ptn3.casl ../ptn3.casl $(CASL2LIBDIR)/outb.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/fe_tests/2008_10/Q09/ptn3_call.casl b/as/fe_tests/2008_10/Q09/test_ptn3/test_ptn3.casl similarity index 100% rename from as/fe_tests/2008_10/Q09/ptn3_call.casl rename to as/fe_tests/2008_10/Q09/test_ptn3/test_ptn3.casl diff --git a/as/fe_tests/2008_10/Q09/test_ptn4/0.txt b/as/fe_tests/2008_10/Q09/test_ptn4/0.txt new file mode 100644 index 0000000..ccff634 --- /dev/null +++ b/as/fe_tests/2008_10/Q09/test_ptn4/0.txt @@ -0,0 +1,2 @@ +../../../../../casl2 test_ptn4.casl ../ptn4.casl ../ptn1.casl ../ptn2.casl ../../../../../as/casl2lib/outb.casl +1111100000011111 diff --git a/as/fe_tests/2008_10/Q09/test_ptn4/Makefile b/as/fe_tests/2008_10/Q09/test_ptn4/Makefile new file mode 100644 index 0000000..42b4ba1 --- /dev/null +++ b/as/fe_tests/2008_10/Q09/test_ptn4/Makefile @@ -0,0 +1,6 @@ +YACASL2DIR= ../../../../.. +CASL2 = $(YACASL2DIR)/casl2 +CASL2LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = test_ptn4.casl ../ptn4.casl ../ptn1.casl ../ptn2.casl $(CASL2LIBDIR)/outb.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/fe_tests/2008_10/Q09/ptn4_call.casl b/as/fe_tests/2008_10/Q09/test_ptn4/test_ptn4.casl similarity index 100% rename from as/fe_tests/2008_10/Q09/ptn4_call.casl rename to as/fe_tests/2008_10/Q09/test_ptn4/test_ptn4.casl diff --git a/as/fe_tests/2008_10/Q13/testsummary/0.txt b/as/fe_tests/2008_10/Q13/testsummary/0.txt new file mode 100644 index 0000000..b1d6f4d --- /dev/null +++ b/as/fe_tests/2008_10/Q13/testsummary/0.txt @@ -0,0 +1,6 @@ +../../../../../casl2 testsummary.casl ../summary.casl + * + * * * * + * * * * * * * + * * * * * * * * * * * * * * * * +01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 diff --git a/as/fe_tests/2008_10/Q13/testsummary/Makefile b/as/fe_tests/2008_10/Q13/testsummary/Makefile new file mode 100644 index 0000000..b69201a --- /dev/null +++ b/as/fe_tests/2008_10/Q13/testsummary/Makefile @@ -0,0 +1,7 @@ +YACASL2DIR= ../../../../.. +CASL2 = $(YACASL2DIR)/casl2 +CASL2LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = testsummary.casl ../summary.casl +CMD = $(CASL2) $(ASFILE) +TESTDIR = $(YACASL2DIR)/test +include $(TESTDIR)/TEST.mk diff --git a/as/fe_tests/2008_10/Q13/summary_call.casl b/as/fe_tests/2008_10/Q13/testsummary/testsummary.casl similarity index 100% rename from as/fe_tests/2008_10/Q13/summary_call.casl rename to as/fe_tests/2008_10/Q13/testsummary/testsummary.casl diff --git a/as/fe_tests/2009_10/Q12/replace.casl b/as/fe_tests/2009_10/Q12/replace.casl index 6416213..0086976 100644 --- a/as/fe_tests/2009_10/Q12/replace.casl +++ b/as/fe_tests/2009_10/Q12/replace.casl @@ -1,11 +1,11 @@ -REPLACE START - RPUSH - LD GR4,GR2 ; GR4 ← p - SRL GR4,4 ; GR4 ← p/16 - ADDA GR1,GR4 ; GR1 を置換え対象語(第i語)に位置付ける。 - AND GR2,=#000F - LD GR4,=16 - SUBA GR4,GR2 +REPLACE START + RPUSH + LD GR4,GR2 ; GR4 ← p + SRL GR4,4 ; GR4 ← p/16 + ADDA GR1,GR4 ; GR1 を置換え対象語(第i語)に位置付ける。 + AND GR2,=#000F + LD GR4,=16 + SUBA GR4,GR2 LD GR5,GR0 LD GR6,=#8000 SUBA GR3,=1 @@ -16,15 +16,15 @@ REPLACE START SLL GR5,0,GR4 SLL GR7,0,GR4 LD GR2,0,GR1 - XOR GR6,GR2 ; 第i語のうち - AND GR2,GR6 ; ビット列Bを入れる部分を0にする。 - OR GR2,GR0 - ST GR2,0,GR1 - LD GR2,1,GR1 - XOR GR7,GR2 ; 第(i+1)語のうち - AND GR2,GR7 ; ビット列Bを入れる部分を0にする。 + XOR GR6,GR2 ; 第i語のうち + AND GR2,GR6 ; ビット列Bを入れる部分を0にする。 + OR GR2,GR0 + ST GR2,0,GR1 + LD GR2,1,GR1 + XOR GR7,GR2 ; 第(i+1)語のうち + AND GR2,GR7 ; ビット列Bを入れる部分を0にする。 OR GR2,GR5 ST GR2,1,GR1 RPOP - RET - END + RET + END diff --git a/as/misc/cnt60.casl b/as/misc/clocks.casl similarity index 51% rename from as/misc/cnt60.casl rename to as/misc/clocks.casl index 0cca4bf..551c6e5 100644 --- a/as/misc/cnt60.casl +++ b/as/misc/clocks.casl @@ -1,10 +1,13 @@ +;;; クロック数100のプログラム +;;; 「casl2 -O clocks.casl && time comet2 -C100 a.o」で、実行時間は約1秒 MAIN START LAD GR1,0 + NOP LOOP CPA GR1,CNT JZE FIN LAD GR1,1,GR1 NOP JUMP LOOP FIN RET -CNT DC 60 +CNT DC 19 END diff --git a/as/misc/fib_outl/1.txt b/as/misc/fib_outl/1.txt new file mode 100644 index 0000000..7d74a98 --- /dev/null +++ b/as/misc/fib_outl/1.txt @@ -0,0 +1,26 @@ +../../../../casl2 ../../../../as/FUNC/fib_outl.casl ../../../../as/FUNC/outl.casl +0 +1 +1 +2 +3 +5 +8 +13 +21 +34 +55 +89 +144 +233 +377 +610 +987 +1597 +2584 +4181 +6765 +10946 +17711 +28657 +46368 diff --git a/as/misc/fib_outl/report.txt b/as/misc/fib_outl/report.txt new file mode 100644 index 0000000..1389d97 --- /dev/null +++ b/as/misc/fib_outl/report.txt @@ -0,0 +1 @@ +fib_outl: Test Success 2010-02-12 01:12:42 diff --git a/as/misc/hanoi/0.txt b/as/misc/hanoi/0.txt new file mode 100644 index 0000000..c204ebb --- /dev/null +++ b/as/misc/hanoi/0.txt @@ -0,0 +1,211 @@ +../../../../casl2 -sla ../../../../as/misc/hanoi.casl + +Assemble ../../../../as/misc/hanoi.casl (0) +../../../../as/misc/hanoi.casl: 1:; ハノイの塔を解くプログラム +../../../../as/misc/hanoi.casl: 2:MAIN START +../../../../as/misc/hanoi.casl: 3: LD GR0,N +../../../../as/misc/hanoi.casl: 4: LD GR1,A +../../../../as/misc/hanoi.casl: 5: LD GR2,B +../../../../as/misc/hanoi.casl: 6: LD GR3,C +../../../../as/misc/hanoi.casl: 7: CALL HANOI +../../../../as/misc/hanoi.casl: 8: RET +../../../../as/misc/hanoi.casl: 9:HANOI CPA GR0,=1 +../../../../as/misc/hanoi.casl: 10: JZE DISP +../../../../as/misc/hanoi.casl: 11: SUBA GR0,=1 +../../../../as/misc/hanoi.casl: 12: PUSH 0,GR2 +../../../../as/misc/hanoi.casl: 13: PUSH 0,GR3 +../../../../as/misc/hanoi.casl: 14: POP GR2 +../../../../as/misc/hanoi.casl: 15: POP GR3 +../../../../as/misc/hanoi.casl: 16: CALL HANOI +../../../../as/misc/hanoi.casl: 17: PUSH 0,GR2 +../../../../as/misc/hanoi.casl: 18: PUSH 0,GR3 +../../../../as/misc/hanoi.casl: 19: POP GR2 +../../../../as/misc/hanoi.casl: 20: POP GR3 +../../../../as/misc/hanoi.casl: 21: CALL DISP +../../../../as/misc/hanoi.casl: 22: PUSH 0,GR1 +../../../../as/misc/hanoi.casl: 23: PUSH 0,GR2 +../../../../as/misc/hanoi.casl: 24: POP GR1 +../../../../as/misc/hanoi.casl: 25: POP GR2 +../../../../as/misc/hanoi.casl: 26: CALL HANOI +../../../../as/misc/hanoi.casl: 27: PUSH 0,GR1 +../../../../as/misc/hanoi.casl: 28: PUSH 0,GR2 +../../../../as/misc/hanoi.casl: 29: POP GR1 +../../../../as/misc/hanoi.casl: 30: POP GR2 +../../../../as/misc/hanoi.casl: 31: ADDA GR0,=1 +../../../../as/misc/hanoi.casl: 32: RET +../../../../as/misc/hanoi.casl: 33:DISP ST GR1,MSG1 +../../../../as/misc/hanoi.casl: 34: ST GR3,MSG2 +../../../../as/misc/hanoi.casl: 35: OUT MSG,LNG +../../../../as/misc/hanoi.casl: 36: RET +../../../../as/misc/hanoi.casl: 37:N DC 3 ; 輪の総数 +../../../../as/misc/hanoi.casl: 38:LNG DC 11 ; メッセージの長さ +../../../../as/misc/hanoi.casl: 39:A DC 'A' +../../../../as/misc/hanoi.casl: 40:B DC 'B' +../../../../as/misc/hanoi.casl: 41:C DC 'C' +../../../../as/misc/hanoi.casl: 42:MSG DC 'from ' +../../../../as/misc/hanoi.casl: 43:MSG1 DS 1 +../../../../as/misc/hanoi.casl: 44: DC ' to ' +../../../../as/misc/hanoi.casl: 45:MSG2 DS 1 +../../../../as/misc/hanoi.casl: 46: END + +Label:::: +MAIN.MSG ---> #004E +MAIN.MSG1 ---> #0053 +MAIN.MSG2 ---> #0058 +MAIN.A ---> #004B +MAIN.B ---> #004C +MAIN.C ---> #004D +MAIN.LNG ---> #004A +MAIN.N ---> #0049 +MAIN ---> #0000 +MAIN.DISP ---> #0032 +MAIN.HANOI ---> #000B + +Assemble ../../../../as/misc/hanoi.casl (1) +../../../../as/misc/hanoi.casl: 1:; ハノイの塔を解くプログラム +../../../../as/misc/hanoi.casl: 2:MAIN START +../../../../as/misc/hanoi.casl: 3: LD GR0,N + #0000 #1000 + #0001 #0049 +../../../../as/misc/hanoi.casl: 4: LD GR1,A + #0002 #1010 + #0003 #004B +../../../../as/misc/hanoi.casl: 5: LD GR2,B + #0004 #1020 + #0005 #004C +../../../../as/misc/hanoi.casl: 6: LD GR3,C + #0006 #1030 + #0007 #004D +../../../../as/misc/hanoi.casl: 7: CALL HANOI + #0008 #8000 + #0009 #000B +../../../../as/misc/hanoi.casl: 8: RET + #000A #8100 +../../../../as/misc/hanoi.casl: 9:HANOI CPA GR0,=1 + #0059 #0001 + #000B #4000 + #000C #0059 +../../../../as/misc/hanoi.casl: 10: JZE DISP + #000D #6300 + #000E #0032 +../../../../as/misc/hanoi.casl: 11: SUBA GR0,=1 + #005A #0001 + #000F #2100 + #0010 #005A +../../../../as/misc/hanoi.casl: 12: PUSH 0,GR2 + #0011 #7002 + #0012 #0000 +../../../../as/misc/hanoi.casl: 13: PUSH 0,GR3 + #0013 #7003 + #0014 #0000 +../../../../as/misc/hanoi.casl: 14: POP GR2 + #0015 #7120 +../../../../as/misc/hanoi.casl: 15: POP GR3 + #0016 #7130 +../../../../as/misc/hanoi.casl: 16: CALL HANOI + #0017 #8000 + #0018 #000B +../../../../as/misc/hanoi.casl: 17: PUSH 0,GR2 + #0019 #7002 + #001A #0000 +../../../../as/misc/hanoi.casl: 18: PUSH 0,GR3 + #001B #7003 + #001C #0000 +../../../../as/misc/hanoi.casl: 19: POP GR2 + #001D #7120 +../../../../as/misc/hanoi.casl: 20: POP GR3 + #001E #7130 +../../../../as/misc/hanoi.casl: 21: CALL DISP + #001F #8000 + #0020 #0032 +../../../../as/misc/hanoi.casl: 22: PUSH 0,GR1 + #0021 #7001 + #0022 #0000 +../../../../as/misc/hanoi.casl: 23: PUSH 0,GR2 + #0023 #7002 + #0024 #0000 +../../../../as/misc/hanoi.casl: 24: POP GR1 + #0025 #7110 +../../../../as/misc/hanoi.casl: 25: POP GR2 + #0026 #7120 +../../../../as/misc/hanoi.casl: 26: CALL HANOI + #0027 #8000 + #0028 #000B +../../../../as/misc/hanoi.casl: 27: PUSH 0,GR1 + #0029 #7001 + #002A #0000 +../../../../as/misc/hanoi.casl: 28: PUSH 0,GR2 + #002B #7002 + #002C #0000 +../../../../as/misc/hanoi.casl: 29: POP GR1 + #002D #7110 +../../../../as/misc/hanoi.casl: 30: POP GR2 + #002E #7120 +../../../../as/misc/hanoi.casl: 31: ADDA GR0,=1 + #005B #0001 + #002F #2000 + #0030 #005B +../../../../as/misc/hanoi.casl: 32: RET + #0031 #8100 +../../../../as/misc/hanoi.casl: 33:DISP ST GR1,MSG1 + #0032 #1110 + #0033 #0053 +../../../../as/misc/hanoi.casl: 34: ST GR3,MSG2 + #0034 #1130 + #0035 #0058 +../../../../as/misc/hanoi.casl: 35: OUT MSG,LNG + #0036 #7001 + #0037 #0000 + #0038 #7002 + #0039 #0000 + #003A #1210 + #003B #004E + #003C #1220 + #003D #004A + #003E #F000 + #003F #0002 + #0040 #1210 + #0041 #005C + #005C #000A + #0042 #1220 + #0043 #005D + #005D #0001 + #0044 #F000 + #0045 #0002 + #0046 #7120 + #0047 #7110 +../../../../as/misc/hanoi.casl: 36: RET + #0048 #8100 +../../../../as/misc/hanoi.casl: 37:N DC 3 ; 輪の総数 + #0049 #0003 +../../../../as/misc/hanoi.casl: 38:LNG DC 11 ; メッセージの長さ + #004A #000B +../../../../as/misc/hanoi.casl: 39:A DC 'A' + #004B #0041 +../../../../as/misc/hanoi.casl: 40:B DC 'B' + #004C #0042 +../../../../as/misc/hanoi.casl: 41:C DC 'C' + #004D #0043 +../../../../as/misc/hanoi.casl: 42:MSG DC 'from ' + #004E #0066 + #004F #0072 + #0050 #006F + #0051 #006D + #0052 #0020 +../../../../as/misc/hanoi.casl: 43:MSG1 DS 1 + #0053 #0000 +../../../../as/misc/hanoi.casl: 44: DC ' to ' + #0054 #0020 + #0055 #0074 + #0056 #006F + #0057 #0020 +../../../../as/misc/hanoi.casl: 45:MSG2 DS 1 + #0058 #0000 +../../../../as/misc/hanoi.casl: 46: END +from A to C +from A to B +from C to B +from A to C +from B to A +from B to C +from A to C diff --git a/as/misc/hanoi/1.txt b/as/misc/hanoi/1.txt new file mode 100644 index 0000000..fa8412a --- /dev/null +++ b/as/misc/hanoi/1.txt @@ -0,0 +1,211 @@ +../../../../casl2 -sla ../../../../as/FUNC/hanoi.casl + +Assemble ../../../../as/FUNC/hanoi.casl (0) +../../../../as/FUNC/hanoi.casl: 1:; ハノイの塔を解くプログラム +../../../../as/FUNC/hanoi.casl: 2:MAIN START +../../../../as/FUNC/hanoi.casl: 3: LD GR0,N +../../../../as/FUNC/hanoi.casl: 4: LD GR1,A +../../../../as/FUNC/hanoi.casl: 5: LD GR2,B +../../../../as/FUNC/hanoi.casl: 6: LD GR3,C +../../../../as/FUNC/hanoi.casl: 7: CALL HANOI +../../../../as/FUNC/hanoi.casl: 8: RET +../../../../as/FUNC/hanoi.casl: 9:HANOI CPA GR0,=1 +../../../../as/FUNC/hanoi.casl: 10: JZE DISP +../../../../as/FUNC/hanoi.casl: 11: SUBA GR0,=1 +../../../../as/FUNC/hanoi.casl: 12: PUSH 0,GR2 +../../../../as/FUNC/hanoi.casl: 13: PUSH 0,GR3 +../../../../as/FUNC/hanoi.casl: 14: POP GR2 +../../../../as/FUNC/hanoi.casl: 15: POP GR3 +../../../../as/FUNC/hanoi.casl: 16: CALL HANOI +../../../../as/FUNC/hanoi.casl: 17: PUSH 0,GR2 +../../../../as/FUNC/hanoi.casl: 18: PUSH 0,GR3 +../../../../as/FUNC/hanoi.casl: 19: POP GR2 +../../../../as/FUNC/hanoi.casl: 20: POP GR3 +../../../../as/FUNC/hanoi.casl: 21: CALL DISP +../../../../as/FUNC/hanoi.casl: 22: PUSH 0,GR1 +../../../../as/FUNC/hanoi.casl: 23: PUSH 0,GR2 +../../../../as/FUNC/hanoi.casl: 24: POP GR1 +../../../../as/FUNC/hanoi.casl: 25: POP GR2 +../../../../as/FUNC/hanoi.casl: 26: CALL HANOI +../../../../as/FUNC/hanoi.casl: 27: PUSH 0,GR1 +../../../../as/FUNC/hanoi.casl: 28: PUSH 0,GR2 +../../../../as/FUNC/hanoi.casl: 29: POP GR1 +../../../../as/FUNC/hanoi.casl: 30: POP GR2 +../../../../as/FUNC/hanoi.casl: 31: ADDA GR0,=1 +../../../../as/FUNC/hanoi.casl: 32: RET +../../../../as/FUNC/hanoi.casl: 33:DISP ST GR1,MSG1 +../../../../as/FUNC/hanoi.casl: 34: ST GR3,MSG2 +../../../../as/FUNC/hanoi.casl: 35: OUT MSG,LNG +../../../../as/FUNC/hanoi.casl: 36: RET +../../../../as/FUNC/hanoi.casl: 37:N DC 3 ; 輪の総数 +../../../../as/FUNC/hanoi.casl: 38:LNG DC 11 ; メッセージの長さ +../../../../as/FUNC/hanoi.casl: 39:A DC 'A' +../../../../as/FUNC/hanoi.casl: 40:B DC 'B' +../../../../as/FUNC/hanoi.casl: 41:C DC 'C' +../../../../as/FUNC/hanoi.casl: 42:MSG DC 'from ' +../../../../as/FUNC/hanoi.casl: 43:MSG1 DS 1 +../../../../as/FUNC/hanoi.casl: 44: DC ' to ' +../../../../as/FUNC/hanoi.casl: 45:MSG2 DS 1 +../../../../as/FUNC/hanoi.casl: 46: END + +Label:::: +MAIN.MSG ---> #004E +MAIN.MSG1 ---> #0053 +MAIN.MSG2 ---> #0058 +MAIN.A ---> #004B +MAIN.B ---> #004C +MAIN.C ---> #004D +MAIN.LNG ---> #004A +MAIN.N ---> #0049 +MAIN ---> #0000 +MAIN.DISP ---> #0032 +MAIN.HANOI ---> #000B + +Assemble ../../../../as/FUNC/hanoi.casl (1) +../../../../as/FUNC/hanoi.casl: 1:; ハノイの塔を解くプログラム +../../../../as/FUNC/hanoi.casl: 2:MAIN START +../../../../as/FUNC/hanoi.casl: 3: LD GR0,N + #0000 #1000 + #0001 #0049 +../../../../as/FUNC/hanoi.casl: 4: LD GR1,A + #0002 #1010 + #0003 #004B +../../../../as/FUNC/hanoi.casl: 5: LD GR2,B + #0004 #1020 + #0005 #004C +../../../../as/FUNC/hanoi.casl: 6: LD GR3,C + #0006 #1030 + #0007 #004D +../../../../as/FUNC/hanoi.casl: 7: CALL HANOI + #0008 #8000 + #0009 #000B +../../../../as/FUNC/hanoi.casl: 8: RET + #000A #8100 +../../../../as/FUNC/hanoi.casl: 9:HANOI CPA GR0,=1 + #0059 #0001 + #000B #4000 + #000C #0059 +../../../../as/FUNC/hanoi.casl: 10: JZE DISP + #000D #6300 + #000E #0032 +../../../../as/FUNC/hanoi.casl: 11: SUBA GR0,=1 + #005A #0001 + #000F #2100 + #0010 #005A +../../../../as/FUNC/hanoi.casl: 12: PUSH 0,GR2 + #0011 #7002 + #0012 #0000 +../../../../as/FUNC/hanoi.casl: 13: PUSH 0,GR3 + #0013 #7003 + #0014 #0000 +../../../../as/FUNC/hanoi.casl: 14: POP GR2 + #0015 #7120 +../../../../as/FUNC/hanoi.casl: 15: POP GR3 + #0016 #7130 +../../../../as/FUNC/hanoi.casl: 16: CALL HANOI + #0017 #8000 + #0018 #000B +../../../../as/FUNC/hanoi.casl: 17: PUSH 0,GR2 + #0019 #7002 + #001A #0000 +../../../../as/FUNC/hanoi.casl: 18: PUSH 0,GR3 + #001B #7003 + #001C #0000 +../../../../as/FUNC/hanoi.casl: 19: POP GR2 + #001D #7120 +../../../../as/FUNC/hanoi.casl: 20: POP GR3 + #001E #7130 +../../../../as/FUNC/hanoi.casl: 21: CALL DISP + #001F #8000 + #0020 #0032 +../../../../as/FUNC/hanoi.casl: 22: PUSH 0,GR1 + #0021 #7001 + #0022 #0000 +../../../../as/FUNC/hanoi.casl: 23: PUSH 0,GR2 + #0023 #7002 + #0024 #0000 +../../../../as/FUNC/hanoi.casl: 24: POP GR1 + #0025 #7110 +../../../../as/FUNC/hanoi.casl: 25: POP GR2 + #0026 #7120 +../../../../as/FUNC/hanoi.casl: 26: CALL HANOI + #0027 #8000 + #0028 #000B +../../../../as/FUNC/hanoi.casl: 27: PUSH 0,GR1 + #0029 #7001 + #002A #0000 +../../../../as/FUNC/hanoi.casl: 28: PUSH 0,GR2 + #002B #7002 + #002C #0000 +../../../../as/FUNC/hanoi.casl: 29: POP GR1 + #002D #7110 +../../../../as/FUNC/hanoi.casl: 30: POP GR2 + #002E #7120 +../../../../as/FUNC/hanoi.casl: 31: ADDA GR0,=1 + #005B #0001 + #002F #2000 + #0030 #005B +../../../../as/FUNC/hanoi.casl: 32: RET + #0031 #8100 +../../../../as/FUNC/hanoi.casl: 33:DISP ST GR1,MSG1 + #0032 #1110 + #0033 #0053 +../../../../as/FUNC/hanoi.casl: 34: ST GR3,MSG2 + #0034 #1130 + #0035 #0058 +../../../../as/FUNC/hanoi.casl: 35: OUT MSG,LNG + #0036 #7001 + #0037 #0000 + #0038 #7002 + #0039 #0000 + #003A #1210 + #003B #004E + #003C #1220 + #003D #004A + #003E #F000 + #003F #0002 + #0040 #1210 + #0041 #005C + #005C #000A + #0042 #1220 + #0043 #005D + #005D #0001 + #0044 #F000 + #0045 #0002 + #0046 #7120 + #0047 #7110 +../../../../as/FUNC/hanoi.casl: 36: RET + #0048 #8100 +../../../../as/FUNC/hanoi.casl: 37:N DC 3 ; 輪の総数 + #0049 #0003 +../../../../as/FUNC/hanoi.casl: 38:LNG DC 11 ; メッセージの長さ + #004A #000B +../../../../as/FUNC/hanoi.casl: 39:A DC 'A' + #004B #0041 +../../../../as/FUNC/hanoi.casl: 40:B DC 'B' + #004C #0042 +../../../../as/FUNC/hanoi.casl: 41:C DC 'C' + #004D #0043 +../../../../as/FUNC/hanoi.casl: 42:MSG DC 'from ' + #004E #0066 + #004F #0072 + #0050 #006F + #0051 #006D + #0052 #0020 +../../../../as/FUNC/hanoi.casl: 43:MSG1 DS 1 + #0053 #0000 +../../../../as/FUNC/hanoi.casl: 44: DC ' to ' + #0054 #0020 + #0055 #0074 + #0056 #006F + #0057 #0020 +../../../../as/FUNC/hanoi.casl: 45:MSG2 DS 1 + #0058 #0000 +../../../../as/FUNC/hanoi.casl: 46: END +from A to C +from A to B +from C to B +from A to C +from B to A +from B to C +from A to C diff --git a/as/yakuwa/binout_test/Makefile b/as/misc/hanoi/Makefile similarity index 55% rename from as/yakuwa/binout_test/Makefile rename to as/misc/hanoi/Makefile index 0d3626b..b34f79d 100644 --- a/as/yakuwa/binout_test/Makefile +++ b/as/misc/hanoi/Makefile @@ -1,6 +1,6 @@ include ../CMD.mk # YACASL2DIR, CASL2 -CASL2FLAG = -la -ASDIR = $(YACASL2DIR)/as/yakuwa -ASFILE = $(ASDIR)/binout.casl +CASL2FLAG = -sla +ASDIR = $(YACASL2DIR)/as/misc +ASFILE = $(ASDIR)/hanoi.casl CMD = $(CASL2) $(CASL2FLAG) $(ASFILE) include ../TEST.mk diff --git a/as/misc/hanoi/report.txt b/as/misc/hanoi/report.txt new file mode 100644 index 0000000..76c9d77 --- /dev/null +++ b/as/misc/hanoi/report.txt @@ -0,0 +1 @@ +hanoi: Test Success 2010-02-12 01:12:42 diff --git a/as/misc/iotest.casl b/as/misc/iotest.casl deleted file mode 100644 index fe5f553..0000000 --- a/as/misc/iotest.casl +++ /dev/null @@ -1,20 +0,0 @@ -IOTEST START - OUT OBUF1,OLEN1 -LOOP IN IOBUF,IOLEN - LD GR1,IOLEN - JZE RETURN - OUT OBUF2,OLEN2 - OUT IOBUF,IOLEN - OUT OBUF3,OLEN3 - JUMP LOOP -RETURN RET -; Memory -OBUF1 DC 'LET''S START. TYPE IN' -OLEN1 DC 20 -OBUF2 DC 'YOU TYPED' -OLEN2 DC 9 -OBUF3 DC 'WHAT''S NEXT?' -OLEN3 DC 12 -IOBUF DS 64 -IOLEN DS 1 - END diff --git a/as/misc/iotest/0.txt b/as/misc/iotest/0.txt new file mode 100644 index 0000000..d1656c2 --- /dev/null +++ b/as/misc/iotest/0.txt @@ -0,0 +1,285 @@ +../../../../casl2 -sla ../../../../as/FUNC/iotest.casl + +Assemble ../../../../as/FUNC/iotest.casl (0) +../../../../as/FUNC/iotest.casl: 1:IOTEST START +../../../../as/FUNC/iotest.casl: 2: OUT OBUF1,OLEN1 +../../../../as/FUNC/iotest.casl: 3:LOOP IN IOBUF,IOLEN +../../../../as/FUNC/iotest.casl: 4: LD GR1,IOLEN +../../../../as/FUNC/iotest.casl: 5: JZE RETURN +../../../../as/FUNC/iotest.casl: 6: OUT OBUF2,OLEN2 +../../../../as/FUNC/iotest.casl: 7: OUT IOBUF,IOLEN +../../../../as/FUNC/iotest.casl: 8: OUT OBUF3,OLEN3 +../../../../as/FUNC/iotest.casl: 9: JUMP LOOP +../../../../as/FUNC/iotest.casl: 10:RETURN RET +../../../../as/FUNC/iotest.casl: 11:; Memory +../../../../as/FUNC/iotest.casl: 12:OBUF1 DC 'LET''S START. TYPE IN' +../../../../as/FUNC/iotest.casl: 13:OLEN1 DC 20 +../../../../as/FUNC/iotest.casl: 14:OBUF2 DC 'YOU TYPED' +../../../../as/FUNC/iotest.casl: 15:OLEN2 DC 9 +../../../../as/FUNC/iotest.casl: 16:OBUF3 DC 'WHAT''S NEXT?' +../../../../as/FUNC/iotest.casl: 17:OLEN3 DC 12 +../../../../as/FUNC/iotest.casl: 18:IOBUF DS 64 +../../../../as/FUNC/iotest.casl: 19:IOLEN DS 1 +../../../../as/FUNC/iotest.casl: 20: END + +Label:::: +IOTEST.OBUF1 ---> #005B +IOTEST.OBUF2 ---> #0070 +IOTEST.IOLEN ---> #00C7 +IOTEST.OBUF3 ---> #007A +IOTEST.LOOP ---> #0012 +IOTEST.IOBUF ---> #0087 +IOTEST ---> #0000 +IOTEST.RETURN ---> #005A +IOTEST.OLEN1 ---> #006F +IOTEST.OLEN2 ---> #0079 +IOTEST.OLEN3 ---> #0086 + +Assemble ../../../../as/FUNC/iotest.casl (1) +../../../../as/FUNC/iotest.casl: 1:IOTEST START +../../../../as/FUNC/iotest.casl: 2: OUT OBUF1,OLEN1 + #0000 #7001 + #0001 #0000 + #0002 #7002 + #0003 #0000 + #0004 #1210 + #0005 #005B + #0006 #1220 + #0007 #006F + #0008 #F000 + #0009 #0002 + #000A #1210 + #000B #00C8 + #00C8 #000A + #000C #1220 + #000D #00C9 + #00C9 #0001 + #000E #F000 + #000F #0002 + #0010 #7120 + #0011 #7110 +../../../../as/FUNC/iotest.casl: 3:LOOP IN IOBUF,IOLEN + #0012 #7001 + #0013 #0000 + #0014 #7002 + #0015 #0000 + #0016 #1210 + #0017 #0087 + #0018 #1220 + #0019 #00C7 + #001A #F000 + #001B #0001 + #001C #7120 + #001D #7110 +../../../../as/FUNC/iotest.casl: 4: LD GR1,IOLEN + #001E #1010 + #001F #00C7 +../../../../as/FUNC/iotest.casl: 5: JZE RETURN + #0020 #6300 + #0021 #005A +../../../../as/FUNC/iotest.casl: 6: OUT OBUF2,OLEN2 + #0022 #7001 + #0023 #0000 + #0024 #7002 + #0025 #0000 + #0026 #1210 + #0027 #0070 + #0028 #1220 + #0029 #0079 + #002A #F000 + #002B #0002 + #002C #1210 + #002D #00CA + #00CA #000A + #002E #1220 + #002F #00CB + #00CB #0001 + #0030 #F000 + #0031 #0002 + #0032 #7120 + #0033 #7110 +../../../../as/FUNC/iotest.casl: 7: OUT IOBUF,IOLEN + #0034 #7001 + #0035 #0000 + #0036 #7002 + #0037 #0000 + #0038 #1210 + #0039 #0087 + #003A #1220 + #003B #00C7 + #003C #F000 + #003D #0002 + #003E #1210 + #003F #00CC + #00CC #000A + #0040 #1220 + #0041 #00CD + #00CD #0001 + #0042 #F000 + #0043 #0002 + #0044 #7120 + #0045 #7110 +../../../../as/FUNC/iotest.casl: 8: OUT OBUF3,OLEN3 + #0046 #7001 + #0047 #0000 + #0048 #7002 + #0049 #0000 + #004A #1210 + #004B #007A + #004C #1220 + #004D #0086 + #004E #F000 + #004F #0002 + #0050 #1210 + #0051 #00CE + #00CE #000A + #0052 #1220 + #0053 #00CF + #00CF #0001 + #0054 #F000 + #0055 #0002 + #0056 #7120 + #0057 #7110 +../../../../as/FUNC/iotest.casl: 9: JUMP LOOP + #0058 #6400 + #0059 #0012 +../../../../as/FUNC/iotest.casl: 10:RETURN RET + #005A #8100 +../../../../as/FUNC/iotest.casl: 11:; Memory +../../../../as/FUNC/iotest.casl: 12:OBUF1 DC 'LET''S START. TYPE IN' + #005B #004C + #005C #0045 + #005D #0054 + #005E #0027 + #005F #0053 + #0060 #0020 + #0061 #0053 + #0062 #0054 + #0063 #0041 + #0064 #0052 + #0065 #0054 + #0066 #002E + #0067 #0020 + #0068 #0054 + #0069 #0059 + #006A #0050 + #006B #0045 + #006C #0020 + #006D #0049 + #006E #004E +../../../../as/FUNC/iotest.casl: 13:OLEN1 DC 20 + #006F #0014 +../../../../as/FUNC/iotest.casl: 14:OBUF2 DC 'YOU TYPED' + #0070 #0059 + #0071 #004F + #0072 #0055 + #0073 #0020 + #0074 #0054 + #0075 #0059 + #0076 #0050 + #0077 #0045 + #0078 #0044 +../../../../as/FUNC/iotest.casl: 15:OLEN2 DC 9 + #0079 #0009 +../../../../as/FUNC/iotest.casl: 16:OBUF3 DC 'WHAT''S NEXT?' + #007A #0057 + #007B #0048 + #007C #0041 + #007D #0054 + #007E #0027 + #007F #0053 + #0080 #0020 + #0081 #004E + #0082 #0045 + #0083 #0058 + #0084 #0054 + #0085 #003F +../../../../as/FUNC/iotest.casl: 17:OLEN3 DC 12 + #0086 #000C +../../../../as/FUNC/iotest.casl: 18:IOBUF DS 64 + #0087 #0000 + #0088 #0000 + #0089 #0000 + #008A #0000 + #008B #0000 + #008C #0000 + #008D #0000 + #008E #0000 + #008F #0000 + #0090 #0000 + #0091 #0000 + #0092 #0000 + #0093 #0000 + #0094 #0000 + #0095 #0000 + #0096 #0000 + #0097 #0000 + #0098 #0000 + #0099 #0000 + #009A #0000 + #009B #0000 + #009C #0000 + #009D #0000 + #009E #0000 + #009F #0000 + #00A0 #0000 + #00A1 #0000 + #00A2 #0000 + #00A3 #0000 + #00A4 #0000 + #00A5 #0000 + #00A6 #0000 + #00A7 #0000 + #00A8 #0000 + #00A9 #0000 + #00AA #0000 + #00AB #0000 + #00AC #0000 + #00AD #0000 + #00AE #0000 + #00AF #0000 + #00B0 #0000 + #00B1 #0000 + #00B2 #0000 + #00B3 #0000 + #00B4 #0000 + #00B5 #0000 + #00B6 #0000 + #00B7 #0000 + #00B8 #0000 + #00B9 #0000 + #00BA #0000 + #00BB #0000 + #00BC #0000 + #00BD #0000 + #00BE #0000 + #00BF #0000 + #00C0 #0000 + #00C1 #0000 + #00C2 #0000 + #00C3 #0000 + #00C4 #0000 + #00C5 #0000 + #00C6 #0000 +../../../../as/FUNC/iotest.casl: 19:IOLEN DS 1 + #00C7 #0000 +../../../../as/FUNC/iotest.casl: 20: END +LET'S START. TYPE IN +YOU TYPED +aaaaaaaaaaaaaaaaaaaa +WHAT'S NEXT? +YOU TYPED +qwerty +WHAT'S NEXT? +YOU TYPED +1234567890 +WHAT'S NEXT? +YOU TYPED +cccccccccccccccccccccccccccccccccccccccc +WHAT'S NEXT? +YOU TYPED + a b c +WHAT'S NEXT? +YOU TYPED + +WHAT'S NEXT? diff --git a/as/misc/iotest/1.txt b/as/misc/iotest/1.txt new file mode 100644 index 0000000..d1656c2 --- /dev/null +++ b/as/misc/iotest/1.txt @@ -0,0 +1,285 @@ +../../../../casl2 -sla ../../../../as/FUNC/iotest.casl + +Assemble ../../../../as/FUNC/iotest.casl (0) +../../../../as/FUNC/iotest.casl: 1:IOTEST START +../../../../as/FUNC/iotest.casl: 2: OUT OBUF1,OLEN1 +../../../../as/FUNC/iotest.casl: 3:LOOP IN IOBUF,IOLEN +../../../../as/FUNC/iotest.casl: 4: LD GR1,IOLEN +../../../../as/FUNC/iotest.casl: 5: JZE RETURN +../../../../as/FUNC/iotest.casl: 6: OUT OBUF2,OLEN2 +../../../../as/FUNC/iotest.casl: 7: OUT IOBUF,IOLEN +../../../../as/FUNC/iotest.casl: 8: OUT OBUF3,OLEN3 +../../../../as/FUNC/iotest.casl: 9: JUMP LOOP +../../../../as/FUNC/iotest.casl: 10:RETURN RET +../../../../as/FUNC/iotest.casl: 11:; Memory +../../../../as/FUNC/iotest.casl: 12:OBUF1 DC 'LET''S START. TYPE IN' +../../../../as/FUNC/iotest.casl: 13:OLEN1 DC 20 +../../../../as/FUNC/iotest.casl: 14:OBUF2 DC 'YOU TYPED' +../../../../as/FUNC/iotest.casl: 15:OLEN2 DC 9 +../../../../as/FUNC/iotest.casl: 16:OBUF3 DC 'WHAT''S NEXT?' +../../../../as/FUNC/iotest.casl: 17:OLEN3 DC 12 +../../../../as/FUNC/iotest.casl: 18:IOBUF DS 64 +../../../../as/FUNC/iotest.casl: 19:IOLEN DS 1 +../../../../as/FUNC/iotest.casl: 20: END + +Label:::: +IOTEST.OBUF1 ---> #005B +IOTEST.OBUF2 ---> #0070 +IOTEST.IOLEN ---> #00C7 +IOTEST.OBUF3 ---> #007A +IOTEST.LOOP ---> #0012 +IOTEST.IOBUF ---> #0087 +IOTEST ---> #0000 +IOTEST.RETURN ---> #005A +IOTEST.OLEN1 ---> #006F +IOTEST.OLEN2 ---> #0079 +IOTEST.OLEN3 ---> #0086 + +Assemble ../../../../as/FUNC/iotest.casl (1) +../../../../as/FUNC/iotest.casl: 1:IOTEST START +../../../../as/FUNC/iotest.casl: 2: OUT OBUF1,OLEN1 + #0000 #7001 + #0001 #0000 + #0002 #7002 + #0003 #0000 + #0004 #1210 + #0005 #005B + #0006 #1220 + #0007 #006F + #0008 #F000 + #0009 #0002 + #000A #1210 + #000B #00C8 + #00C8 #000A + #000C #1220 + #000D #00C9 + #00C9 #0001 + #000E #F000 + #000F #0002 + #0010 #7120 + #0011 #7110 +../../../../as/FUNC/iotest.casl: 3:LOOP IN IOBUF,IOLEN + #0012 #7001 + #0013 #0000 + #0014 #7002 + #0015 #0000 + #0016 #1210 + #0017 #0087 + #0018 #1220 + #0019 #00C7 + #001A #F000 + #001B #0001 + #001C #7120 + #001D #7110 +../../../../as/FUNC/iotest.casl: 4: LD GR1,IOLEN + #001E #1010 + #001F #00C7 +../../../../as/FUNC/iotest.casl: 5: JZE RETURN + #0020 #6300 + #0021 #005A +../../../../as/FUNC/iotest.casl: 6: OUT OBUF2,OLEN2 + #0022 #7001 + #0023 #0000 + #0024 #7002 + #0025 #0000 + #0026 #1210 + #0027 #0070 + #0028 #1220 + #0029 #0079 + #002A #F000 + #002B #0002 + #002C #1210 + #002D #00CA + #00CA #000A + #002E #1220 + #002F #00CB + #00CB #0001 + #0030 #F000 + #0031 #0002 + #0032 #7120 + #0033 #7110 +../../../../as/FUNC/iotest.casl: 7: OUT IOBUF,IOLEN + #0034 #7001 + #0035 #0000 + #0036 #7002 + #0037 #0000 + #0038 #1210 + #0039 #0087 + #003A #1220 + #003B #00C7 + #003C #F000 + #003D #0002 + #003E #1210 + #003F #00CC + #00CC #000A + #0040 #1220 + #0041 #00CD + #00CD #0001 + #0042 #F000 + #0043 #0002 + #0044 #7120 + #0045 #7110 +../../../../as/FUNC/iotest.casl: 8: OUT OBUF3,OLEN3 + #0046 #7001 + #0047 #0000 + #0048 #7002 + #0049 #0000 + #004A #1210 + #004B #007A + #004C #1220 + #004D #0086 + #004E #F000 + #004F #0002 + #0050 #1210 + #0051 #00CE + #00CE #000A + #0052 #1220 + #0053 #00CF + #00CF #0001 + #0054 #F000 + #0055 #0002 + #0056 #7120 + #0057 #7110 +../../../../as/FUNC/iotest.casl: 9: JUMP LOOP + #0058 #6400 + #0059 #0012 +../../../../as/FUNC/iotest.casl: 10:RETURN RET + #005A #8100 +../../../../as/FUNC/iotest.casl: 11:; Memory +../../../../as/FUNC/iotest.casl: 12:OBUF1 DC 'LET''S START. TYPE IN' + #005B #004C + #005C #0045 + #005D #0054 + #005E #0027 + #005F #0053 + #0060 #0020 + #0061 #0053 + #0062 #0054 + #0063 #0041 + #0064 #0052 + #0065 #0054 + #0066 #002E + #0067 #0020 + #0068 #0054 + #0069 #0059 + #006A #0050 + #006B #0045 + #006C #0020 + #006D #0049 + #006E #004E +../../../../as/FUNC/iotest.casl: 13:OLEN1 DC 20 + #006F #0014 +../../../../as/FUNC/iotest.casl: 14:OBUF2 DC 'YOU TYPED' + #0070 #0059 + #0071 #004F + #0072 #0055 + #0073 #0020 + #0074 #0054 + #0075 #0059 + #0076 #0050 + #0077 #0045 + #0078 #0044 +../../../../as/FUNC/iotest.casl: 15:OLEN2 DC 9 + #0079 #0009 +../../../../as/FUNC/iotest.casl: 16:OBUF3 DC 'WHAT''S NEXT?' + #007A #0057 + #007B #0048 + #007C #0041 + #007D #0054 + #007E #0027 + #007F #0053 + #0080 #0020 + #0081 #004E + #0082 #0045 + #0083 #0058 + #0084 #0054 + #0085 #003F +../../../../as/FUNC/iotest.casl: 17:OLEN3 DC 12 + #0086 #000C +../../../../as/FUNC/iotest.casl: 18:IOBUF DS 64 + #0087 #0000 + #0088 #0000 + #0089 #0000 + #008A #0000 + #008B #0000 + #008C #0000 + #008D #0000 + #008E #0000 + #008F #0000 + #0090 #0000 + #0091 #0000 + #0092 #0000 + #0093 #0000 + #0094 #0000 + #0095 #0000 + #0096 #0000 + #0097 #0000 + #0098 #0000 + #0099 #0000 + #009A #0000 + #009B #0000 + #009C #0000 + #009D #0000 + #009E #0000 + #009F #0000 + #00A0 #0000 + #00A1 #0000 + #00A2 #0000 + #00A3 #0000 + #00A4 #0000 + #00A5 #0000 + #00A6 #0000 + #00A7 #0000 + #00A8 #0000 + #00A9 #0000 + #00AA #0000 + #00AB #0000 + #00AC #0000 + #00AD #0000 + #00AE #0000 + #00AF #0000 + #00B0 #0000 + #00B1 #0000 + #00B2 #0000 + #00B3 #0000 + #00B4 #0000 + #00B5 #0000 + #00B6 #0000 + #00B7 #0000 + #00B8 #0000 + #00B9 #0000 + #00BA #0000 + #00BB #0000 + #00BC #0000 + #00BD #0000 + #00BE #0000 + #00BF #0000 + #00C0 #0000 + #00C1 #0000 + #00C2 #0000 + #00C3 #0000 + #00C4 #0000 + #00C5 #0000 + #00C6 #0000 +../../../../as/FUNC/iotest.casl: 19:IOLEN DS 1 + #00C7 #0000 +../../../../as/FUNC/iotest.casl: 20: END +LET'S START. TYPE IN +YOU TYPED +aaaaaaaaaaaaaaaaaaaa +WHAT'S NEXT? +YOU TYPED +qwerty +WHAT'S NEXT? +YOU TYPED +1234567890 +WHAT'S NEXT? +YOU TYPED +cccccccccccccccccccccccccccccccccccccccc +WHAT'S NEXT? +YOU TYPED + a b c +WHAT'S NEXT? +YOU TYPED + +WHAT'S NEXT? diff --git a/as/misc/iotest/Makefile b/as/misc/iotest/Makefile new file mode 100644 index 0000000..3aa55d8 --- /dev/null +++ b/as/misc/iotest/Makefile @@ -0,0 +1,6 @@ +include ../CMD.mk # YACASL2DIR, CASL2 +ASDIR = $(YACASL2DIR)/as/FUNC +ASFILE = $(ASDIR)/iotest.casl +IN = teststr.txt +CMD = $(CASL2) $(ASFILE) <$(IN) +include ../TEST.mk diff --git a/as/misc/iotest/report.txt b/as/misc/iotest/report.txt new file mode 100644 index 0000000..fce25ff --- /dev/null +++ b/as/misc/iotest/report.txt @@ -0,0 +1 @@ +iotest: Test Success 2010-02-12 01:12:43 diff --git a/as/misc/iotest/teststr.txt b/as/misc/iotest/teststr.txt new file mode 100644 index 0000000..65b3761 --- /dev/null +++ b/as/misc/iotest/teststr.txt @@ -0,0 +1,7 @@ +aaaaaaaaaaaaaaaaaaaa +qwerty +1234567890 +cccccccccccccccccccccccccccccccccccccccc + a b c + + diff --git a/as/misc/misc_count1/0.txt b/as/misc/misc_count1/0.txt new file mode 100644 index 0000000..029f1d1 --- /dev/null +++ b/as/misc/misc_count1/0.txt @@ -0,0 +1,257 @@ +../../../../casl2 ../../../../as/FUNC/count1_call.casl ../../../../as/FUNC/count1.casl ../../../../as/FUNC/outa.casl +0 +1 +1 +2 +1 +2 +2 +3 +1 +2 +2 +3 +2 +3 +3 +4 +1 +2 +2 +3 +2 +3 +3 +4 +2 +3 +3 +4 +3 +4 +4 +5 +1 +2 +2 +3 +2 +3 +3 +4 +2 +3 +3 +4 +3 +4 +4 +5 +2 +3 +3 +4 +3 +4 +4 +5 +3 +4 +4 +5 +4 +5 +5 +6 +1 +2 +2 +3 +2 +3 +3 +4 +2 +3 +3 +4 +3 +4 +4 +5 +2 +3 +3 +4 +3 +4 +4 +5 +3 +4 +4 +5 +4 +5 +5 +6 +2 +3 +3 +4 +3 +4 +4 +5 +3 +4 +4 +5 +4 +5 +5 +6 +3 +4 +4 +5 +4 +5 +5 +6 +4 +5 +5 +6 +5 +6 +6 +7 +1 +2 +2 +3 +2 +3 +3 +4 +2 +3 +3 +4 +3 +4 +4 +5 +2 +3 +3 +4 +3 +4 +4 +5 +3 +4 +4 +5 +4 +5 +5 +6 +2 +3 +3 +4 +3 +4 +4 +5 +3 +4 +4 +5 +4 +5 +5 +6 +3 +4 +4 +5 +4 +5 +5 +6 +4 +5 +5 +6 +5 +6 +6 +7 +2 +3 +3 +4 +3 +4 +4 +5 +3 +4 +4 +5 +4 +5 +5 +6 +3 +4 +4 +5 +4 +5 +5 +6 +4 +5 +5 +6 +5 +6 +6 +7 +3 +4 +4 +5 +4 +5 +5 +6 +4 +5 +5 +6 +5 +6 +6 +7 +4 +5 +5 +6 +5 +6 +6 +7 +5 +6 +6 +7 +6 +7 +7 +8 diff --git a/as/misc/misc_count1/Makefile b/as/misc/misc_count1/Makefile new file mode 100644 index 0000000..5f8544b --- /dev/null +++ b/as/misc/misc_count1/Makefile @@ -0,0 +1,5 @@ +include ../CMD.mk # YACASL2DIR, CASL2 +ASDIR = $(YACASL2DIR)/as/FUNC +ASFILE = $(ASDIR)/count1_call.casl $(ASDIR)/count1.casl $(ASDIR)/outa.casl +CMD = $(CASL2) $(ASFILE) +include ../TEST.mk diff --git a/as/misc/misc_out_hello/0.txt b/as/misc/misc_out_hello/0.txt new file mode 100644 index 0000000..3957e4f --- /dev/null +++ b/as/misc/misc_out_hello/0.txt @@ -0,0 +1,587 @@ +../../../../casl2 -slatd ../../../../as/CMD/svc2_out.casl + +Assemble ../../../../as/CMD/svc2_out.casl (0) +../../../../as/CMD/svc2_out.casl: 1:;;; 「OUT」と同等のプログラム +../../../../as/CMD/svc2_out.casl: 2:OTEST START +../../../../as/CMD/svc2_out.casl: 3: PUSH 0,GR1 +../../../../as/CMD/svc2_out.casl: 4: PUSH 0,GR2 +../../../../as/CMD/svc2_out.casl: 5: LAD GR1,OBUF +../../../../as/CMD/svc2_out.casl: 6: LD GR2,LEN +../../../../as/CMD/svc2_out.casl: 7: SVC 2 +../../../../as/CMD/svc2_out.casl: 8: LAD GR1,=#A +../../../../as/CMD/svc2_out.casl: 9: LAD GR2,1 +../../../../as/CMD/svc2_out.casl: 10: SVC 2 +../../../../as/CMD/svc2_out.casl: 11: POP GR2 +../../../../as/CMD/svc2_out.casl: 12: POP GR1 +../../../../as/CMD/svc2_out.casl: 13: RET +../../../../as/CMD/svc2_out.casl: 14:OBUF DC 'abcd' +../../../../as/CMD/svc2_out.casl: 15:LEN DC 4 +../../../../as/CMD/svc2_out.casl: 16: END + +Label:::: +OTEST ---> #0000 +OTEST.OBUF ---> #0013 +OTEST.LEN ---> #0017 + +Assemble ../../../../as/CMD/svc2_out.casl (1) +../../../../as/CMD/svc2_out.casl: 1:;;; 「OUT」と同等のプログラム +../../../../as/CMD/svc2_out.casl: 2:OTEST START +../../../../as/CMD/svc2_out.casl: 3: PUSH 0,GR1 + #0000 #7001 + #0001 #0000 +../../../../as/CMD/svc2_out.casl: 4: PUSH 0,GR2 + #0002 #7002 + #0003 #0000 +../../../../as/CMD/svc2_out.casl: 5: LAD GR1,OBUF + #0004 #1210 + #0005 #0013 +../../../../as/CMD/svc2_out.casl: 6: LD GR2,LEN + #0006 #1020 + #0007 #0017 +../../../../as/CMD/svc2_out.casl: 7: SVC 2 + #0008 #F000 + #0009 #0002 +../../../../as/CMD/svc2_out.casl: 8: LAD GR1,=#A + #0018 #000A + #000A #1210 + #000B #0018 +../../../../as/CMD/svc2_out.casl: 9: LAD GR2,1 + #000C #1220 + #000D #0001 +../../../../as/CMD/svc2_out.casl: 10: SVC 2 + #000E #F000 + #000F #0002 +../../../../as/CMD/svc2_out.casl: 11: POP GR2 + #0010 #7120 +../../../../as/CMD/svc2_out.casl: 12: POP GR1 + #0011 #7110 +../../../../as/CMD/svc2_out.casl: 13: RET + #0012 #8100 +../../../../as/CMD/svc2_out.casl: 14:OBUF DC 'abcd' + #0013 #0061 + #0014 #0062 + #0015 #0063 + #0016 #0064 +../../../../as/CMD/svc2_out.casl: 15:LEN DC 4 + #0017 #0004 +../../../../as/CMD/svc2_out.casl: 16: END + +Executing machine codes +#0000: Register:::: +#0000: GR0: 0 = #0000 = 0000000000000000 +#0000: GR1: 0 = #0000 = 0000000000000000 +#0000: GR2: 0 = #0000 = 0000000000000000 +#0000: GR3: 0 = #0000 = 0000000000000000 +#0000: GR4: 0 = #0000 = 0000000000000000 +#0000: GR5: 0 = #0000 = 0000000000000000 +#0000: GR6: 0 = #0000 = 0000000000000000 +#0000: GR7: 0 = #0000 = 0000000000000000 +#0000: SP: 512 = #0200 = 0000001000000000 +#0000: PR: 0 = #0000 = 0000000000000000 +#0000: FR (OF SF ZF): 000 +#0000: Memory:::: +#0000: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F +#0000: 0000: 7001 0000 7002 0000 1210 0013 1020 0017 F000 0002 1210 0018 1220 0001 F000 0002 +#0000: 0010: 7120 7110 8100 0061 0062 0063 0064 0004 000A 0000 0000 0000 0000 0000 0000 0000 +#0000: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0040: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0050: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0060: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0070: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0080: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0090: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 00A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 00B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 00C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 00D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 00E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 00F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0110: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0120: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0130: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0140: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0150: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0160: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0170: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0180: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 0190: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 01A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 01B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 01C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 01D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 01E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0000: 01F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 + +#0002: Register:::: +#0002: GR0: 0 = #0000 = 0000000000000000 +#0002: GR1: 0 = #0000 = 0000000000000000 +#0002: GR2: 0 = #0000 = 0000000000000000 +#0002: GR3: 0 = #0000 = 0000000000000000 +#0002: GR4: 0 = #0000 = 0000000000000000 +#0002: GR5: 0 = #0000 = 0000000000000000 +#0002: GR6: 0 = #0000 = 0000000000000000 +#0002: GR7: 0 = #0000 = 0000000000000000 +#0002: SP: 511 = #01FF = 0000000111111111 +#0002: PR: 2 = #0002 = 0000000000000010 +#0002: FR (OF SF ZF): 000 +#0002: Memory:::: +#0002: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F +#0002: 0000: 7001 0000 7002 0000 1210 0013 1020 0017 F000 0002 1210 0018 1220 0001 F000 0002 +#0002: 0010: 7120 7110 8100 0061 0062 0063 0064 0004 000A 0000 0000 0000 0000 0000 0000 0000 +#0002: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0040: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0050: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0060: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0070: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0080: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0090: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 00A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 00B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 00C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 00D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 00E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 00F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0110: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0120: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0130: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0140: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0150: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0160: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0170: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0180: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 0190: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 01A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 01B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 01C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 01D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 01E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0002: 01F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 + +#0004: Register:::: +#0004: GR0: 0 = #0000 = 0000000000000000 +#0004: GR1: 0 = #0000 = 0000000000000000 +#0004: GR2: 0 = #0000 = 0000000000000000 +#0004: GR3: 0 = #0000 = 0000000000000000 +#0004: GR4: 0 = #0000 = 0000000000000000 +#0004: GR5: 0 = #0000 = 0000000000000000 +#0004: GR6: 0 = #0000 = 0000000000000000 +#0004: GR7: 0 = #0000 = 0000000000000000 +#0004: SP: 510 = #01FE = 0000000111111110 +#0004: PR: 4 = #0004 = 0000000000000100 +#0004: FR (OF SF ZF): 000 +#0004: Memory:::: +#0004: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F +#0004: 0000: 7001 0000 7002 0000 1210 0013 1020 0017 F000 0002 1210 0018 1220 0001 F000 0002 +#0004: 0010: 7120 7110 8100 0061 0062 0063 0064 0004 000A 0000 0000 0000 0000 0000 0000 0000 +#0004: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0040: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0050: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0060: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0070: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0080: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0090: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 00A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 00B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 00C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 00D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 00E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 00F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0110: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0120: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0130: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0140: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0150: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0160: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0170: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0180: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 0190: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 01A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 01B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 01C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 01D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 01E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0004: 01F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 + +#0006: Register:::: +#0006: GR0: 0 = #0000 = 0000000000000000 +#0006: GR1: 19 = #0013 = 0000000000010011 +#0006: GR2: 0 = #0000 = 0000000000000000 +#0006: GR3: 0 = #0000 = 0000000000000000 +#0006: GR4: 0 = #0000 = 0000000000000000 +#0006: GR5: 0 = #0000 = 0000000000000000 +#0006: GR6: 0 = #0000 = 0000000000000000 +#0006: GR7: 0 = #0000 = 0000000000000000 +#0006: SP: 510 = #01FE = 0000000111111110 +#0006: PR: 6 = #0006 = 0000000000000110 +#0006: FR (OF SF ZF): 000 +#0006: Memory:::: +#0006: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F +#0006: 0000: 7001 0000 7002 0000 1210 0013 1020 0017 F000 0002 1210 0018 1220 0001 F000 0002 +#0006: 0010: 7120 7110 8100 0061 0062 0063 0064 0004 000A 0000 0000 0000 0000 0000 0000 0000 +#0006: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0040: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0050: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0060: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0070: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0080: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0090: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 00A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 00B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 00C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 00D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 00E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 00F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0110: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0120: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0130: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0140: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0150: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0160: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0170: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0180: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 0190: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 01A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 01B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 01C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 01D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 01E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0006: 01F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 + +#0008: Register:::: +#0008: GR0: 0 = #0000 = 0000000000000000 +#0008: GR1: 19 = #0013 = 0000000000010011 +#0008: GR2: 4 = #0004 = 0000000000000100 +#0008: GR3: 0 = #0000 = 0000000000000000 +#0008: GR4: 0 = #0000 = 0000000000000000 +#0008: GR5: 0 = #0000 = 0000000000000000 +#0008: GR6: 0 = #0000 = 0000000000000000 +#0008: GR7: 0 = #0000 = 0000000000000000 +#0008: SP: 510 = #01FE = 0000000111111110 +#0008: PR: 8 = #0008 = 0000000000001000 +#0008: FR (OF SF ZF): 000 +#0008: Memory:::: +#0008: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F +#0008: 0000: 7001 0000 7002 0000 1210 0013 1020 0017 F000 0002 1210 0018 1220 0001 F000 0002 +#0008: 0010: 7120 7110 8100 0061 0062 0063 0064 0004 000A 0000 0000 0000 0000 0000 0000 0000 +#0008: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0040: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0050: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0060: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0070: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0080: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0090: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 00A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 00B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 00C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 00D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 00E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 00F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0110: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0120: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0130: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0140: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0150: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0160: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0170: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0180: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 0190: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 01A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 01B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 01C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 01D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 01E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0008: 01F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 + +abcd#000A: Register:::: +#000A: GR0: 0 = #0000 = 0000000000000000 +#000A: GR1: 19 = #0013 = 0000000000010011 +#000A: GR2: 4 = #0004 = 0000000000000100 +#000A: GR3: 0 = #0000 = 0000000000000000 +#000A: GR4: 0 = #0000 = 0000000000000000 +#000A: GR5: 0 = #0000 = 0000000000000000 +#000A: GR6: 0 = #0000 = 0000000000000000 +#000A: GR7: 0 = #0000 = 0000000000000000 +#000A: SP: 510 = #01FE = 0000000111111110 +#000A: PR: 10 = #000A = 0000000000001010 +#000A: FR (OF SF ZF): 000 +#000A: Memory:::: +#000A: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F +#000A: 0000: 7001 0000 7002 0000 1210 0013 1020 0017 F000 0002 1210 0018 1220 0001 F000 0002 +#000A: 0010: 7120 7110 8100 0061 0062 0063 0064 0004 000A 0000 0000 0000 0000 0000 0000 0000 +#000A: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0040: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0050: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0060: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0070: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0080: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0090: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 00A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 00B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 00C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 00D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 00E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 00F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0110: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0120: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0130: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0140: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0150: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0160: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0170: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0180: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 0190: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 01A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 01B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 01C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 01D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 01E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000A: 01F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 + +#000C: Register:::: +#000C: GR0: 0 = #0000 = 0000000000000000 +#000C: GR1: 24 = #0018 = 0000000000011000 +#000C: GR2: 4 = #0004 = 0000000000000100 +#000C: GR3: 0 = #0000 = 0000000000000000 +#000C: GR4: 0 = #0000 = 0000000000000000 +#000C: GR5: 0 = #0000 = 0000000000000000 +#000C: GR6: 0 = #0000 = 0000000000000000 +#000C: GR7: 0 = #0000 = 0000000000000000 +#000C: SP: 510 = #01FE = 0000000111111110 +#000C: PR: 12 = #000C = 0000000000001100 +#000C: FR (OF SF ZF): 000 +#000C: Memory:::: +#000C: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F +#000C: 0000: 7001 0000 7002 0000 1210 0013 1020 0017 F000 0002 1210 0018 1220 0001 F000 0002 +#000C: 0010: 7120 7110 8100 0061 0062 0063 0064 0004 000A 0000 0000 0000 0000 0000 0000 0000 +#000C: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0040: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0050: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0060: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0070: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0080: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0090: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 00A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 00B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 00C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 00D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 00E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 00F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0110: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0120: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0130: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0140: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0150: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0160: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0170: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0180: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 0190: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 01A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 01B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 01C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 01D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 01E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000C: 01F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 + +#000E: Register:::: +#000E: GR0: 0 = #0000 = 0000000000000000 +#000E: GR1: 24 = #0018 = 0000000000011000 +#000E: GR2: 1 = #0001 = 0000000000000001 +#000E: GR3: 0 = #0000 = 0000000000000000 +#000E: GR4: 0 = #0000 = 0000000000000000 +#000E: GR5: 0 = #0000 = 0000000000000000 +#000E: GR6: 0 = #0000 = 0000000000000000 +#000E: GR7: 0 = #0000 = 0000000000000000 +#000E: SP: 510 = #01FE = 0000000111111110 +#000E: PR: 14 = #000E = 0000000000001110 +#000E: FR (OF SF ZF): 000 +#000E: Memory:::: +#000E: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F +#000E: 0000: 7001 0000 7002 0000 1210 0013 1020 0017 F000 0002 1210 0018 1220 0001 F000 0002 +#000E: 0010: 7120 7110 8100 0061 0062 0063 0064 0004 000A 0000 0000 0000 0000 0000 0000 0000 +#000E: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0040: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0050: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0060: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0070: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0080: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0090: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 00A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 00B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 00C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 00D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 00E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 00F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0110: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0120: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0130: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0140: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0150: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0160: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0170: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0180: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 0190: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 01A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 01B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 01C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 01D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 01E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#000E: 01F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 + + +#0010: Register:::: +#0010: GR0: 0 = #0000 = 0000000000000000 +#0010: GR1: 24 = #0018 = 0000000000011000 +#0010: GR2: 1 = #0001 = 0000000000000001 +#0010: GR3: 0 = #0000 = 0000000000000000 +#0010: GR4: 0 = #0000 = 0000000000000000 +#0010: GR5: 0 = #0000 = 0000000000000000 +#0010: GR6: 0 = #0000 = 0000000000000000 +#0010: GR7: 0 = #0000 = 0000000000000000 +#0010: SP: 510 = #01FE = 0000000111111110 +#0010: PR: 16 = #0010 = 0000000000010000 +#0010: FR (OF SF ZF): 000 +#0010: Memory:::: +#0010: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F +#0010: 0000: 7001 0000 7002 0000 1210 0013 1020 0017 F000 0002 1210 0018 1220 0001 F000 0002 +#0010: 0010: 7120 7110 8100 0061 0062 0063 0064 0004 000A 0000 0000 0000 0000 0000 0000 0000 +#0010: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0040: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0050: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0060: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0070: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0080: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0090: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 00A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 00B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 00C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 00D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 00E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 00F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0110: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0120: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0130: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0140: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0150: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0160: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0170: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0180: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 0190: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 01A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 01B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 01C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 01D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 01E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0010: 01F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 + +#0011: Register:::: +#0011: GR0: 0 = #0000 = 0000000000000000 +#0011: GR1: 24 = #0018 = 0000000000011000 +#0011: GR2: 0 = #0000 = 0000000000000000 +#0011: GR3: 0 = #0000 = 0000000000000000 +#0011: GR4: 0 = #0000 = 0000000000000000 +#0011: GR5: 0 = #0000 = 0000000000000000 +#0011: GR6: 0 = #0000 = 0000000000000000 +#0011: GR7: 0 = #0000 = 0000000000000000 +#0011: SP: 511 = #01FF = 0000000111111111 +#0011: PR: 17 = #0011 = 0000000000010001 +#0011: FR (OF SF ZF): 000 +#0011: Memory:::: +#0011: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F +#0011: 0000: 7001 0000 7002 0000 1210 0013 1020 0017 F000 0002 1210 0018 1220 0001 F000 0002 +#0011: 0010: 7120 7110 8100 0061 0062 0063 0064 0004 000A 0000 0000 0000 0000 0000 0000 0000 +#0011: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0040: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0050: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0060: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0070: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0080: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0090: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 00A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 00B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 00C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 00D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 00E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 00F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0110: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0120: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0130: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0140: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0150: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0160: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0170: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0180: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 0190: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 01A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 01B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 01C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 01D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 01E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0011: 01F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 + +#0012: Register:::: +#0012: GR0: 0 = #0000 = 0000000000000000 +#0012: GR1: 0 = #0000 = 0000000000000000 +#0012: GR2: 0 = #0000 = 0000000000000000 +#0012: GR3: 0 = #0000 = 0000000000000000 +#0012: GR4: 0 = #0000 = 0000000000000000 +#0012: GR5: 0 = #0000 = 0000000000000000 +#0012: GR6: 0 = #0000 = 0000000000000000 +#0012: GR7: 0 = #0000 = 0000000000000000 +#0012: SP: 512 = #0200 = 0000001000000000 +#0012: PR: 18 = #0012 = 0000000000010010 +#0012: FR (OF SF ZF): 000 +#0012: Memory:::: +#0012: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F +#0012: 0000: 7001 0000 7002 0000 1210 0013 1020 0017 F000 0002 1210 0018 1220 0001 F000 0002 +#0012: 0010: 7120 7110 8100 0061 0062 0063 0064 0004 000A 0000 0000 0000 0000 0000 0000 0000 +#0012: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0040: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0050: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0060: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0070: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0080: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0090: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 00A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 00B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 00C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 00D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 00E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 00F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0110: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0120: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0130: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0140: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0150: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0160: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0170: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0180: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 0190: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 01A0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 01B0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 01C0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 01D0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 01E0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 +#0012: 01F0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 + diff --git a/as/misc/misc_out_hello/Makefile b/as/misc/misc_out_hello/Makefile new file mode 100644 index 0000000..ea9a465 --- /dev/null +++ b/as/misc/misc_out_hello/Makefile @@ -0,0 +1,6 @@ +include ../CMD.mk # YACASL2DIR, CASL2 +CASL2FLAG = -slatd +ASDIR = $(YACASL2DIR)/as/MISC/out +ASFILE = $(ASDIR)/hello1.casl +CMD = $(CASL2) $(CASL2FLAG) $(ASFILE) +include ../TEST.mk diff --git a/as/misc/mula0.casl b/as/misc/mula0.casl index e21184c..138fe8c 100644 --- a/as/misc/mula0.casl +++ b/as/misc/mula0.casl @@ -15,7 +15,7 @@ CHK2 PUSH 0,GR1 ; GR1を退避 POP GR1 ; GR1を復元 LAD GR0,0 ; 積 JUMP MLOOP -C2OV POP GR1 ; +C2OV POP GR1 ; JUMP MFIN MLOOP CPA GR2,GR3 ; ループ先頭。(GR2 = GR3)の場合、ループ脱出 JZE MMIN ; ↓ diff --git a/as/misc/mula0_call/0.txt b/as/misc/mula0_call/0.txt new file mode 100644 index 0000000..cdb1ede --- /dev/null +++ b/as/misc/mula0_call/0.txt @@ -0,0 +1,1937 @@ +../../../../casl2 -M640 ../../../../as/FUNC/mula_call.casl ../../../../as/FUNC/mula0.casl ../../../../as/FUNC/outa.casl +0 +0 +0 +-------------------- +0 +1 +0 +-------------------- +0 +2 +0 +-------------------- +0 +127 +0 +-------------------- +0 +128 +0 +-------------------- +0 +151 +0 +-------------------- +0 +217 +0 +-------------------- +0 +255 +0 +-------------------- +0 +256 +0 +-------------------- +0 +257 +0 +-------------------- +0 +32767 +0 +-------------------- +0 +-32768 +Warning: overflow +-------------------- +0 +-32767 +0 +-------------------- +0 +-257 +0 +-------------------- +0 +-256 +0 +-------------------- +0 +-255 +0 +-------------------- +0 +-217 +0 +-------------------- +0 +-151 +0 +-------------------- +0 +-128 +0 +-------------------- +0 +-127 +0 +-------------------- +0 +-2 +0 +-------------------- +0 +-1 +0 +-------------------- +1 +0 +0 +-------------------- +1 +1 +1 +-------------------- +1 +2 +2 +-------------------- +1 +127 +127 +-------------------- +1 +128 +128 +-------------------- +1 +151 +151 +-------------------- +1 +217 +217 +-------------------- +1 +255 +255 +-------------------- +1 +256 +256 +-------------------- +1 +257 +257 +-------------------- +1 +32767 +32767 +-------------------- +1 +-32768 +Warning: overflow +-------------------- +1 +-32767 +-32767 +-------------------- +1 +-257 +-257 +-------------------- +1 +-256 +-256 +-------------------- +1 +-255 +-255 +-------------------- +1 +-217 +-217 +-------------------- +1 +-151 +-151 +-------------------- +1 +-128 +-128 +-------------------- +1 +-127 +-127 +-------------------- +1 +-2 +-2 +-------------------- +1 +-1 +-1 +-------------------- +2 +0 +0 +-------------------- +2 +1 +2 +-------------------- +2 +2 +4 +-------------------- +2 +127 +254 +-------------------- +2 +128 +256 +-------------------- +2 +151 +302 +-------------------- +2 +217 +434 +-------------------- +2 +255 +510 +-------------------- +2 +256 +512 +-------------------- +2 +257 +514 +-------------------- +2 +32767 +Warning: overflow +-------------------- +2 +-32768 +Warning: overflow +-------------------- +2 +-32767 +Warning: overflow +-------------------- +2 +-257 +-514 +-------------------- +2 +-256 +-512 +-------------------- +2 +-255 +-510 +-------------------- +2 +-217 +-434 +-------------------- +2 +-151 +-302 +-------------------- +2 +-128 +-256 +-------------------- +2 +-127 +-254 +-------------------- +2 +-2 +-4 +-------------------- +2 +-1 +-2 +-------------------- +127 +0 +0 +-------------------- +127 +1 +127 +-------------------- +127 +2 +254 +-------------------- +127 +127 +16129 +-------------------- +127 +128 +16256 +-------------------- +127 +151 +19177 +-------------------- +127 +217 +27559 +-------------------- +127 +255 +32385 +-------------------- +127 +256 +32512 +-------------------- +127 +257 +32639 +-------------------- +127 +32767 +Warning: overflow +-------------------- +127 +-32768 +Warning: overflow +-------------------- +127 +-32767 +Warning: overflow +-------------------- +127 +-257 +-32639 +-------------------- +127 +-256 +-32512 +-------------------- +127 +-255 +-32385 +-------------------- +127 +-217 +-27559 +-------------------- +127 +-151 +-19177 +-------------------- +127 +-128 +-16256 +-------------------- +127 +-127 +-16129 +-------------------- +127 +-2 +-254 +-------------------- +127 +-1 +-127 +-------------------- +128 +0 +0 +-------------------- +128 +1 +128 +-------------------- +128 +2 +256 +-------------------- +128 +127 +16256 +-------------------- +128 +128 +16384 +-------------------- +128 +151 +19328 +-------------------- +128 +217 +27776 +-------------------- +128 +255 +32640 +-------------------- +128 +256 +Warning: overflow +-------------------- +128 +257 +Warning: overflow +-------------------- +128 +32767 +Warning: overflow +-------------------- +128 +-32768 +Warning: overflow +-------------------- +128 +-32767 +Warning: overflow +-------------------- +128 +-257 +Warning: overflow +-------------------- +128 +-256 +Warning: overflow +-------------------- +128 +-255 +-32640 +-------------------- +128 +-217 +-27776 +-------------------- +128 +-151 +-19328 +-------------------- +128 +-128 +-16384 +-------------------- +128 +-127 +-16256 +-------------------- +128 +-2 +-256 +-------------------- +128 +-1 +-128 +-------------------- +151 +0 +0 +-------------------- +151 +1 +151 +-------------------- +151 +2 +302 +-------------------- +151 +127 +19177 +-------------------- +151 +128 +19328 +-------------------- +151 +151 +22801 +-------------------- +151 +217 +32767 +-------------------- +151 +255 +Warning: overflow +-------------------- +151 +256 +Warning: overflow +-------------------- +151 +257 +Warning: overflow +-------------------- +151 +32767 +Warning: overflow +-------------------- +151 +-32768 +Warning: overflow +-------------------- +151 +-32767 +Warning: overflow +-------------------- +151 +-257 +Warning: overflow +-------------------- +151 +-256 +Warning: overflow +-------------------- +151 +-255 +Warning: overflow +-------------------- +151 +-217 +-32767 +-------------------- +151 +-151 +-22801 +-------------------- +151 +-128 +-19328 +-------------------- +151 +-127 +-19177 +-------------------- +151 +-2 +-302 +-------------------- +151 +-1 +-151 +-------------------- +217 +0 +0 +-------------------- +217 +1 +217 +-------------------- +217 +2 +434 +-------------------- +217 +127 +27559 +-------------------- +217 +128 +27776 +-------------------- +217 +151 +32767 +-------------------- +217 +217 +Warning: overflow +-------------------- +217 +255 +Warning: overflow +-------------------- +217 +256 +Warning: overflow +-------------------- +217 +257 +Warning: overflow +-------------------- +217 +32767 +Warning: overflow +-------------------- +217 +-32768 +Warning: overflow +-------------------- +217 +-32767 +Warning: overflow +-------------------- +217 +-257 +Warning: overflow +-------------------- +217 +-256 +Warning: overflow +-------------------- +217 +-255 +Warning: overflow +-------------------- +217 +-217 +Warning: overflow +-------------------- +217 +-151 +-32767 +-------------------- +217 +-128 +-27776 +-------------------- +217 +-127 +-27559 +-------------------- +217 +-2 +-434 +-------------------- +217 +-1 +-217 +-------------------- +255 +0 +0 +-------------------- +255 +1 +255 +-------------------- +255 +2 +510 +-------------------- +255 +127 +32385 +-------------------- +255 +128 +32640 +-------------------- +255 +151 +Warning: overflow +-------------------- +255 +217 +Warning: overflow +-------------------- +255 +255 +Warning: overflow +-------------------- +255 +256 +Warning: overflow +-------------------- +255 +257 +Warning: overflow +-------------------- +255 +32767 +Warning: overflow +-------------------- +255 +-32768 +Warning: overflow +-------------------- +255 +-32767 +Warning: overflow +-------------------- +255 +-257 +Warning: overflow +-------------------- +255 +-256 +Warning: overflow +-------------------- +255 +-255 +Warning: overflow +-------------------- +255 +-217 +Warning: overflow +-------------------- +255 +-151 +Warning: overflow +-------------------- +255 +-128 +-32640 +-------------------- +255 +-127 +-32385 +-------------------- +255 +-2 +-510 +-------------------- +255 +-1 +-255 +-------------------- +256 +0 +0 +-------------------- +256 +1 +256 +-------------------- +256 +2 +512 +-------------------- +256 +127 +32512 +-------------------- +256 +128 +Warning: overflow +-------------------- +256 +151 +Warning: overflow +-------------------- +256 +217 +Warning: overflow +-------------------- +256 +255 +Warning: overflow +-------------------- +256 +256 +Warning: overflow +-------------------- +256 +257 +Warning: overflow +-------------------- +256 +32767 +Warning: overflow +-------------------- +256 +-32768 +Warning: overflow +-------------------- +256 +-32767 +Warning: overflow +-------------------- +256 +-257 +Warning: overflow +-------------------- +256 +-256 +Warning: overflow +-------------------- +256 +-255 +Warning: overflow +-------------------- +256 +-217 +Warning: overflow +-------------------- +256 +-151 +Warning: overflow +-------------------- +256 +-128 +Warning: overflow +-------------------- +256 +-127 +-32512 +-------------------- +256 +-2 +-512 +-------------------- +256 +-1 +-256 +-------------------- +257 +0 +0 +-------------------- +257 +1 +257 +-------------------- +257 +2 +514 +-------------------- +257 +127 +32639 +-------------------- +257 +128 +Warning: overflow +-------------------- +257 +151 +Warning: overflow +-------------------- +257 +217 +Warning: overflow +-------------------- +257 +255 +Warning: overflow +-------------------- +257 +256 +Warning: overflow +-------------------- +257 +257 +Warning: overflow +-------------------- +257 +32767 +Warning: overflow +-------------------- +257 +-32768 +Warning: overflow +-------------------- +257 +-32767 +Warning: overflow +-------------------- +257 +-257 +Warning: overflow +-------------------- +257 +-256 +Warning: overflow +-------------------- +257 +-255 +Warning: overflow +-------------------- +257 +-217 +Warning: overflow +-------------------- +257 +-151 +Warning: overflow +-------------------- +257 +-128 +Warning: overflow +-------------------- +257 +-127 +-32639 +-------------------- +257 +-2 +-514 +-------------------- +257 +-1 +-257 +-------------------- +32767 +0 +0 +-------------------- +32767 +1 +32767 +-------------------- +32767 +2 +Warning: overflow +-------------------- +32767 +127 +Warning: overflow +-------------------- +32767 +128 +Warning: overflow +-------------------- +32767 +151 +Warning: overflow +-------------------- +32767 +217 +Warning: overflow +-------------------- +32767 +255 +Warning: overflow +-------------------- +32767 +256 +Warning: overflow +-------------------- +32767 +257 +Warning: overflow +-------------------- +32767 +32767 +Warning: overflow +-------------------- +32767 +-32768 +Warning: overflow +-------------------- +32767 +-32767 +Warning: overflow +-------------------- +32767 +-257 +Warning: overflow +-------------------- +32767 +-256 +Warning: overflow +-------------------- +32767 +-255 +Warning: overflow +-------------------- +32767 +-217 +Warning: overflow +-------------------- +32767 +-151 +Warning: overflow +-------------------- +32767 +-128 +Warning: overflow +-------------------- +32767 +-127 +Warning: overflow +-------------------- +32767 +-2 +Warning: overflow +-------------------- +32767 +-1 +-32767 +-------------------- +-32768 +0 +Warning: overflow +-------------------- +-32768 +1 +Warning: overflow +-------------------- +-32768 +2 +Warning: overflow +-------------------- +-32768 +127 +Warning: overflow +-------------------- +-32768 +128 +Warning: overflow +-------------------- +-32768 +151 +Warning: overflow +-------------------- +-32768 +217 +Warning: overflow +-------------------- +-32768 +255 +Warning: overflow +-------------------- +-32768 +256 +Warning: overflow +-------------------- +-32768 +257 +Warning: overflow +-------------------- +-32768 +32767 +Warning: overflow +-------------------- +-32768 +-32768 +Warning: overflow +-------------------- +-32768 +-32767 +Warning: overflow +-------------------- +-32768 +-257 +Warning: overflow +-------------------- +-32768 +-256 +Warning: overflow +-------------------- +-32768 +-255 +Warning: overflow +-------------------- +-32768 +-217 +Warning: overflow +-------------------- +-32768 +-151 +Warning: overflow +-------------------- +-32768 +-128 +Warning: overflow +-------------------- +-32768 +-127 +Warning: overflow +-------------------- +-32768 +-2 +Warning: overflow +-------------------- +-32768 +-1 +Warning: overflow +-------------------- +-32767 +0 +0 +-------------------- +-32767 +1 +-32767 +-------------------- +-32767 +2 +Warning: overflow +-------------------- +-32767 +127 +Warning: overflow +-------------------- +-32767 +128 +Warning: overflow +-------------------- +-32767 +151 +Warning: overflow +-------------------- +-32767 +217 +Warning: overflow +-------------------- +-32767 +255 +Warning: overflow +-------------------- +-32767 +256 +Warning: overflow +-------------------- +-32767 +257 +Warning: overflow +-------------------- +-32767 +32767 +Warning: overflow +-------------------- +-32767 +-32768 +Warning: overflow +-------------------- +-32767 +-32767 +Warning: overflow +-------------------- +-32767 +-257 +Warning: overflow +-------------------- +-32767 +-256 +Warning: overflow +-------------------- +-32767 +-255 +Warning: overflow +-------------------- +-32767 +-217 +Warning: overflow +-------------------- +-32767 +-151 +Warning: overflow +-------------------- +-32767 +-128 +Warning: overflow +-------------------- +-32767 +-127 +Warning: overflow +-------------------- +-32767 +-2 +Warning: overflow +-------------------- +-32767 +-1 +32767 +-------------------- +-257 +0 +0 +-------------------- +-257 +1 +-257 +-------------------- +-257 +2 +-514 +-------------------- +-257 +127 +-32639 +-------------------- +-257 +128 +Warning: overflow +-------------------- +-257 +151 +Warning: overflow +-------------------- +-257 +217 +Warning: overflow +-------------------- +-257 +255 +Warning: overflow +-------------------- +-257 +256 +Warning: overflow +-------------------- +-257 +257 +Warning: overflow +-------------------- +-257 +32767 +Warning: overflow +-------------------- +-257 +-32768 +Warning: overflow +-------------------- +-257 +-32767 +Warning: overflow +-------------------- +-257 +-257 +Warning: overflow +-------------------- +-257 +-256 +Warning: overflow +-------------------- +-257 +-255 +Warning: overflow +-------------------- +-257 +-217 +Warning: overflow +-------------------- +-257 +-151 +Warning: overflow +-------------------- +-257 +-128 +Warning: overflow +-------------------- +-257 +-127 +32639 +-------------------- +-257 +-2 +514 +-------------------- +-257 +-1 +257 +-------------------- +-256 +0 +0 +-------------------- +-256 +1 +-256 +-------------------- +-256 +2 +-512 +-------------------- +-256 +127 +-32512 +-------------------- +-256 +128 +Warning: overflow +-------------------- +-256 +151 +Warning: overflow +-------------------- +-256 +217 +Warning: overflow +-------------------- +-256 +255 +Warning: overflow +-------------------- +-256 +256 +Warning: overflow +-------------------- +-256 +257 +Warning: overflow +-------------------- +-256 +32767 +Warning: overflow +-------------------- +-256 +-32768 +Warning: overflow +-------------------- +-256 +-32767 +Warning: overflow +-------------------- +-256 +-257 +Warning: overflow +-------------------- +-256 +-256 +Warning: overflow +-------------------- +-256 +-255 +Warning: overflow +-------------------- +-256 +-217 +Warning: overflow +-------------------- +-256 +-151 +Warning: overflow +-------------------- +-256 +-128 +Warning: overflow +-------------------- +-256 +-127 +32512 +-------------------- +-256 +-2 +512 +-------------------- +-256 +-1 +256 +-------------------- +-255 +0 +0 +-------------------- +-255 +1 +-255 +-------------------- +-255 +2 +-510 +-------------------- +-255 +127 +-32385 +-------------------- +-255 +128 +-32640 +-------------------- +-255 +151 +Warning: overflow +-------------------- +-255 +217 +Warning: overflow +-------------------- +-255 +255 +Warning: overflow +-------------------- +-255 +256 +Warning: overflow +-------------------- +-255 +257 +Warning: overflow +-------------------- +-255 +32767 +Warning: overflow +-------------------- +-255 +-32768 +Warning: overflow +-------------------- +-255 +-32767 +Warning: overflow +-------------------- +-255 +-257 +Warning: overflow +-------------------- +-255 +-256 +Warning: overflow +-------------------- +-255 +-255 +Warning: overflow +-------------------- +-255 +-217 +Warning: overflow +-------------------- +-255 +-151 +Warning: overflow +-------------------- +-255 +-128 +32640 +-------------------- +-255 +-127 +32385 +-------------------- +-255 +-2 +510 +-------------------- +-255 +-1 +255 +-------------------- +-217 +0 +0 +-------------------- +-217 +1 +-217 +-------------------- +-217 +2 +-434 +-------------------- +-217 +127 +-27559 +-------------------- +-217 +128 +-27776 +-------------------- +-217 +151 +-32767 +-------------------- +-217 +217 +Warning: overflow +-------------------- +-217 +255 +Warning: overflow +-------------------- +-217 +256 +Warning: overflow +-------------------- +-217 +257 +Warning: overflow +-------------------- +-217 +32767 +Warning: overflow +-------------------- +-217 +-32768 +Warning: overflow +-------------------- +-217 +-32767 +Warning: overflow +-------------------- +-217 +-257 +Warning: overflow +-------------------- +-217 +-256 +Warning: overflow +-------------------- +-217 +-255 +Warning: overflow +-------------------- +-217 +-217 +Warning: overflow +-------------------- +-217 +-151 +32767 +-------------------- +-217 +-128 +27776 +-------------------- +-217 +-127 +27559 +-------------------- +-217 +-2 +434 +-------------------- +-217 +-1 +217 +-------------------- +-151 +0 +0 +-------------------- +-151 +1 +-151 +-------------------- +-151 +2 +-302 +-------------------- +-151 +127 +-19177 +-------------------- +-151 +128 +-19328 +-------------------- +-151 +151 +-22801 +-------------------- +-151 +217 +-32767 +-------------------- +-151 +255 +Warning: overflow +-------------------- +-151 +256 +Warning: overflow +-------------------- +-151 +257 +Warning: overflow +-------------------- +-151 +32767 +Warning: overflow +-------------------- +-151 +-32768 +Warning: overflow +-------------------- +-151 +-32767 +Warning: overflow +-------------------- +-151 +-257 +Warning: overflow +-------------------- +-151 +-256 +Warning: overflow +-------------------- +-151 +-255 +Warning: overflow +-------------------- +-151 +-217 +32767 +-------------------- +-151 +-151 +22801 +-------------------- +-151 +-128 +19328 +-------------------- +-151 +-127 +19177 +-------------------- +-151 +-2 +302 +-------------------- +-151 +-1 +151 +-------------------- +-128 +0 +0 +-------------------- +-128 +1 +-128 +-------------------- +-128 +2 +-256 +-------------------- +-128 +127 +-16256 +-------------------- +-128 +128 +-16384 +-------------------- +-128 +151 +-19328 +-------------------- +-128 +217 +-27776 +-------------------- +-128 +255 +-32640 +-------------------- +-128 +256 +Warning: overflow +-------------------- +-128 +257 +Warning: overflow +-------------------- +-128 +32767 +Warning: overflow +-------------------- +-128 +-32768 +Warning: overflow +-------------------- +-128 +-32767 +Warning: overflow +-------------------- +-128 +-257 +Warning: overflow +-------------------- +-128 +-256 +Warning: overflow +-------------------- +-128 +-255 +32640 +-------------------- +-128 +-217 +27776 +-------------------- +-128 +-151 +19328 +-------------------- +-128 +-128 +16384 +-------------------- +-128 +-127 +16256 +-------------------- +-128 +-2 +256 +-------------------- +-128 +-1 +128 +-------------------- +-127 +0 +0 +-------------------- +-127 +1 +-127 +-------------------- +-127 +2 +-254 +-------------------- +-127 +127 +-16129 +-------------------- +-127 +128 +-16256 +-------------------- +-127 +151 +-19177 +-------------------- +-127 +217 +-27559 +-------------------- +-127 +255 +-32385 +-------------------- +-127 +256 +-32512 +-------------------- +-127 +257 +-32639 +-------------------- +-127 +32767 +Warning: overflow +-------------------- +-127 +-32768 +Warning: overflow +-------------------- +-127 +-32767 +Warning: overflow +-------------------- +-127 +-257 +32639 +-------------------- +-127 +-256 +32512 +-------------------- +-127 +-255 +32385 +-------------------- +-127 +-217 +27559 +-------------------- +-127 +-151 +19177 +-------------------- +-127 +-128 +16256 +-------------------- +-127 +-127 +16129 +-------------------- +-127 +-2 +254 +-------------------- +-127 +-1 +127 +-------------------- +-2 +0 +0 +-------------------- +-2 +1 +-2 +-------------------- +-2 +2 +-4 +-------------------- +-2 +127 +-254 +-------------------- +-2 +128 +-256 +-------------------- +-2 +151 +-302 +-------------------- +-2 +217 +-434 +-------------------- +-2 +255 +-510 +-------------------- +-2 +256 +-512 +-------------------- +-2 +257 +-514 +-------------------- +-2 +32767 +Warning: overflow +-------------------- +-2 +-32768 +Warning: overflow +-------------------- +-2 +-32767 +Warning: overflow +-------------------- +-2 +-257 +514 +-------------------- +-2 +-256 +512 +-------------------- +-2 +-255 +510 +-------------------- +-2 +-217 +434 +-------------------- +-2 +-151 +302 +-------------------- +-2 +-128 +256 +-------------------- +-2 +-127 +254 +-------------------- +-2 +-2 +4 +-------------------- +-2 +-1 +2 +-------------------- +-1 +0 +0 +-------------------- +-1 +1 +-1 +-------------------- +-1 +2 +-2 +-------------------- +-1 +127 +-127 +-------------------- +-1 +128 +-128 +-------------------- +-1 +151 +-151 +-------------------- +-1 +217 +-217 +-------------------- +-1 +255 +-255 +-------------------- +-1 +256 +-256 +-------------------- +-1 +257 +-257 +-------------------- +-1 +32767 +-32767 +-------------------- +-1 +-32768 +Warning: overflow +-------------------- +-1 +-32767 +32767 +-------------------- +-1 +-257 +257 +-------------------- +-1 +-256 +256 +-------------------- +-1 +-255 +255 +-------------------- +-1 +-217 +217 +-------------------- +-1 +-151 +151 +-------------------- +-1 +-128 +128 +-------------------- +-1 +-127 +127 +-------------------- +-1 +-2 +2 +-------------------- +-1 +-1 +1 +-------------------- diff --git a/as/misc/mula0_call/1.txt b/as/misc/mula0_call/1.txt new file mode 100644 index 0000000..cdb1ede --- /dev/null +++ b/as/misc/mula0_call/1.txt @@ -0,0 +1,1937 @@ +../../../../casl2 -M640 ../../../../as/FUNC/mula_call.casl ../../../../as/FUNC/mula0.casl ../../../../as/FUNC/outa.casl +0 +0 +0 +-------------------- +0 +1 +0 +-------------------- +0 +2 +0 +-------------------- +0 +127 +0 +-------------------- +0 +128 +0 +-------------------- +0 +151 +0 +-------------------- +0 +217 +0 +-------------------- +0 +255 +0 +-------------------- +0 +256 +0 +-------------------- +0 +257 +0 +-------------------- +0 +32767 +0 +-------------------- +0 +-32768 +Warning: overflow +-------------------- +0 +-32767 +0 +-------------------- +0 +-257 +0 +-------------------- +0 +-256 +0 +-------------------- +0 +-255 +0 +-------------------- +0 +-217 +0 +-------------------- +0 +-151 +0 +-------------------- +0 +-128 +0 +-------------------- +0 +-127 +0 +-------------------- +0 +-2 +0 +-------------------- +0 +-1 +0 +-------------------- +1 +0 +0 +-------------------- +1 +1 +1 +-------------------- +1 +2 +2 +-------------------- +1 +127 +127 +-------------------- +1 +128 +128 +-------------------- +1 +151 +151 +-------------------- +1 +217 +217 +-------------------- +1 +255 +255 +-------------------- +1 +256 +256 +-------------------- +1 +257 +257 +-------------------- +1 +32767 +32767 +-------------------- +1 +-32768 +Warning: overflow +-------------------- +1 +-32767 +-32767 +-------------------- +1 +-257 +-257 +-------------------- +1 +-256 +-256 +-------------------- +1 +-255 +-255 +-------------------- +1 +-217 +-217 +-------------------- +1 +-151 +-151 +-------------------- +1 +-128 +-128 +-------------------- +1 +-127 +-127 +-------------------- +1 +-2 +-2 +-------------------- +1 +-1 +-1 +-------------------- +2 +0 +0 +-------------------- +2 +1 +2 +-------------------- +2 +2 +4 +-------------------- +2 +127 +254 +-------------------- +2 +128 +256 +-------------------- +2 +151 +302 +-------------------- +2 +217 +434 +-------------------- +2 +255 +510 +-------------------- +2 +256 +512 +-------------------- +2 +257 +514 +-------------------- +2 +32767 +Warning: overflow +-------------------- +2 +-32768 +Warning: overflow +-------------------- +2 +-32767 +Warning: overflow +-------------------- +2 +-257 +-514 +-------------------- +2 +-256 +-512 +-------------------- +2 +-255 +-510 +-------------------- +2 +-217 +-434 +-------------------- +2 +-151 +-302 +-------------------- +2 +-128 +-256 +-------------------- +2 +-127 +-254 +-------------------- +2 +-2 +-4 +-------------------- +2 +-1 +-2 +-------------------- +127 +0 +0 +-------------------- +127 +1 +127 +-------------------- +127 +2 +254 +-------------------- +127 +127 +16129 +-------------------- +127 +128 +16256 +-------------------- +127 +151 +19177 +-------------------- +127 +217 +27559 +-------------------- +127 +255 +32385 +-------------------- +127 +256 +32512 +-------------------- +127 +257 +32639 +-------------------- +127 +32767 +Warning: overflow +-------------------- +127 +-32768 +Warning: overflow +-------------------- +127 +-32767 +Warning: overflow +-------------------- +127 +-257 +-32639 +-------------------- +127 +-256 +-32512 +-------------------- +127 +-255 +-32385 +-------------------- +127 +-217 +-27559 +-------------------- +127 +-151 +-19177 +-------------------- +127 +-128 +-16256 +-------------------- +127 +-127 +-16129 +-------------------- +127 +-2 +-254 +-------------------- +127 +-1 +-127 +-------------------- +128 +0 +0 +-------------------- +128 +1 +128 +-------------------- +128 +2 +256 +-------------------- +128 +127 +16256 +-------------------- +128 +128 +16384 +-------------------- +128 +151 +19328 +-------------------- +128 +217 +27776 +-------------------- +128 +255 +32640 +-------------------- +128 +256 +Warning: overflow +-------------------- +128 +257 +Warning: overflow +-------------------- +128 +32767 +Warning: overflow +-------------------- +128 +-32768 +Warning: overflow +-------------------- +128 +-32767 +Warning: overflow +-------------------- +128 +-257 +Warning: overflow +-------------------- +128 +-256 +Warning: overflow +-------------------- +128 +-255 +-32640 +-------------------- +128 +-217 +-27776 +-------------------- +128 +-151 +-19328 +-------------------- +128 +-128 +-16384 +-------------------- +128 +-127 +-16256 +-------------------- +128 +-2 +-256 +-------------------- +128 +-1 +-128 +-------------------- +151 +0 +0 +-------------------- +151 +1 +151 +-------------------- +151 +2 +302 +-------------------- +151 +127 +19177 +-------------------- +151 +128 +19328 +-------------------- +151 +151 +22801 +-------------------- +151 +217 +32767 +-------------------- +151 +255 +Warning: overflow +-------------------- +151 +256 +Warning: overflow +-------------------- +151 +257 +Warning: overflow +-------------------- +151 +32767 +Warning: overflow +-------------------- +151 +-32768 +Warning: overflow +-------------------- +151 +-32767 +Warning: overflow +-------------------- +151 +-257 +Warning: overflow +-------------------- +151 +-256 +Warning: overflow +-------------------- +151 +-255 +Warning: overflow +-------------------- +151 +-217 +-32767 +-------------------- +151 +-151 +-22801 +-------------------- +151 +-128 +-19328 +-------------------- +151 +-127 +-19177 +-------------------- +151 +-2 +-302 +-------------------- +151 +-1 +-151 +-------------------- +217 +0 +0 +-------------------- +217 +1 +217 +-------------------- +217 +2 +434 +-------------------- +217 +127 +27559 +-------------------- +217 +128 +27776 +-------------------- +217 +151 +32767 +-------------------- +217 +217 +Warning: overflow +-------------------- +217 +255 +Warning: overflow +-------------------- +217 +256 +Warning: overflow +-------------------- +217 +257 +Warning: overflow +-------------------- +217 +32767 +Warning: overflow +-------------------- +217 +-32768 +Warning: overflow +-------------------- +217 +-32767 +Warning: overflow +-------------------- +217 +-257 +Warning: overflow +-------------------- +217 +-256 +Warning: overflow +-------------------- +217 +-255 +Warning: overflow +-------------------- +217 +-217 +Warning: overflow +-------------------- +217 +-151 +-32767 +-------------------- +217 +-128 +-27776 +-------------------- +217 +-127 +-27559 +-------------------- +217 +-2 +-434 +-------------------- +217 +-1 +-217 +-------------------- +255 +0 +0 +-------------------- +255 +1 +255 +-------------------- +255 +2 +510 +-------------------- +255 +127 +32385 +-------------------- +255 +128 +32640 +-------------------- +255 +151 +Warning: overflow +-------------------- +255 +217 +Warning: overflow +-------------------- +255 +255 +Warning: overflow +-------------------- +255 +256 +Warning: overflow +-------------------- +255 +257 +Warning: overflow +-------------------- +255 +32767 +Warning: overflow +-------------------- +255 +-32768 +Warning: overflow +-------------------- +255 +-32767 +Warning: overflow +-------------------- +255 +-257 +Warning: overflow +-------------------- +255 +-256 +Warning: overflow +-------------------- +255 +-255 +Warning: overflow +-------------------- +255 +-217 +Warning: overflow +-------------------- +255 +-151 +Warning: overflow +-------------------- +255 +-128 +-32640 +-------------------- +255 +-127 +-32385 +-------------------- +255 +-2 +-510 +-------------------- +255 +-1 +-255 +-------------------- +256 +0 +0 +-------------------- +256 +1 +256 +-------------------- +256 +2 +512 +-------------------- +256 +127 +32512 +-------------------- +256 +128 +Warning: overflow +-------------------- +256 +151 +Warning: overflow +-------------------- +256 +217 +Warning: overflow +-------------------- +256 +255 +Warning: overflow +-------------------- +256 +256 +Warning: overflow +-------------------- +256 +257 +Warning: overflow +-------------------- +256 +32767 +Warning: overflow +-------------------- +256 +-32768 +Warning: overflow +-------------------- +256 +-32767 +Warning: overflow +-------------------- +256 +-257 +Warning: overflow +-------------------- +256 +-256 +Warning: overflow +-------------------- +256 +-255 +Warning: overflow +-------------------- +256 +-217 +Warning: overflow +-------------------- +256 +-151 +Warning: overflow +-------------------- +256 +-128 +Warning: overflow +-------------------- +256 +-127 +-32512 +-------------------- +256 +-2 +-512 +-------------------- +256 +-1 +-256 +-------------------- +257 +0 +0 +-------------------- +257 +1 +257 +-------------------- +257 +2 +514 +-------------------- +257 +127 +32639 +-------------------- +257 +128 +Warning: overflow +-------------------- +257 +151 +Warning: overflow +-------------------- +257 +217 +Warning: overflow +-------------------- +257 +255 +Warning: overflow +-------------------- +257 +256 +Warning: overflow +-------------------- +257 +257 +Warning: overflow +-------------------- +257 +32767 +Warning: overflow +-------------------- +257 +-32768 +Warning: overflow +-------------------- +257 +-32767 +Warning: overflow +-------------------- +257 +-257 +Warning: overflow +-------------------- +257 +-256 +Warning: overflow +-------------------- +257 +-255 +Warning: overflow +-------------------- +257 +-217 +Warning: overflow +-------------------- +257 +-151 +Warning: overflow +-------------------- +257 +-128 +Warning: overflow +-------------------- +257 +-127 +-32639 +-------------------- +257 +-2 +-514 +-------------------- +257 +-1 +-257 +-------------------- +32767 +0 +0 +-------------------- +32767 +1 +32767 +-------------------- +32767 +2 +Warning: overflow +-------------------- +32767 +127 +Warning: overflow +-------------------- +32767 +128 +Warning: overflow +-------------------- +32767 +151 +Warning: overflow +-------------------- +32767 +217 +Warning: overflow +-------------------- +32767 +255 +Warning: overflow +-------------------- +32767 +256 +Warning: overflow +-------------------- +32767 +257 +Warning: overflow +-------------------- +32767 +32767 +Warning: overflow +-------------------- +32767 +-32768 +Warning: overflow +-------------------- +32767 +-32767 +Warning: overflow +-------------------- +32767 +-257 +Warning: overflow +-------------------- +32767 +-256 +Warning: overflow +-------------------- +32767 +-255 +Warning: overflow +-------------------- +32767 +-217 +Warning: overflow +-------------------- +32767 +-151 +Warning: overflow +-------------------- +32767 +-128 +Warning: overflow +-------------------- +32767 +-127 +Warning: overflow +-------------------- +32767 +-2 +Warning: overflow +-------------------- +32767 +-1 +-32767 +-------------------- +-32768 +0 +Warning: overflow +-------------------- +-32768 +1 +Warning: overflow +-------------------- +-32768 +2 +Warning: overflow +-------------------- +-32768 +127 +Warning: overflow +-------------------- +-32768 +128 +Warning: overflow +-------------------- +-32768 +151 +Warning: overflow +-------------------- +-32768 +217 +Warning: overflow +-------------------- +-32768 +255 +Warning: overflow +-------------------- +-32768 +256 +Warning: overflow +-------------------- +-32768 +257 +Warning: overflow +-------------------- +-32768 +32767 +Warning: overflow +-------------------- +-32768 +-32768 +Warning: overflow +-------------------- +-32768 +-32767 +Warning: overflow +-------------------- +-32768 +-257 +Warning: overflow +-------------------- +-32768 +-256 +Warning: overflow +-------------------- +-32768 +-255 +Warning: overflow +-------------------- +-32768 +-217 +Warning: overflow +-------------------- +-32768 +-151 +Warning: overflow +-------------------- +-32768 +-128 +Warning: overflow +-------------------- +-32768 +-127 +Warning: overflow +-------------------- +-32768 +-2 +Warning: overflow +-------------------- +-32768 +-1 +Warning: overflow +-------------------- +-32767 +0 +0 +-------------------- +-32767 +1 +-32767 +-------------------- +-32767 +2 +Warning: overflow +-------------------- +-32767 +127 +Warning: overflow +-------------------- +-32767 +128 +Warning: overflow +-------------------- +-32767 +151 +Warning: overflow +-------------------- +-32767 +217 +Warning: overflow +-------------------- +-32767 +255 +Warning: overflow +-------------------- +-32767 +256 +Warning: overflow +-------------------- +-32767 +257 +Warning: overflow +-------------------- +-32767 +32767 +Warning: overflow +-------------------- +-32767 +-32768 +Warning: overflow +-------------------- +-32767 +-32767 +Warning: overflow +-------------------- +-32767 +-257 +Warning: overflow +-------------------- +-32767 +-256 +Warning: overflow +-------------------- +-32767 +-255 +Warning: overflow +-------------------- +-32767 +-217 +Warning: overflow +-------------------- +-32767 +-151 +Warning: overflow +-------------------- +-32767 +-128 +Warning: overflow +-------------------- +-32767 +-127 +Warning: overflow +-------------------- +-32767 +-2 +Warning: overflow +-------------------- +-32767 +-1 +32767 +-------------------- +-257 +0 +0 +-------------------- +-257 +1 +-257 +-------------------- +-257 +2 +-514 +-------------------- +-257 +127 +-32639 +-------------------- +-257 +128 +Warning: overflow +-------------------- +-257 +151 +Warning: overflow +-------------------- +-257 +217 +Warning: overflow +-------------------- +-257 +255 +Warning: overflow +-------------------- +-257 +256 +Warning: overflow +-------------------- +-257 +257 +Warning: overflow +-------------------- +-257 +32767 +Warning: overflow +-------------------- +-257 +-32768 +Warning: overflow +-------------------- +-257 +-32767 +Warning: overflow +-------------------- +-257 +-257 +Warning: overflow +-------------------- +-257 +-256 +Warning: overflow +-------------------- +-257 +-255 +Warning: overflow +-------------------- +-257 +-217 +Warning: overflow +-------------------- +-257 +-151 +Warning: overflow +-------------------- +-257 +-128 +Warning: overflow +-------------------- +-257 +-127 +32639 +-------------------- +-257 +-2 +514 +-------------------- +-257 +-1 +257 +-------------------- +-256 +0 +0 +-------------------- +-256 +1 +-256 +-------------------- +-256 +2 +-512 +-------------------- +-256 +127 +-32512 +-------------------- +-256 +128 +Warning: overflow +-------------------- +-256 +151 +Warning: overflow +-------------------- +-256 +217 +Warning: overflow +-------------------- +-256 +255 +Warning: overflow +-------------------- +-256 +256 +Warning: overflow +-------------------- +-256 +257 +Warning: overflow +-------------------- +-256 +32767 +Warning: overflow +-------------------- +-256 +-32768 +Warning: overflow +-------------------- +-256 +-32767 +Warning: overflow +-------------------- +-256 +-257 +Warning: overflow +-------------------- +-256 +-256 +Warning: overflow +-------------------- +-256 +-255 +Warning: overflow +-------------------- +-256 +-217 +Warning: overflow +-------------------- +-256 +-151 +Warning: overflow +-------------------- +-256 +-128 +Warning: overflow +-------------------- +-256 +-127 +32512 +-------------------- +-256 +-2 +512 +-------------------- +-256 +-1 +256 +-------------------- +-255 +0 +0 +-------------------- +-255 +1 +-255 +-------------------- +-255 +2 +-510 +-------------------- +-255 +127 +-32385 +-------------------- +-255 +128 +-32640 +-------------------- +-255 +151 +Warning: overflow +-------------------- +-255 +217 +Warning: overflow +-------------------- +-255 +255 +Warning: overflow +-------------------- +-255 +256 +Warning: overflow +-------------------- +-255 +257 +Warning: overflow +-------------------- +-255 +32767 +Warning: overflow +-------------------- +-255 +-32768 +Warning: overflow +-------------------- +-255 +-32767 +Warning: overflow +-------------------- +-255 +-257 +Warning: overflow +-------------------- +-255 +-256 +Warning: overflow +-------------------- +-255 +-255 +Warning: overflow +-------------------- +-255 +-217 +Warning: overflow +-------------------- +-255 +-151 +Warning: overflow +-------------------- +-255 +-128 +32640 +-------------------- +-255 +-127 +32385 +-------------------- +-255 +-2 +510 +-------------------- +-255 +-1 +255 +-------------------- +-217 +0 +0 +-------------------- +-217 +1 +-217 +-------------------- +-217 +2 +-434 +-------------------- +-217 +127 +-27559 +-------------------- +-217 +128 +-27776 +-------------------- +-217 +151 +-32767 +-------------------- +-217 +217 +Warning: overflow +-------------------- +-217 +255 +Warning: overflow +-------------------- +-217 +256 +Warning: overflow +-------------------- +-217 +257 +Warning: overflow +-------------------- +-217 +32767 +Warning: overflow +-------------------- +-217 +-32768 +Warning: overflow +-------------------- +-217 +-32767 +Warning: overflow +-------------------- +-217 +-257 +Warning: overflow +-------------------- +-217 +-256 +Warning: overflow +-------------------- +-217 +-255 +Warning: overflow +-------------------- +-217 +-217 +Warning: overflow +-------------------- +-217 +-151 +32767 +-------------------- +-217 +-128 +27776 +-------------------- +-217 +-127 +27559 +-------------------- +-217 +-2 +434 +-------------------- +-217 +-1 +217 +-------------------- +-151 +0 +0 +-------------------- +-151 +1 +-151 +-------------------- +-151 +2 +-302 +-------------------- +-151 +127 +-19177 +-------------------- +-151 +128 +-19328 +-------------------- +-151 +151 +-22801 +-------------------- +-151 +217 +-32767 +-------------------- +-151 +255 +Warning: overflow +-------------------- +-151 +256 +Warning: overflow +-------------------- +-151 +257 +Warning: overflow +-------------------- +-151 +32767 +Warning: overflow +-------------------- +-151 +-32768 +Warning: overflow +-------------------- +-151 +-32767 +Warning: overflow +-------------------- +-151 +-257 +Warning: overflow +-------------------- +-151 +-256 +Warning: overflow +-------------------- +-151 +-255 +Warning: overflow +-------------------- +-151 +-217 +32767 +-------------------- +-151 +-151 +22801 +-------------------- +-151 +-128 +19328 +-------------------- +-151 +-127 +19177 +-------------------- +-151 +-2 +302 +-------------------- +-151 +-1 +151 +-------------------- +-128 +0 +0 +-------------------- +-128 +1 +-128 +-------------------- +-128 +2 +-256 +-------------------- +-128 +127 +-16256 +-------------------- +-128 +128 +-16384 +-------------------- +-128 +151 +-19328 +-------------------- +-128 +217 +-27776 +-------------------- +-128 +255 +-32640 +-------------------- +-128 +256 +Warning: overflow +-------------------- +-128 +257 +Warning: overflow +-------------------- +-128 +32767 +Warning: overflow +-------------------- +-128 +-32768 +Warning: overflow +-------------------- +-128 +-32767 +Warning: overflow +-------------------- +-128 +-257 +Warning: overflow +-------------------- +-128 +-256 +Warning: overflow +-------------------- +-128 +-255 +32640 +-------------------- +-128 +-217 +27776 +-------------------- +-128 +-151 +19328 +-------------------- +-128 +-128 +16384 +-------------------- +-128 +-127 +16256 +-------------------- +-128 +-2 +256 +-------------------- +-128 +-1 +128 +-------------------- +-127 +0 +0 +-------------------- +-127 +1 +-127 +-------------------- +-127 +2 +-254 +-------------------- +-127 +127 +-16129 +-------------------- +-127 +128 +-16256 +-------------------- +-127 +151 +-19177 +-------------------- +-127 +217 +-27559 +-------------------- +-127 +255 +-32385 +-------------------- +-127 +256 +-32512 +-------------------- +-127 +257 +-32639 +-------------------- +-127 +32767 +Warning: overflow +-------------------- +-127 +-32768 +Warning: overflow +-------------------- +-127 +-32767 +Warning: overflow +-------------------- +-127 +-257 +32639 +-------------------- +-127 +-256 +32512 +-------------------- +-127 +-255 +32385 +-------------------- +-127 +-217 +27559 +-------------------- +-127 +-151 +19177 +-------------------- +-127 +-128 +16256 +-------------------- +-127 +-127 +16129 +-------------------- +-127 +-2 +254 +-------------------- +-127 +-1 +127 +-------------------- +-2 +0 +0 +-------------------- +-2 +1 +-2 +-------------------- +-2 +2 +-4 +-------------------- +-2 +127 +-254 +-------------------- +-2 +128 +-256 +-------------------- +-2 +151 +-302 +-------------------- +-2 +217 +-434 +-------------------- +-2 +255 +-510 +-------------------- +-2 +256 +-512 +-------------------- +-2 +257 +-514 +-------------------- +-2 +32767 +Warning: overflow +-------------------- +-2 +-32768 +Warning: overflow +-------------------- +-2 +-32767 +Warning: overflow +-------------------- +-2 +-257 +514 +-------------------- +-2 +-256 +512 +-------------------- +-2 +-255 +510 +-------------------- +-2 +-217 +434 +-------------------- +-2 +-151 +302 +-------------------- +-2 +-128 +256 +-------------------- +-2 +-127 +254 +-------------------- +-2 +-2 +4 +-------------------- +-2 +-1 +2 +-------------------- +-1 +0 +0 +-------------------- +-1 +1 +-1 +-------------------- +-1 +2 +-2 +-------------------- +-1 +127 +-127 +-------------------- +-1 +128 +-128 +-------------------- +-1 +151 +-151 +-------------------- +-1 +217 +-217 +-------------------- +-1 +255 +-255 +-------------------- +-1 +256 +-256 +-------------------- +-1 +257 +-257 +-------------------- +-1 +32767 +-32767 +-------------------- +-1 +-32768 +Warning: overflow +-------------------- +-1 +-32767 +32767 +-------------------- +-1 +-257 +257 +-------------------- +-1 +-256 +256 +-------------------- +-1 +-255 +255 +-------------------- +-1 +-217 +217 +-------------------- +-1 +-151 +151 +-------------------- +-1 +-128 +128 +-------------------- +-1 +-127 +127 +-------------------- +-1 +-2 +2 +-------------------- +-1 +-1 +1 +-------------------- diff --git a/as/misc/mula0_call/Makefile b/as/misc/mula0_call/Makefile new file mode 100644 index 0000000..a2306ca --- /dev/null +++ b/as/misc/mula0_call/Makefile @@ -0,0 +1,6 @@ +include ../CMD.mk # YACASL2DIR, CASL2 +CASL2FLAG = -M640 +ASDIR = $(YACASL2DIR)/as/FUNC +ASFILE = $(ASDIR)/mula_call.casl $(ASDIR)/mula0.casl $(ASDIR)/outa.casl +CMD = $(CASL2) $(CASL2FLAG) $(ASFILE) +include ../TEST.mk diff --git a/as/misc/mula0_call/report.txt b/as/misc/mula0_call/report.txt new file mode 100644 index 0000000..2e28f5e --- /dev/null +++ b/as/misc/mula0_call/report.txt @@ -0,0 +1 @@ +mula0_call: Test Success 2010-02-12 01:12:57 diff --git a/as/misc/mull0_call/0.txt b/as/misc/mull0_call/0.txt new file mode 100644 index 0000000..0c4a537 --- /dev/null +++ b/as/misc/mull0_call/0.txt @@ -0,0 +1,606 @@ +../../../../casl2 ../../../../as/FUNC/mull_call.casl ../../../../as/FUNC/mull0.casl ../../../../as/FUNC/outl.casl +-------------------- +0 +0 +0 +-------------------- +-------------------- +0 +1 +0 +-------------------- +-------------------- +0 +2 +0 +-------------------- +-------------------- +0 +127 +0 +-------------------- +-------------------- +0 +128 +0 +-------------------- +-------------------- +0 +255 +0 +-------------------- +-------------------- +0 +256 +0 +-------------------- +-------------------- +0 +257 +0 +-------------------- +-------------------- +0 +32767 +0 +-------------------- +-------------------- +0 +32768 +0 +-------------------- +-------------------- +0 +65535 +0 +-------------------- +-------------------- +1 +0 +0 +-------------------- +-------------------- +1 +1 +1 +-------------------- +-------------------- +1 +2 +2 +-------------------- +-------------------- +1 +127 +127 +-------------------- +-------------------- +1 +128 +128 +-------------------- +-------------------- +1 +255 +255 +-------------------- +-------------------- +1 +256 +256 +-------------------- +-------------------- +1 +257 +257 +-------------------- +-------------------- +1 +32767 +32767 +-------------------- +-------------------- +1 +32768 +32768 +-------------------- +-------------------- +1 +65535 +65535 +-------------------- +-------------------- +2 +0 +0 +-------------------- +-------------------- +2 +1 +2 +-------------------- +-------------------- +2 +2 +4 +-------------------- +-------------------- +2 +127 +254 +-------------------- +-------------------- +2 +128 +256 +-------------------- +-------------------- +2 +255 +510 +-------------------- +-------------------- +2 +256 +512 +-------------------- +-------------------- +2 +257 +514 +-------------------- +-------------------- +2 +32767 +65534 +-------------------- +-------------------- +2 +32768 +Warning: overflow +-------------------- +-------------------- +2 +65535 +Warning: overflow +-------------------- +-------------------- +127 +0 +0 +-------------------- +-------------------- +127 +1 +127 +-------------------- +-------------------- +127 +2 +254 +-------------------- +-------------------- +127 +127 +16129 +-------------------- +-------------------- +127 +128 +16256 +-------------------- +-------------------- +127 +255 +32385 +-------------------- +-------------------- +127 +256 +32512 +-------------------- +-------------------- +127 +257 +32639 +-------------------- +-------------------- +127 +32767 +Warning: overflow +-------------------- +-------------------- +127 +32768 +Warning: overflow +-------------------- +-------------------- +127 +65535 +Warning: overflow +-------------------- +-------------------- +128 +0 +0 +-------------------- +-------------------- +128 +1 +128 +-------------------- +-------------------- +128 +2 +256 +-------------------- +-------------------- +128 +127 +16256 +-------------------- +-------------------- +128 +128 +16384 +-------------------- +-------------------- +128 +255 +32640 +-------------------- +-------------------- +128 +256 +32768 +-------------------- +-------------------- +128 +257 +32896 +-------------------- +-------------------- +128 +32767 +Warning: overflow +-------------------- +-------------------- +128 +32768 +Warning: overflow +-------------------- +-------------------- +128 +65535 +Warning: overflow +-------------------- +-------------------- +255 +0 +0 +-------------------- +-------------------- +255 +1 +255 +-------------------- +-------------------- +255 +2 +510 +-------------------- +-------------------- +255 +127 +32385 +-------------------- +-------------------- +255 +128 +32640 +-------------------- +-------------------- +255 +255 +65025 +-------------------- +-------------------- +255 +256 +65280 +-------------------- +-------------------- +255 +257 +65535 +-------------------- +-------------------- +255 +32767 +Warning: overflow +-------------------- +-------------------- +255 +32768 +Warning: overflow +-------------------- +-------------------- +255 +65535 +Warning: overflow +-------------------- +-------------------- +256 +0 +0 +-------------------- +-------------------- +256 +1 +256 +-------------------- +-------------------- +256 +2 +512 +-------------------- +-------------------- +256 +127 +32512 +-------------------- +-------------------- +256 +128 +32768 +-------------------- +-------------------- +256 +255 +65280 +-------------------- +-------------------- +256 +256 +Warning: overflow +-------------------- +-------------------- +256 +257 +Warning: overflow +-------------------- +-------------------- +256 +32767 +Warning: overflow +-------------------- +-------------------- +256 +32768 +Warning: overflow +-------------------- +-------------------- +256 +65535 +Warning: overflow +-------------------- +-------------------- +257 +0 +0 +-------------------- +-------------------- +257 +1 +257 +-------------------- +-------------------- +257 +2 +514 +-------------------- +-------------------- +257 +127 +32639 +-------------------- +-------------------- +257 +128 +32896 +-------------------- +-------------------- +257 +255 +65535 +-------------------- +-------------------- +257 +256 +Warning: overflow +-------------------- +-------------------- +257 +257 +Warning: overflow +-------------------- +-------------------- +257 +32767 +Warning: overflow +-------------------- +-------------------- +257 +32768 +Warning: overflow +-------------------- +-------------------- +257 +65535 +Warning: overflow +-------------------- +-------------------- +32767 +0 +0 +-------------------- +-------------------- +32767 +1 +32767 +-------------------- +-------------------- +32767 +2 +65534 +-------------------- +-------------------- +32767 +127 +Warning: overflow +-------------------- +-------------------- +32767 +128 +Warning: overflow +-------------------- +-------------------- +32767 +255 +Warning: overflow +-------------------- +-------------------- +32767 +256 +Warning: overflow +-------------------- +-------------------- +32767 +257 +Warning: overflow +-------------------- +-------------------- +32767 +32767 +Warning: overflow +-------------------- +-------------------- +32767 +32768 +Warning: overflow +-------------------- +-------------------- +32767 +65535 +Warning: overflow +-------------------- +-------------------- +32768 +0 +0 +-------------------- +-------------------- +32768 +1 +32768 +-------------------- +-------------------- +32768 +2 +Warning: overflow +-------------------- +-------------------- +32768 +127 +Warning: overflow +-------------------- +-------------------- +32768 +128 +Warning: overflow +-------------------- +-------------------- +32768 +255 +Warning: overflow +-------------------- +-------------------- +32768 +256 +Warning: overflow +-------------------- +-------------------- +32768 +257 +Warning: overflow +-------------------- +-------------------- +32768 +32767 +Warning: overflow +-------------------- +-------------------- +32768 +32768 +Warning: overflow +-------------------- +-------------------- +32768 +65535 +Warning: overflow +-------------------- +-------------------- +65535 +0 +0 +-------------------- +-------------------- +65535 +1 +65535 +-------------------- +-------------------- +65535 +2 +Warning: overflow +-------------------- +-------------------- +65535 +127 +Warning: overflow +-------------------- +-------------------- +65535 +128 +Warning: overflow +-------------------- +-------------------- +65535 +255 +Warning: overflow +-------------------- +-------------------- +65535 +256 +Warning: overflow +-------------------- +-------------------- +65535 +257 +Warning: overflow +-------------------- +-------------------- +65535 +32767 +Warning: overflow +-------------------- +-------------------- +65535 +32768 +Warning: overflow +-------------------- +-------------------- +65535 +65535 +Warning: overflow +-------------------- diff --git a/as/misc/mull0_call/1.txt b/as/misc/mull0_call/1.txt new file mode 100644 index 0000000..0c4a537 --- /dev/null +++ b/as/misc/mull0_call/1.txt @@ -0,0 +1,606 @@ +../../../../casl2 ../../../../as/FUNC/mull_call.casl ../../../../as/FUNC/mull0.casl ../../../../as/FUNC/outl.casl +-------------------- +0 +0 +0 +-------------------- +-------------------- +0 +1 +0 +-------------------- +-------------------- +0 +2 +0 +-------------------- +-------------------- +0 +127 +0 +-------------------- +-------------------- +0 +128 +0 +-------------------- +-------------------- +0 +255 +0 +-------------------- +-------------------- +0 +256 +0 +-------------------- +-------------------- +0 +257 +0 +-------------------- +-------------------- +0 +32767 +0 +-------------------- +-------------------- +0 +32768 +0 +-------------------- +-------------------- +0 +65535 +0 +-------------------- +-------------------- +1 +0 +0 +-------------------- +-------------------- +1 +1 +1 +-------------------- +-------------------- +1 +2 +2 +-------------------- +-------------------- +1 +127 +127 +-------------------- +-------------------- +1 +128 +128 +-------------------- +-------------------- +1 +255 +255 +-------------------- +-------------------- +1 +256 +256 +-------------------- +-------------------- +1 +257 +257 +-------------------- +-------------------- +1 +32767 +32767 +-------------------- +-------------------- +1 +32768 +32768 +-------------------- +-------------------- +1 +65535 +65535 +-------------------- +-------------------- +2 +0 +0 +-------------------- +-------------------- +2 +1 +2 +-------------------- +-------------------- +2 +2 +4 +-------------------- +-------------------- +2 +127 +254 +-------------------- +-------------------- +2 +128 +256 +-------------------- +-------------------- +2 +255 +510 +-------------------- +-------------------- +2 +256 +512 +-------------------- +-------------------- +2 +257 +514 +-------------------- +-------------------- +2 +32767 +65534 +-------------------- +-------------------- +2 +32768 +Warning: overflow +-------------------- +-------------------- +2 +65535 +Warning: overflow +-------------------- +-------------------- +127 +0 +0 +-------------------- +-------------------- +127 +1 +127 +-------------------- +-------------------- +127 +2 +254 +-------------------- +-------------------- +127 +127 +16129 +-------------------- +-------------------- +127 +128 +16256 +-------------------- +-------------------- +127 +255 +32385 +-------------------- +-------------------- +127 +256 +32512 +-------------------- +-------------------- +127 +257 +32639 +-------------------- +-------------------- +127 +32767 +Warning: overflow +-------------------- +-------------------- +127 +32768 +Warning: overflow +-------------------- +-------------------- +127 +65535 +Warning: overflow +-------------------- +-------------------- +128 +0 +0 +-------------------- +-------------------- +128 +1 +128 +-------------------- +-------------------- +128 +2 +256 +-------------------- +-------------------- +128 +127 +16256 +-------------------- +-------------------- +128 +128 +16384 +-------------------- +-------------------- +128 +255 +32640 +-------------------- +-------------------- +128 +256 +32768 +-------------------- +-------------------- +128 +257 +32896 +-------------------- +-------------------- +128 +32767 +Warning: overflow +-------------------- +-------------------- +128 +32768 +Warning: overflow +-------------------- +-------------------- +128 +65535 +Warning: overflow +-------------------- +-------------------- +255 +0 +0 +-------------------- +-------------------- +255 +1 +255 +-------------------- +-------------------- +255 +2 +510 +-------------------- +-------------------- +255 +127 +32385 +-------------------- +-------------------- +255 +128 +32640 +-------------------- +-------------------- +255 +255 +65025 +-------------------- +-------------------- +255 +256 +65280 +-------------------- +-------------------- +255 +257 +65535 +-------------------- +-------------------- +255 +32767 +Warning: overflow +-------------------- +-------------------- +255 +32768 +Warning: overflow +-------------------- +-------------------- +255 +65535 +Warning: overflow +-------------------- +-------------------- +256 +0 +0 +-------------------- +-------------------- +256 +1 +256 +-------------------- +-------------------- +256 +2 +512 +-------------------- +-------------------- +256 +127 +32512 +-------------------- +-------------------- +256 +128 +32768 +-------------------- +-------------------- +256 +255 +65280 +-------------------- +-------------------- +256 +256 +Warning: overflow +-------------------- +-------------------- +256 +257 +Warning: overflow +-------------------- +-------------------- +256 +32767 +Warning: overflow +-------------------- +-------------------- +256 +32768 +Warning: overflow +-------------------- +-------------------- +256 +65535 +Warning: overflow +-------------------- +-------------------- +257 +0 +0 +-------------------- +-------------------- +257 +1 +257 +-------------------- +-------------------- +257 +2 +514 +-------------------- +-------------------- +257 +127 +32639 +-------------------- +-------------------- +257 +128 +32896 +-------------------- +-------------------- +257 +255 +65535 +-------------------- +-------------------- +257 +256 +Warning: overflow +-------------------- +-------------------- +257 +257 +Warning: overflow +-------------------- +-------------------- +257 +32767 +Warning: overflow +-------------------- +-------------------- +257 +32768 +Warning: overflow +-------------------- +-------------------- +257 +65535 +Warning: overflow +-------------------- +-------------------- +32767 +0 +0 +-------------------- +-------------------- +32767 +1 +32767 +-------------------- +-------------------- +32767 +2 +65534 +-------------------- +-------------------- +32767 +127 +Warning: overflow +-------------------- +-------------------- +32767 +128 +Warning: overflow +-------------------- +-------------------- +32767 +255 +Warning: overflow +-------------------- +-------------------- +32767 +256 +Warning: overflow +-------------------- +-------------------- +32767 +257 +Warning: overflow +-------------------- +-------------------- +32767 +32767 +Warning: overflow +-------------------- +-------------------- +32767 +32768 +Warning: overflow +-------------------- +-------------------- +32767 +65535 +Warning: overflow +-------------------- +-------------------- +32768 +0 +0 +-------------------- +-------------------- +32768 +1 +32768 +-------------------- +-------------------- +32768 +2 +Warning: overflow +-------------------- +-------------------- +32768 +127 +Warning: overflow +-------------------- +-------------------- +32768 +128 +Warning: overflow +-------------------- +-------------------- +32768 +255 +Warning: overflow +-------------------- +-------------------- +32768 +256 +Warning: overflow +-------------------- +-------------------- +32768 +257 +Warning: overflow +-------------------- +-------------------- +32768 +32767 +Warning: overflow +-------------------- +-------------------- +32768 +32768 +Warning: overflow +-------------------- +-------------------- +32768 +65535 +Warning: overflow +-------------------- +-------------------- +65535 +0 +0 +-------------------- +-------------------- +65535 +1 +65535 +-------------------- +-------------------- +65535 +2 +Warning: overflow +-------------------- +-------------------- +65535 +127 +Warning: overflow +-------------------- +-------------------- +65535 +128 +Warning: overflow +-------------------- +-------------------- +65535 +255 +Warning: overflow +-------------------- +-------------------- +65535 +256 +Warning: overflow +-------------------- +-------------------- +65535 +257 +Warning: overflow +-------------------- +-------------------- +65535 +32767 +Warning: overflow +-------------------- +-------------------- +65535 +32768 +Warning: overflow +-------------------- +-------------------- +65535 +65535 +Warning: overflow +-------------------- diff --git a/as/misc/mull0_call/Makefile b/as/misc/mull0_call/Makefile new file mode 100644 index 0000000..6897272 --- /dev/null +++ b/as/misc/mull0_call/Makefile @@ -0,0 +1,5 @@ +include ../CMD.mk # YACASL2DIR, CASL2 +ASDIR = $(YACASL2DIR)/as/FUNC +ASFILE = $(ASDIR)/mull_call.casl $(ASDIR)/mull0.casl $(ASDIR)/outl.casl +CMD = $(CASL2) $(ASFILE) +include ../TEST.mk diff --git a/as/misc/mull0_call/report.txt b/as/misc/mull0_call/report.txt new file mode 100644 index 0000000..c6348ff --- /dev/null +++ b/as/misc/mull0_call/report.txt @@ -0,0 +1 @@ +mull0_call: Test Success 2010-02-12 01:13:05 diff --git a/as/misc/mull1_call/0.txt b/as/misc/mull1_call/0.txt new file mode 100644 index 0000000..8a9a2a4 --- /dev/null +++ b/as/misc/mull1_call/0.txt @@ -0,0 +1,606 @@ +../../../../casl2 ../../../../as/FUNC/mull_call.casl ../../../../as/FUNC/mull1.casl ../../../../as/FUNC/outl.casl +-------------------- +0 +0 +0 +-------------------- +-------------------- +0 +1 +0 +-------------------- +-------------------- +0 +2 +0 +-------------------- +-------------------- +0 +127 +0 +-------------------- +-------------------- +0 +128 +0 +-------------------- +-------------------- +0 +255 +0 +-------------------- +-------------------- +0 +256 +0 +-------------------- +-------------------- +0 +257 +0 +-------------------- +-------------------- +0 +32767 +0 +-------------------- +-------------------- +0 +32768 +0 +-------------------- +-------------------- +0 +65535 +0 +-------------------- +-------------------- +1 +0 +0 +-------------------- +-------------------- +1 +1 +1 +-------------------- +-------------------- +1 +2 +2 +-------------------- +-------------------- +1 +127 +127 +-------------------- +-------------------- +1 +128 +128 +-------------------- +-------------------- +1 +255 +255 +-------------------- +-------------------- +1 +256 +256 +-------------------- +-------------------- +1 +257 +257 +-------------------- +-------------------- +1 +32767 +32767 +-------------------- +-------------------- +1 +32768 +32768 +-------------------- +-------------------- +1 +65535 +65535 +-------------------- +-------------------- +2 +0 +0 +-------------------- +-------------------- +2 +1 +2 +-------------------- +-------------------- +2 +2 +4 +-------------------- +-------------------- +2 +127 +254 +-------------------- +-------------------- +2 +128 +256 +-------------------- +-------------------- +2 +255 +510 +-------------------- +-------------------- +2 +256 +512 +-------------------- +-------------------- +2 +257 +514 +-------------------- +-------------------- +2 +32767 +65534 +-------------------- +-------------------- +2 +32768 +Warning: overflow +-------------------- +-------------------- +2 +65535 +Warning: overflow +-------------------- +-------------------- +127 +0 +0 +-------------------- +-------------------- +127 +1 +127 +-------------------- +-------------------- +127 +2 +254 +-------------------- +-------------------- +127 +127 +16129 +-------------------- +-------------------- +127 +128 +16256 +-------------------- +-------------------- +127 +255 +32385 +-------------------- +-------------------- +127 +256 +32512 +-------------------- +-------------------- +127 +257 +32639 +-------------------- +-------------------- +127 +32767 +Warning: overflow +-------------------- +-------------------- +127 +32768 +Warning: overflow +-------------------- +-------------------- +127 +65535 +Warning: overflow +-------------------- +-------------------- +128 +0 +0 +-------------------- +-------------------- +128 +1 +128 +-------------------- +-------------------- +128 +2 +256 +-------------------- +-------------------- +128 +127 +16256 +-------------------- +-------------------- +128 +128 +16384 +-------------------- +-------------------- +128 +255 +32640 +-------------------- +-------------------- +128 +256 +32768 +-------------------- +-------------------- +128 +257 +32896 +-------------------- +-------------------- +128 +32767 +Warning: overflow +-------------------- +-------------------- +128 +32768 +Warning: overflow +-------------------- +-------------------- +128 +65535 +Warning: overflow +-------------------- +-------------------- +255 +0 +0 +-------------------- +-------------------- +255 +1 +255 +-------------------- +-------------------- +255 +2 +510 +-------------------- +-------------------- +255 +127 +32385 +-------------------- +-------------------- +255 +128 +32640 +-------------------- +-------------------- +255 +255 +65025 +-------------------- +-------------------- +255 +256 +65280 +-------------------- +-------------------- +255 +257 +65535 +-------------------- +-------------------- +255 +32767 +Warning: overflow +-------------------- +-------------------- +255 +32768 +Warning: overflow +-------------------- +-------------------- +255 +65535 +Warning: overflow +-------------------- +-------------------- +256 +0 +0 +-------------------- +-------------------- +256 +1 +256 +-------------------- +-------------------- +256 +2 +512 +-------------------- +-------------------- +256 +127 +32512 +-------------------- +-------------------- +256 +128 +32768 +-------------------- +-------------------- +256 +255 +65280 +-------------------- +-------------------- +256 +256 +Warning: overflow +-------------------- +-------------------- +256 +257 +Warning: overflow +-------------------- +-------------------- +256 +32767 +Warning: overflow +-------------------- +-------------------- +256 +32768 +Warning: overflow +-------------------- +-------------------- +256 +65535 +Warning: overflow +-------------------- +-------------------- +257 +0 +0 +-------------------- +-------------------- +257 +1 +257 +-------------------- +-------------------- +257 +2 +514 +-------------------- +-------------------- +257 +127 +32639 +-------------------- +-------------------- +257 +128 +32896 +-------------------- +-------------------- +257 +255 +65535 +-------------------- +-------------------- +257 +256 +Warning: overflow +-------------------- +-------------------- +257 +257 +Warning: overflow +-------------------- +-------------------- +257 +32767 +Warning: overflow +-------------------- +-------------------- +257 +32768 +Warning: overflow +-------------------- +-------------------- +257 +65535 +Warning: overflow +-------------------- +-------------------- +32767 +0 +0 +-------------------- +-------------------- +32767 +1 +32767 +-------------------- +-------------------- +32767 +2 +65534 +-------------------- +-------------------- +32767 +127 +Warning: overflow +-------------------- +-------------------- +32767 +128 +Warning: overflow +-------------------- +-------------------- +32767 +255 +Warning: overflow +-------------------- +-------------------- +32767 +256 +Warning: overflow +-------------------- +-------------------- +32767 +257 +Warning: overflow +-------------------- +-------------------- +32767 +32767 +Warning: overflow +-------------------- +-------------------- +32767 +32768 +Warning: overflow +-------------------- +-------------------- +32767 +65535 +Warning: overflow +-------------------- +-------------------- +32768 +0 +0 +-------------------- +-------------------- +32768 +1 +32768 +-------------------- +-------------------- +32768 +2 +Warning: overflow +-------------------- +-------------------- +32768 +127 +Warning: overflow +-------------------- +-------------------- +32768 +128 +Warning: overflow +-------------------- +-------------------- +32768 +255 +Warning: overflow +-------------------- +-------------------- +32768 +256 +Warning: overflow +-------------------- +-------------------- +32768 +257 +Warning: overflow +-------------------- +-------------------- +32768 +32767 +Warning: overflow +-------------------- +-------------------- +32768 +32768 +Warning: overflow +-------------------- +-------------------- +32768 +65535 +Warning: overflow +-------------------- +-------------------- +65535 +0 +0 +-------------------- +-------------------- +65535 +1 +65535 +-------------------- +-------------------- +65535 +2 +Warning: overflow +-------------------- +-------------------- +65535 +127 +Warning: overflow +-------------------- +-------------------- +65535 +128 +Warning: overflow +-------------------- +-------------------- +65535 +255 +Warning: overflow +-------------------- +-------------------- +65535 +256 +Warning: overflow +-------------------- +-------------------- +65535 +257 +Warning: overflow +-------------------- +-------------------- +65535 +32767 +Warning: overflow +-------------------- +-------------------- +65535 +32768 +Warning: overflow +-------------------- +-------------------- +65535 +65535 +Warning: overflow +-------------------- diff --git a/as/misc/mull1_call/1.txt b/as/misc/mull1_call/1.txt new file mode 100644 index 0000000..8a9a2a4 --- /dev/null +++ b/as/misc/mull1_call/1.txt @@ -0,0 +1,606 @@ +../../../../casl2 ../../../../as/FUNC/mull_call.casl ../../../../as/FUNC/mull1.casl ../../../../as/FUNC/outl.casl +-------------------- +0 +0 +0 +-------------------- +-------------------- +0 +1 +0 +-------------------- +-------------------- +0 +2 +0 +-------------------- +-------------------- +0 +127 +0 +-------------------- +-------------------- +0 +128 +0 +-------------------- +-------------------- +0 +255 +0 +-------------------- +-------------------- +0 +256 +0 +-------------------- +-------------------- +0 +257 +0 +-------------------- +-------------------- +0 +32767 +0 +-------------------- +-------------------- +0 +32768 +0 +-------------------- +-------------------- +0 +65535 +0 +-------------------- +-------------------- +1 +0 +0 +-------------------- +-------------------- +1 +1 +1 +-------------------- +-------------------- +1 +2 +2 +-------------------- +-------------------- +1 +127 +127 +-------------------- +-------------------- +1 +128 +128 +-------------------- +-------------------- +1 +255 +255 +-------------------- +-------------------- +1 +256 +256 +-------------------- +-------------------- +1 +257 +257 +-------------------- +-------------------- +1 +32767 +32767 +-------------------- +-------------------- +1 +32768 +32768 +-------------------- +-------------------- +1 +65535 +65535 +-------------------- +-------------------- +2 +0 +0 +-------------------- +-------------------- +2 +1 +2 +-------------------- +-------------------- +2 +2 +4 +-------------------- +-------------------- +2 +127 +254 +-------------------- +-------------------- +2 +128 +256 +-------------------- +-------------------- +2 +255 +510 +-------------------- +-------------------- +2 +256 +512 +-------------------- +-------------------- +2 +257 +514 +-------------------- +-------------------- +2 +32767 +65534 +-------------------- +-------------------- +2 +32768 +Warning: overflow +-------------------- +-------------------- +2 +65535 +Warning: overflow +-------------------- +-------------------- +127 +0 +0 +-------------------- +-------------------- +127 +1 +127 +-------------------- +-------------------- +127 +2 +254 +-------------------- +-------------------- +127 +127 +16129 +-------------------- +-------------------- +127 +128 +16256 +-------------------- +-------------------- +127 +255 +32385 +-------------------- +-------------------- +127 +256 +32512 +-------------------- +-------------------- +127 +257 +32639 +-------------------- +-------------------- +127 +32767 +Warning: overflow +-------------------- +-------------------- +127 +32768 +Warning: overflow +-------------------- +-------------------- +127 +65535 +Warning: overflow +-------------------- +-------------------- +128 +0 +0 +-------------------- +-------------------- +128 +1 +128 +-------------------- +-------------------- +128 +2 +256 +-------------------- +-------------------- +128 +127 +16256 +-------------------- +-------------------- +128 +128 +16384 +-------------------- +-------------------- +128 +255 +32640 +-------------------- +-------------------- +128 +256 +32768 +-------------------- +-------------------- +128 +257 +32896 +-------------------- +-------------------- +128 +32767 +Warning: overflow +-------------------- +-------------------- +128 +32768 +Warning: overflow +-------------------- +-------------------- +128 +65535 +Warning: overflow +-------------------- +-------------------- +255 +0 +0 +-------------------- +-------------------- +255 +1 +255 +-------------------- +-------------------- +255 +2 +510 +-------------------- +-------------------- +255 +127 +32385 +-------------------- +-------------------- +255 +128 +32640 +-------------------- +-------------------- +255 +255 +65025 +-------------------- +-------------------- +255 +256 +65280 +-------------------- +-------------------- +255 +257 +65535 +-------------------- +-------------------- +255 +32767 +Warning: overflow +-------------------- +-------------------- +255 +32768 +Warning: overflow +-------------------- +-------------------- +255 +65535 +Warning: overflow +-------------------- +-------------------- +256 +0 +0 +-------------------- +-------------------- +256 +1 +256 +-------------------- +-------------------- +256 +2 +512 +-------------------- +-------------------- +256 +127 +32512 +-------------------- +-------------------- +256 +128 +32768 +-------------------- +-------------------- +256 +255 +65280 +-------------------- +-------------------- +256 +256 +Warning: overflow +-------------------- +-------------------- +256 +257 +Warning: overflow +-------------------- +-------------------- +256 +32767 +Warning: overflow +-------------------- +-------------------- +256 +32768 +Warning: overflow +-------------------- +-------------------- +256 +65535 +Warning: overflow +-------------------- +-------------------- +257 +0 +0 +-------------------- +-------------------- +257 +1 +257 +-------------------- +-------------------- +257 +2 +514 +-------------------- +-------------------- +257 +127 +32639 +-------------------- +-------------------- +257 +128 +32896 +-------------------- +-------------------- +257 +255 +65535 +-------------------- +-------------------- +257 +256 +Warning: overflow +-------------------- +-------------------- +257 +257 +Warning: overflow +-------------------- +-------------------- +257 +32767 +Warning: overflow +-------------------- +-------------------- +257 +32768 +Warning: overflow +-------------------- +-------------------- +257 +65535 +Warning: overflow +-------------------- +-------------------- +32767 +0 +0 +-------------------- +-------------------- +32767 +1 +32767 +-------------------- +-------------------- +32767 +2 +65534 +-------------------- +-------------------- +32767 +127 +Warning: overflow +-------------------- +-------------------- +32767 +128 +Warning: overflow +-------------------- +-------------------- +32767 +255 +Warning: overflow +-------------------- +-------------------- +32767 +256 +Warning: overflow +-------------------- +-------------------- +32767 +257 +Warning: overflow +-------------------- +-------------------- +32767 +32767 +Warning: overflow +-------------------- +-------------------- +32767 +32768 +Warning: overflow +-------------------- +-------------------- +32767 +65535 +Warning: overflow +-------------------- +-------------------- +32768 +0 +0 +-------------------- +-------------------- +32768 +1 +32768 +-------------------- +-------------------- +32768 +2 +Warning: overflow +-------------------- +-------------------- +32768 +127 +Warning: overflow +-------------------- +-------------------- +32768 +128 +Warning: overflow +-------------------- +-------------------- +32768 +255 +Warning: overflow +-------------------- +-------------------- +32768 +256 +Warning: overflow +-------------------- +-------------------- +32768 +257 +Warning: overflow +-------------------- +-------------------- +32768 +32767 +Warning: overflow +-------------------- +-------------------- +32768 +32768 +Warning: overflow +-------------------- +-------------------- +32768 +65535 +Warning: overflow +-------------------- +-------------------- +65535 +0 +0 +-------------------- +-------------------- +65535 +1 +65535 +-------------------- +-------------------- +65535 +2 +Warning: overflow +-------------------- +-------------------- +65535 +127 +Warning: overflow +-------------------- +-------------------- +65535 +128 +Warning: overflow +-------------------- +-------------------- +65535 +255 +Warning: overflow +-------------------- +-------------------- +65535 +256 +Warning: overflow +-------------------- +-------------------- +65535 +257 +Warning: overflow +-------------------- +-------------------- +65535 +32767 +Warning: overflow +-------------------- +-------------------- +65535 +32768 +Warning: overflow +-------------------- +-------------------- +65535 +65535 +Warning: overflow +-------------------- diff --git a/as/misc/mull1_call/Makefile b/as/misc/mull1_call/Makefile new file mode 100644 index 0000000..3e862b6 --- /dev/null +++ b/as/misc/mull1_call/Makefile @@ -0,0 +1,5 @@ +include ../CMD.mk # YACASL2DIR, CASL2 +ASDIR = $(YACASL2DIR)/as/FUNC +ASFILE = $(ASDIR)/mull_call.casl $(ASDIR)/mull1.casl $(ASDIR)/outl.casl +CMD = $(CASL2) $(ASFILE) +include ../TEST.mk diff --git a/as/misc/mull1_call/report.txt b/as/misc/mull1_call/report.txt new file mode 100644 index 0000000..07bf327 --- /dev/null +++ b/as/misc/mull1_call/report.txt @@ -0,0 +1 @@ +mull1_call: Test Success 2010-02-12 01:13:06 diff --git a/as/misc/sum.casl b/as/misc/sum.casl index 0121134..9d2c740 100644 --- a/as/misc/sum.casl +++ b/as/misc/sum.casl @@ -11,6 +11,5 @@ LOOP CPL GR2,GR1 JOV OV LAD GR2,1,GR2 JUMP LOOP -OV LAD GR0,0 FIN RET END diff --git a/as/misc/sum_10_2.casl b/as/misc/sum_10_2.casl index f9d90a6..6405138 100644 --- a/as/misc/sum_10_2.casl +++ b/as/misc/sum_10_2.casl @@ -4,24 +4,23 @@ MAIN START PUSH 0,GR1 PUSH 0,GR2 - ;; GR1に(初項 + 末項)を入力 - LD GR1,FST - ADDL GR1,LST - ;; GR2に項数を入力 - LD GR2,LST - SUBL GR2,GR1 - RPUSH - LD GR1,GR2 - LD GR2,STEP - CALL DIVL - RPOP - LAD GR2,1,GR0 - CALL MULL - SRL GR0,1 + LD GR1,FST ; GR1 <- (初項 + 末項) + ADDL GR1,LST ; ↓ + PUSH 0,GR1 ; GR1を退避 + LD GR1,LST ; GR1 <- (末項 - 初項) + SUBL GR1,FST ; ↓ + LD GR2,GR1 ; ↓ + LD GR2,STEP ; GR2 <- STEP + CALL DIVL ; GR0 <- GR1 / GR2 + LD GR2,GR0 ; GR2 <- GR0 + LAD GR2,1,GR2 ; GR2 <- GR2 + 1 + SRL GR2,1 ; GR2 <- GR2 / 2 + POP GR1 ; GR1を復元 + CALL MULL ; GR0 <- GR1 * GR2 POP GR2 POP GR1 RET -FST DC 1 -LST DC 10 -STEP DC 1 +FST DC 1 ; 初項 +LST DC 10 ; 末項 +STEP DC 1 ; 公差 END diff --git a/as/misc/sum_2.casl b/as/misc/sum_2.casl new file mode 100644 index 0000000..6ef8c10 --- /dev/null +++ b/as/misc/sum_2.casl @@ -0,0 +1,26 @@ +;;; sum_10.casl +;;; 入力 GR0: 正数 +;;; 出力 GR0: 1からGR1で指定された値までの正数をすべて加算した値。 +;;; オーバーフローした場合は、0 +;;; 依存プログラム: mull1.casl divl1.casl +MAIN START + PUSH 0,GR1 + PUSH 0,GR2 + ADDL GR1,FST ; GR1 <- (初項 + 末項) + PUSH 0,GR1 ; GR1を退避 + LD GR1,LST ; GR1 <- (末項 - 初項) + SUBL GR1,FST ; ↓ + LD GR2,GR1 ; ↓ + LD GR2,STEP ; GR2 <- STEP + CALL DIVL ; GR0 <- GR1 / GR2 + LD GR2,GR0 ; GR2 <- GR0 + LAD GR2,1,GR2 ; GR2 <- GR2 + 1 + SRL GR2,1 ; GR2 <- GR2 / 2 + POP GR1 ; GR1を復元 + CALL MULL ; GR0 <- GR1 * GR2 + POP GR2 + POP GR1 + RET +FST DC 1 ; 初項 +STEP DC 1 ; 公差 + END diff --git a/as/misc/divl0_test/0.txt b/as/misc/test_divl0/0.txt similarity index 100% rename from as/misc/divl0_test/0.txt rename to as/misc/test_divl0/0.txt diff --git a/as/misc/divl0_test/1.txt b/as/misc/test_divl0/1.txt similarity index 100% rename from as/misc/divl0_test/1.txt rename to as/misc/test_divl0/1.txt diff --git a/as/misc/test_divl0/Makefile b/as/misc/test_divl0/Makefile new file mode 100644 index 0000000..b538c26 --- /dev/null +++ b/as/misc/test_divl0/Makefile @@ -0,0 +1,12 @@ +YACASL2DIR= ../../../../.. +CASL2 = $(YACASL2DIR)/casl2 +CASL2LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = test_ptn4.casl ../ptn4.casl ../ptn1.casl ../ptn2.casl $(CASL2LIBDIR)/outb.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk + +include ../CMD.mk # YACASL2DIR, CASL2 +ASDIR = $(YACASL2DIR)/as/FUNC +ASFILE = test_divl.casl $(ASDIR)/divl0.casl $(ASDIR)/outl_main.casl $(ASDIR)/rev.casl +CMD = $(CASL2) $(ASFILE) +include ../TEST.mk diff --git a/as/misc/divl0_test/report.txt b/as/misc/test_divl0/report.txt similarity index 100% rename from as/misc/divl0_test/report.txt rename to as/misc/test_divl0/report.txt diff --git a/as/misc/fib_outl/0.txt b/as/misc/test_fib_outl/0.txt similarity index 51% rename from as/misc/fib_outl/0.txt rename to as/misc/test_fib_outl/0.txt index 8067e50..7428cdd 100644 --- a/as/misc/fib_outl/0.txt +++ b/as/misc/test_fib_outl/0.txt @@ -1,4 +1,4 @@ -../../../../casl2 ../../../../as/misc/fib_outl.casl ../../../../as/casl2lib/outl.casl +../../../casl2 ../fib_outl.casl ../../../as/casl2lib/outl.casl 0 1 1 diff --git a/as/misc/test_fib_outl/Makefile b/as/misc/test_fib_outl/Makefile new file mode 100644 index 0000000..b525c51 --- /dev/null +++ b/as/misc/test_fib_outl/Makefile @@ -0,0 +1,6 @@ +YACASL2DIR= ../../.. +CASL2 = $(YACASL2DIR)/casl2 +CASL2LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = ../fib_outl.casl $(CASL2LIBDIR)/outl.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/misc/sum_10.casl b/as/sum_10.casl similarity index 100% rename from as/misc/sum_10.casl rename to as/sum_10.casl diff --git a/as/yakuwa/binout.casl b/as/yakuwa/binout.casl index d25b188..2be0a45 100644 --- a/as/yakuwa/binout.casl +++ b/as/yakuwa/binout.casl @@ -1,20 +1,6 @@ ;;; BINOUT: 主プログラムから渡された1語の内容を、 ;;; ゼロ抑制を行った2進表記で出力する ;;; 八鍬幸信『基本情報処理試験 らくらく突破 CASL II』172ページ -;;; BINOUTを呼び出す -MAIN START - LAD GR2,0 -MLOOP CPA GR2,MLEN - JZE MFIN - LD GR1,MWORD,GR2 - CALL BINOUT - LAD GR2,1,GR2 - JUMP MLOOP -MFIN RET -MWORD DC #0000,#0001,#09CD,#8001 -MLEN DC 4 - END -;;; BINOUT BINOUT START PUSH 0,GR1 ; レジスタの退避 PUSH 0,GR2 ; ↓ diff --git a/as/yakuwa/binout_test/0.txt b/as/yakuwa/binout_test/0.txt deleted file mode 100644 index 79aa0e7..0000000 --- a/as/yakuwa/binout_test/0.txt +++ /dev/null @@ -1,198 +0,0 @@ -../../../../casl2 -la ../../../../as/YAKUWA/binout.casl - -Assemble ../../../../as/YAKUWA/binout.casl (0) - -Label:::: -BINOUT.OBUF ---> #0060 -BINOUT.ZERO ---> #002D -BINOUT.OUT1 ---> #0041 -BINOUT.OUT2 ---> #0047 -BINOUT.STORE ---> #0033 -MAIN.MLOOP ---> #0002 -BINOUT.NZERO ---> #0071 -BINOUT.LOOP1 ---> #0023 -BINOUT.LOOP2 ---> #002B -MAIN.MFIN ---> #000E -MAIN ---> #0000 -BINOUT.OLNG ---> #0070 -MAIN.MWORD ---> #000F -MAIN.MLEN ---> #0013 -BINOUT ---> #0014 -BINOUT.ONE ---> #0031 - -Assemble ../../../../as/YAKUWA/binout.casl (1) -../../../../as/YAKUWA/binout.casl: 1:;;; BINOUT: 主プログラムから渡された1語の内容を、 -../../../../as/YAKUWA/binout.casl: 2:;;; ゼロ抑制を行った2進表記で出力する -../../../../as/YAKUWA/binout.casl: 3:;;; 八鍬幸信『基本情報処理試験 らくらく突破 CASL II』172ページ -../../../../as/YAKUWA/binout.casl: 4:;;; BINOUTを呼び出す -../../../../as/YAKUWA/binout.casl: 5:MAIN START -../../../../as/YAKUWA/binout.casl: 6: LAD GR2,0 - #0000 #1220 - #0001 #0000 -../../../../as/YAKUWA/binout.casl: 7:MLOOP CPA GR2,MLEN - #0002 #4020 - #0003 #0013 -../../../../as/YAKUWA/binout.casl: 8: JZE MFIN - #0004 #6300 - #0005 #000E -../../../../as/YAKUWA/binout.casl: 9: LD GR1,MWORD,GR2 - #0006 #1012 - #0007 #000F -../../../../as/YAKUWA/binout.casl: 10: CALL BINOUT - #0008 #8000 - #0009 #0014 -../../../../as/YAKUWA/binout.casl: 11: LAD GR2,1,GR2 - #000A #1222 - #000B #0001 -../../../../as/YAKUWA/binout.casl: 12: JUMP MLOOP - #000C #6400 - #000D #0002 -../../../../as/YAKUWA/binout.casl: 13:MFIN RET - #000E #8100 -../../../../as/YAKUWA/binout.casl: 14:MWORD DC #0000,#0001,#09CD,#8001 - #000F #0000 - #0010 #0001 - #0011 #09CD - #0012 #8001 -../../../../as/YAKUWA/binout.casl: 15:MLEN DC 4 - #0013 #0004 -../../../../as/YAKUWA/binout.casl: 16: END -../../../../as/YAKUWA/binout.casl: 17:;;; BINOUT -../../../../as/YAKUWA/binout.casl: 18:BINOUT START -../../../../as/YAKUWA/binout.casl: 19: PUSH 0,GR1 ; レジスタの退避 - #0014 #7001 - #0015 #0000 -../../../../as/YAKUWA/binout.casl: 20: PUSH 0,GR2 ; ↓ - #0016 #7002 - #0017 #0000 -../../../../as/YAKUWA/binout.casl: 21: PUSH 0,GR3 ; ↓ - #0018 #7003 - #0019 #0000 -../../../../as/YAKUWA/binout.casl: 22: PUSH 0,GR4 ; ↓ - #001A #7004 - #001B #0000 -../../../../as/YAKUWA/binout.casl: 23: LAD GR2,0 ; 出力ポインタの初期化 - #001C #1220 - #001D #0000 -../../../../as/YAKUWA/binout.casl: 24: LAD GR3,15 ; カウンタの初期化 - #001E #1230 - #001F #000F -../../../../as/YAKUWA/binout.casl: 25: LD GR4,GR1 ; 全ビット = 0? - #0020 #1441 -../../../../as/YAKUWA/binout.casl: 26: JZE OUT1 - #0021 #6300 - #0022 #0041 -../../../../as/YAKUWA/binout.casl: 27:LOOP1 JMI ONE ; 先行するビット処理 - #0023 #6100 - #0024 #0031 -../../../../as/YAKUWA/binout.casl: 28: LAD GR3,-1,GR3 ; ↓ - #0025 #1233 - #0026 #FFFF -../../../../as/YAKUWA/binout.casl: 29: SLL GR1,1 ; ↓ - #0027 #5210 - #0028 #0001 -../../../../as/YAKUWA/binout.casl: 30: JUMP LOOP1 - #0029 #6400 - #002A #0023 -../../../../as/YAKUWA/binout.casl: 31:LOOP2 JMI ONE ; 符号ビットの判定 - #002B #6100 - #002C #0031 -../../../../as/YAKUWA/binout.casl: 32:ZERO LAD GR0,48 ; '0'→GR0 - #002D #1200 - #002E #0030 -../../../../as/YAKUWA/binout.casl: 33: JUMP STORE - #002F #6400 - #0030 #0033 -../../../../as/YAKUWA/binout.casl: 34:ONE LAD GR0,49 ; '1'→GR1 - #0031 #1200 - #0032 #0031 -../../../../as/YAKUWA/binout.casl: 35:STORE ST GR0,OBUF,GR2 - #0033 #1102 - #0034 #0060 -../../../../as/YAKUWA/binout.casl: 36: LAD GR2,1,GR2 - #0035 #1222 - #0036 #0001 -../../../../as/YAKUWA/binout.casl: 37: LAD GR3,-1,GR3 - #0037 #1233 - #0038 #FFFF -../../../../as/YAKUWA/binout.casl: 38: CPA GR3,NZERO - #0039 #4030 - #003A #0071 -../../../../as/YAKUWA/binout.casl: 39: JMI OUT2 ; 全ビット終了? - #003B #6100 - #003C #0047 -../../../../as/YAKUWA/binout.casl: 40: SLL GR1,1 - #003D #5210 - #003E #0001 -../../../../as/YAKUWA/binout.casl: 41: JUMP LOOP2 - #003F #6400 - #0040 #002B -../../../../as/YAKUWA/binout.casl: 42:OUT1 LAD GR0,48 - #0041 #1200 - #0042 #0030 -../../../../as/YAKUWA/binout.casl: 43: ST GR0,OBUF,GR2 - #0043 #1102 - #0044 #0060 -../../../../as/YAKUWA/binout.casl: 44: LAD GR2,1,GR2 - #0045 #1222 - #0046 #0001 -../../../../as/YAKUWA/binout.casl: 45:OUT2 ST GR2,OLNG - #0047 #1120 - #0048 #0070 -../../../../as/YAKUWA/binout.casl: 46: OUT OBUF,OLNG - #0049 #7001 - #004A #0000 - #004B #7002 - #004C #0000 - #004D #1210 - #004E #0060 - #004F #1220 - #0050 #0070 - #0051 #F000 - #0052 #0002 - #0053 #1210 - #0054 #0072 - #0072 #000A - #0055 #1220 - #0056 #0073 - #0073 #0001 - #0057 #F000 - #0058 #0002 - #0059 #7120 - #005A #7110 -../../../../as/YAKUWA/binout.casl: 47: POP GR4 ; レジスタの復元 - #005B #7140 -../../../../as/YAKUWA/binout.casl: 48: POP GR3 ; ↓ - #005C #7130 -../../../../as/YAKUWA/binout.casl: 49: POP GR2 ; ↓ - #005D #7120 -../../../../as/YAKUWA/binout.casl: 50: POP GR1 ; ↓ - #005E #7110 -../../../../as/YAKUWA/binout.casl: 51: RET - #005F #8100 -../../../../as/YAKUWA/binout.casl: 52:OBUF DS 16 - #0060 #0000 - #0061 #0000 - #0062 #0000 - #0063 #0000 - #0064 #0000 - #0065 #0000 - #0066 #0000 - #0067 #0000 - #0068 #0000 - #0069 #0000 - #006A #0000 - #006B #0000 - #006C #0000 - #006D #0000 - #006E #0000 - #006F #0000 -../../../../as/YAKUWA/binout.casl: 53:OLNG DS 1 - #0070 #0000 -../../../../as/YAKUWA/binout.casl: 54:NZERO DC 0 - #0071 #0000 -../../../../as/YAKUWA/binout.casl: 55: END -0 -1 -100111001101 -1000000000000001 diff --git a/as/yakuwa/binout_test/1.txt b/as/yakuwa/binout_test/1.txt deleted file mode 100644 index 79aa0e7..0000000 --- a/as/yakuwa/binout_test/1.txt +++ /dev/null @@ -1,198 +0,0 @@ -../../../../casl2 -la ../../../../as/YAKUWA/binout.casl - -Assemble ../../../../as/YAKUWA/binout.casl (0) - -Label:::: -BINOUT.OBUF ---> #0060 -BINOUT.ZERO ---> #002D -BINOUT.OUT1 ---> #0041 -BINOUT.OUT2 ---> #0047 -BINOUT.STORE ---> #0033 -MAIN.MLOOP ---> #0002 -BINOUT.NZERO ---> #0071 -BINOUT.LOOP1 ---> #0023 -BINOUT.LOOP2 ---> #002B -MAIN.MFIN ---> #000E -MAIN ---> #0000 -BINOUT.OLNG ---> #0070 -MAIN.MWORD ---> #000F -MAIN.MLEN ---> #0013 -BINOUT ---> #0014 -BINOUT.ONE ---> #0031 - -Assemble ../../../../as/YAKUWA/binout.casl (1) -../../../../as/YAKUWA/binout.casl: 1:;;; BINOUT: 主プログラムから渡された1語の内容を、 -../../../../as/YAKUWA/binout.casl: 2:;;; ゼロ抑制を行った2進表記で出力する -../../../../as/YAKUWA/binout.casl: 3:;;; 八鍬幸信『基本情報処理試験 らくらく突破 CASL II』172ページ -../../../../as/YAKUWA/binout.casl: 4:;;; BINOUTを呼び出す -../../../../as/YAKUWA/binout.casl: 5:MAIN START -../../../../as/YAKUWA/binout.casl: 6: LAD GR2,0 - #0000 #1220 - #0001 #0000 -../../../../as/YAKUWA/binout.casl: 7:MLOOP CPA GR2,MLEN - #0002 #4020 - #0003 #0013 -../../../../as/YAKUWA/binout.casl: 8: JZE MFIN - #0004 #6300 - #0005 #000E -../../../../as/YAKUWA/binout.casl: 9: LD GR1,MWORD,GR2 - #0006 #1012 - #0007 #000F -../../../../as/YAKUWA/binout.casl: 10: CALL BINOUT - #0008 #8000 - #0009 #0014 -../../../../as/YAKUWA/binout.casl: 11: LAD GR2,1,GR2 - #000A #1222 - #000B #0001 -../../../../as/YAKUWA/binout.casl: 12: JUMP MLOOP - #000C #6400 - #000D #0002 -../../../../as/YAKUWA/binout.casl: 13:MFIN RET - #000E #8100 -../../../../as/YAKUWA/binout.casl: 14:MWORD DC #0000,#0001,#09CD,#8001 - #000F #0000 - #0010 #0001 - #0011 #09CD - #0012 #8001 -../../../../as/YAKUWA/binout.casl: 15:MLEN DC 4 - #0013 #0004 -../../../../as/YAKUWA/binout.casl: 16: END -../../../../as/YAKUWA/binout.casl: 17:;;; BINOUT -../../../../as/YAKUWA/binout.casl: 18:BINOUT START -../../../../as/YAKUWA/binout.casl: 19: PUSH 0,GR1 ; レジスタの退避 - #0014 #7001 - #0015 #0000 -../../../../as/YAKUWA/binout.casl: 20: PUSH 0,GR2 ; ↓ - #0016 #7002 - #0017 #0000 -../../../../as/YAKUWA/binout.casl: 21: PUSH 0,GR3 ; ↓ - #0018 #7003 - #0019 #0000 -../../../../as/YAKUWA/binout.casl: 22: PUSH 0,GR4 ; ↓ - #001A #7004 - #001B #0000 -../../../../as/YAKUWA/binout.casl: 23: LAD GR2,0 ; 出力ポインタの初期化 - #001C #1220 - #001D #0000 -../../../../as/YAKUWA/binout.casl: 24: LAD GR3,15 ; カウンタの初期化 - #001E #1230 - #001F #000F -../../../../as/YAKUWA/binout.casl: 25: LD GR4,GR1 ; 全ビット = 0? - #0020 #1441 -../../../../as/YAKUWA/binout.casl: 26: JZE OUT1 - #0021 #6300 - #0022 #0041 -../../../../as/YAKUWA/binout.casl: 27:LOOP1 JMI ONE ; 先行するビット処理 - #0023 #6100 - #0024 #0031 -../../../../as/YAKUWA/binout.casl: 28: LAD GR3,-1,GR3 ; ↓ - #0025 #1233 - #0026 #FFFF -../../../../as/YAKUWA/binout.casl: 29: SLL GR1,1 ; ↓ - #0027 #5210 - #0028 #0001 -../../../../as/YAKUWA/binout.casl: 30: JUMP LOOP1 - #0029 #6400 - #002A #0023 -../../../../as/YAKUWA/binout.casl: 31:LOOP2 JMI ONE ; 符号ビットの判定 - #002B #6100 - #002C #0031 -../../../../as/YAKUWA/binout.casl: 32:ZERO LAD GR0,48 ; '0'→GR0 - #002D #1200 - #002E #0030 -../../../../as/YAKUWA/binout.casl: 33: JUMP STORE - #002F #6400 - #0030 #0033 -../../../../as/YAKUWA/binout.casl: 34:ONE LAD GR0,49 ; '1'→GR1 - #0031 #1200 - #0032 #0031 -../../../../as/YAKUWA/binout.casl: 35:STORE ST GR0,OBUF,GR2 - #0033 #1102 - #0034 #0060 -../../../../as/YAKUWA/binout.casl: 36: LAD GR2,1,GR2 - #0035 #1222 - #0036 #0001 -../../../../as/YAKUWA/binout.casl: 37: LAD GR3,-1,GR3 - #0037 #1233 - #0038 #FFFF -../../../../as/YAKUWA/binout.casl: 38: CPA GR3,NZERO - #0039 #4030 - #003A #0071 -../../../../as/YAKUWA/binout.casl: 39: JMI OUT2 ; 全ビット終了? - #003B #6100 - #003C #0047 -../../../../as/YAKUWA/binout.casl: 40: SLL GR1,1 - #003D #5210 - #003E #0001 -../../../../as/YAKUWA/binout.casl: 41: JUMP LOOP2 - #003F #6400 - #0040 #002B -../../../../as/YAKUWA/binout.casl: 42:OUT1 LAD GR0,48 - #0041 #1200 - #0042 #0030 -../../../../as/YAKUWA/binout.casl: 43: ST GR0,OBUF,GR2 - #0043 #1102 - #0044 #0060 -../../../../as/YAKUWA/binout.casl: 44: LAD GR2,1,GR2 - #0045 #1222 - #0046 #0001 -../../../../as/YAKUWA/binout.casl: 45:OUT2 ST GR2,OLNG - #0047 #1120 - #0048 #0070 -../../../../as/YAKUWA/binout.casl: 46: OUT OBUF,OLNG - #0049 #7001 - #004A #0000 - #004B #7002 - #004C #0000 - #004D #1210 - #004E #0060 - #004F #1220 - #0050 #0070 - #0051 #F000 - #0052 #0002 - #0053 #1210 - #0054 #0072 - #0072 #000A - #0055 #1220 - #0056 #0073 - #0073 #0001 - #0057 #F000 - #0058 #0002 - #0059 #7120 - #005A #7110 -../../../../as/YAKUWA/binout.casl: 47: POP GR4 ; レジスタの復元 - #005B #7140 -../../../../as/YAKUWA/binout.casl: 48: POP GR3 ; ↓ - #005C #7130 -../../../../as/YAKUWA/binout.casl: 49: POP GR2 ; ↓ - #005D #7120 -../../../../as/YAKUWA/binout.casl: 50: POP GR1 ; ↓ - #005E #7110 -../../../../as/YAKUWA/binout.casl: 51: RET - #005F #8100 -../../../../as/YAKUWA/binout.casl: 52:OBUF DS 16 - #0060 #0000 - #0061 #0000 - #0062 #0000 - #0063 #0000 - #0064 #0000 - #0065 #0000 - #0066 #0000 - #0067 #0000 - #0068 #0000 - #0069 #0000 - #006A #0000 - #006B #0000 - #006C #0000 - #006D #0000 - #006E #0000 - #006F #0000 -../../../../as/YAKUWA/binout.casl: 53:OLNG DS 1 - #0070 #0000 -../../../../as/YAKUWA/binout.casl: 54:NZERO DC 0 - #0071 #0000 -../../../../as/YAKUWA/binout.casl: 55: END -0 -1 -100111001101 -1000000000000001 diff --git a/as/yakuwa/binout_test/report.txt b/as/yakuwa/binout_test/report.txt deleted file mode 100644 index e6bd1db..0000000 --- a/as/yakuwa/binout_test/report.txt +++ /dev/null @@ -1 +0,0 @@ -binout: Test Success 2010-02-07 18:16:32 diff --git a/as/yakuwa/floatedit.casl b/as/yakuwa/floatedit.casl index f4121b2..7f11e9f 100644 --- a/as/yakuwa/floatedit.casl +++ b/as/yakuwa/floatedit.casl @@ -1,64 +1,64 @@ -EDIT START -RETRY IN INAREA,INLENG - LAD GR1,0 - OR GR1,INLENG - JZE FINISH - CPA GR1,TEN - JZE BEGIN - OUT ERRMSG,MSGLNG - JUMP RETRY -BEGIN LAD GR0,1 - ST GR0,ZSFLAG - LAD GR1,0 - LAD GR2,-1 - LAD GR3,0 -LOOP LD GR0,MASK,GR3 - PUSH 1,GR3 - LD GR3,INAREA,GR1 - LAD GR1,1,GR1 - CPL GR0,DIGIT0 - JZE ENDSPR - CPL GR0,DIGIT9 - JNZ NONDGT - CPL GR3,DIGIT0 - JNZ ENDSPR - LAD GR0,0 - OR GR0,ZSFLAG - JNZ SUPPRS -ENDSPR LD GR0,OTAREA,GR2 - CPL GR0,SPACE - JNZ NOT1ST - LD GR0,MASK - ST GR0,OTAREA,GR2 - LAD GR0,0 - ST GR0,ZSFLAG -NOT1ST LAD GR0,0,GR3 - JUMP STORE -NONDGT LAD GR1,-1,GR1 - LAD GR3,0 - OR GR3,ZSFLAG - JZE STORE -SUPPRS LD GR0,SPACE -STORE LAD GR2,1,GR2 - ST GR0,OTAREA,GR2 - POP GR3 - CPA GR1,INLENG - JNZ LOOP - LAD GR2,1,GR2 - ST GR2,OTLENG - OUT OTAREA,OTLENG - JUMP RETRY -FINISH RET -MASK DC '\99,999,990.99' -SPACE DC ' ' -DIGIT0 DC '0' -DIGIT9 DC '9' -TEN DC 10 -ERRMSG DC 'input error!' -MSGLNG DC 12 -INAREA DS 80 -INLENG DS 1 -OTAREA DS 80 -OTLENG DS 1 -ZSFLAG DS 1 - END +EDIT START +RETRY IN INAREA,INLENG + LAD GR1,0 + OR GR1,INLENG + JZE FINISH + CPA GR1,TEN + JZE BEGIN + OUT ERRMSG,MSGLNG + JUMP RETRY +BEGIN LAD GR0,1 + ST GR0,ZSFLAG + LAD GR1,0 + LAD GR2,-1 + LAD GR3,0 +LOOP LD GR0,MASK,GR3 + PUSH 1,GR3 + LD GR3,INAREA,GR1 + LAD GR1,1,GR1 + CPL GR0,DIGIT0 + JZE ENDSPR + CPL GR0,DIGIT9 + JNZ NONDGT + CPL GR3,DIGIT0 + JNZ ENDSPR + LAD GR0,0 + OR GR0,ZSFLAG + JNZ SUPPRS +ENDSPR LD GR0,OTAREA,GR2 + CPL GR0,SPACE + JNZ NOT1ST + LD GR0,MASK + ST GR0,OTAREA,GR2 + LAD GR0,0 + ST GR0,ZSFLAG +NOT1ST LAD GR0,0,GR3 + JUMP STORE +NONDGT LAD GR1,-1,GR1 + LAD GR3,0 + OR GR3,ZSFLAG + JZE STORE +SUPPRS LD GR0,SPACE +STORE LAD GR2,1,GR2 + ST GR0,OTAREA,GR2 + POP GR3 + CPA GR1,INLENG + JNZ LOOP + LAD GR2,1,GR2 + ST GR2,OTLENG + OUT OTAREA,OTLENG + JUMP RETRY +FINISH RET +MASK DC '\99,999,990.99' +SPACE DC ' ' +DIGIT0 DC '0' +DIGIT9 DC '9' +TEN DC 10 +ERRMSG DC 'input error!' +MSGLNG DC 12 +INAREA DS 80 +INLENG DS 1 +OTAREA DS 80 +OTLENG DS 1 +ZSFLAG DS 1 + END diff --git a/as/yakuwa/floatedit/0.txt b/as/yakuwa/floatedit/0.txt deleted file mode 100644 index 03850ba..0000000 --- a/as/yakuwa/floatedit/0.txt +++ /dev/null @@ -1,503 +0,0 @@ -../../../../casl2 -sla ../../../../as/YAKUWA/floatedit.casl - -Assemble ../../../../as/YAKUWA/floatedit.casl (0) -../../../../as/YAKUWA/floatedit.casl: 1:EDIT START -../../../../as/YAKUWA/floatedit.casl: 2:RETRY IN INAREA,INLENG -../../../../as/YAKUWA/floatedit.casl: 3: LAD GR1,0 -../../../../as/YAKUWA/floatedit.casl: 4: OR GR1,INLENG -../../../../as/YAKUWA/floatedit.casl: 5: JZE FINISH -../../../../as/YAKUWA/floatedit.casl: 6: CPA GR1,TEN -../../../../as/YAKUWA/floatedit.casl: 7: JZE BEGIN -../../../../as/YAKUWA/floatedit.casl: 8: OUT ERRMSG,MSGLNG -../../../../as/YAKUWA/floatedit.casl: 9: JUMP RETRY -../../../../as/YAKUWA/floatedit.casl: 10:BEGIN LAD GR0,1 -../../../../as/YAKUWA/floatedit.casl: 11: ST GR0,ZSFLAG -../../../../as/YAKUWA/floatedit.casl: 12: LAD GR1,0 -../../../../as/YAKUWA/floatedit.casl: 13: LAD GR2,-1 -../../../../as/YAKUWA/floatedit.casl: 14: LAD GR3,0 -../../../../as/YAKUWA/floatedit.casl: 15:LOOP LD GR0,MASK,GR3 -../../../../as/YAKUWA/floatedit.casl: 16: PUSH 1,GR3 -../../../../as/YAKUWA/floatedit.casl: 17: LD GR3,INAREA,GR1 -../../../../as/YAKUWA/floatedit.casl: 18: LAD GR1,1,GR1 -../../../../as/YAKUWA/floatedit.casl: 19: CPL GR0,DIGIT0 -../../../../as/YAKUWA/floatedit.casl: 20: JZE ENDSPR -../../../../as/YAKUWA/floatedit.casl: 21: CPL GR0,DIGIT9 -../../../../as/YAKUWA/floatedit.casl: 22: JNZ NONDGT -../../../../as/YAKUWA/floatedit.casl: 23: CPL GR3,DIGIT0 -../../../../as/YAKUWA/floatedit.casl: 24: JNZ ENDSPR -../../../../as/YAKUWA/floatedit.casl: 25: LAD GR0,0 -../../../../as/YAKUWA/floatedit.casl: 26: OR GR0,ZSFLAG -../../../../as/YAKUWA/floatedit.casl: 27: JNZ SUPPRS -../../../../as/YAKUWA/floatedit.casl: 28:ENDSPR LD GR0,OTAREA,GR2 -../../../../as/YAKUWA/floatedit.casl: 29: CPL GR0,SPACE -../../../../as/YAKUWA/floatedit.casl: 30: JNZ NOT1ST -../../../../as/YAKUWA/floatedit.casl: 31: LD GR0,MASK -../../../../as/YAKUWA/floatedit.casl: 32: ST GR0,OTAREA,GR2 -../../../../as/YAKUWA/floatedit.casl: 33: LAD GR0,0 -../../../../as/YAKUWA/floatedit.casl: 34: ST GR0,ZSFLAG -../../../../as/YAKUWA/floatedit.casl: 35:NOT1ST LAD GR0,0,GR3 -../../../../as/YAKUWA/floatedit.casl: 36: JUMP STORE -../../../../as/YAKUWA/floatedit.casl: 37:NONDGT LAD GR1,-1,GR1 -../../../../as/YAKUWA/floatedit.casl: 38: LAD GR3,0 -../../../../as/YAKUWA/floatedit.casl: 39: OR GR3,ZSFLAG -../../../../as/YAKUWA/floatedit.casl: 40: JZE STORE -../../../../as/YAKUWA/floatedit.casl: 41:SUPPRS LD GR0,SPACE -../../../../as/YAKUWA/floatedit.casl: 42:STORE LAD GR2,1,GR2 -../../../../as/YAKUWA/floatedit.casl: 43: ST GR0,OTAREA,GR2 -../../../../as/YAKUWA/floatedit.casl: 44: POP GR3 -../../../../as/YAKUWA/floatedit.casl: 45: CPA GR1,INLENG -../../../../as/YAKUWA/floatedit.casl: 46: JNZ LOOP -../../../../as/YAKUWA/floatedit.casl: 47: LAD GR2,1,GR2 -../../../../as/YAKUWA/floatedit.casl: 48: ST GR2,OTLENG -../../../../as/YAKUWA/floatedit.casl: 49: OUT OTAREA,OTLENG -../../../../as/YAKUWA/floatedit.casl: 50: JUMP RETRY -../../../../as/YAKUWA/floatedit.casl: 51:FINISH RET -../../../../as/YAKUWA/floatedit.casl: 52:MASK DC '\99,999,990.99' -../../../../as/YAKUWA/floatedit.casl: 53:SPACE DC ' ' -../../../../as/YAKUWA/floatedit.casl: 54:DIGIT0 DC '0' -../../../../as/YAKUWA/floatedit.casl: 55:DIGIT9 DC '9' -../../../../as/YAKUWA/floatedit.casl: 56:TEN DC 10 -../../../../as/YAKUWA/floatedit.casl: 57:ERRMSG DC 'input error!' -../../../../as/YAKUWA/floatedit.casl: 58:MSGLNG DC 12 -../../../../as/YAKUWA/floatedit.casl: 59:INAREA DS 80 -../../../../as/YAKUWA/floatedit.casl: 60:INLENG DS 1 -../../../../as/YAKUWA/floatedit.casl: 61:OTAREA DS 80 -../../../../as/YAKUWA/floatedit.casl: 62:OTLENG DS 1 -../../../../as/YAKUWA/floatedit.casl: 63:ZSFLAG DS 1 -../../../../as/YAKUWA/floatedit.casl: 64: END - -Label:::: -EDIT ---> #0000 -EDIT.SPACE ---> #009A -EDIT.FINISH ---> #008B -EDIT.INLENG ---> #00FB -EDIT.SUPPRS ---> #0068 -EDIT.NOT1ST ---> #005C -EDIT.DIGIT0 ---> #009B -EDIT.DIGIT9 ---> #009C -EDIT.OTAREA ---> #00FC -EDIT.ENDSPR ---> #004E -EDIT.ERRMSG ---> #009E -EDIT.MSGLNG ---> #00AA -EDIT.LOOP ---> #0034 -EDIT.ZSFLAG ---> #014D -EDIT.TEN ---> #009D -EDIT.INAREA ---> #00AB -EDIT.RETRY ---> #0000 -EDIT.BEGIN ---> #002A -EDIT.OTLENG ---> #014C -EDIT.NONDGT ---> #0060 -EDIT.MASK ---> #008C -EDIT.STORE ---> #006A - -Assemble ../../../../as/YAKUWA/floatedit.casl (1) -../../../../as/YAKUWA/floatedit.casl: 1:EDIT START -../../../../as/YAKUWA/floatedit.casl: 2:RETRY IN INAREA,INLENG - #0000 #7001 - #0001 #0000 - #0002 #7002 - #0003 #0000 - #0004 #1210 - #0005 #00AB - #0006 #1220 - #0007 #00FB - #0008 #F000 - #0009 #0001 - #000A #7120 - #000B #7110 -../../../../as/YAKUWA/floatedit.casl: 3: LAD GR1,0 - #000C #1210 - #000D #0000 -../../../../as/YAKUWA/floatedit.casl: 4: OR GR1,INLENG - #000E #3110 - #000F #00FB -../../../../as/YAKUWA/floatedit.casl: 5: JZE FINISH - #0010 #6300 - #0011 #008B -../../../../as/YAKUWA/floatedit.casl: 6: CPA GR1,TEN - #0012 #4010 - #0013 #009D -../../../../as/YAKUWA/floatedit.casl: 7: JZE BEGIN - #0014 #6300 - #0015 #002A -../../../../as/YAKUWA/floatedit.casl: 8: OUT ERRMSG,MSGLNG - #0016 #7001 - #0017 #0000 - #0018 #7002 - #0019 #0000 - #001A #1210 - #001B #009E - #001C #1220 - #001D #00AA - #001E #F000 - #001F #0002 - #0020 #1210 - #0021 #014E - #014E #000A - #0022 #1220 - #0023 #014F - #014F #0001 - #0024 #F000 - #0025 #0002 - #0026 #7120 - #0027 #7110 -../../../../as/YAKUWA/floatedit.casl: 9: JUMP RETRY - #0028 #6400 - #0029 #0000 -../../../../as/YAKUWA/floatedit.casl: 10:BEGIN LAD GR0,1 - #002A #1200 - #002B #0001 -../../../../as/YAKUWA/floatedit.casl: 11: ST GR0,ZSFLAG - #002C #1100 - #002D #014D -../../../../as/YAKUWA/floatedit.casl: 12: LAD GR1,0 - #002E #1210 - #002F #0000 -../../../../as/YAKUWA/floatedit.casl: 13: LAD GR2,-1 - #0030 #1220 - #0031 #FFFF -../../../../as/YAKUWA/floatedit.casl: 14: LAD GR3,0 - #0032 #1230 - #0033 #0000 -../../../../as/YAKUWA/floatedit.casl: 15:LOOP LD GR0,MASK,GR3 - #0034 #1003 - #0035 #008C -../../../../as/YAKUWA/floatedit.casl: 16: PUSH 1,GR3 - #0036 #7003 - #0037 #0001 -../../../../as/YAKUWA/floatedit.casl: 17: LD GR3,INAREA,GR1 - #0038 #1031 - #0039 #00AB -../../../../as/YAKUWA/floatedit.casl: 18: LAD GR1,1,GR1 - #003A #1211 - #003B #0001 -../../../../as/YAKUWA/floatedit.casl: 19: CPL GR0,DIGIT0 - #003C #4100 - #003D #009B -../../../../as/YAKUWA/floatedit.casl: 20: JZE ENDSPR - #003E #6300 - #003F #004E -../../../../as/YAKUWA/floatedit.casl: 21: CPL GR0,DIGIT9 - #0040 #4100 - #0041 #009C -../../../../as/YAKUWA/floatedit.casl: 22: JNZ NONDGT - #0042 #6200 - #0043 #0060 -../../../../as/YAKUWA/floatedit.casl: 23: CPL GR3,DIGIT0 - #0044 #4130 - #0045 #009B -../../../../as/YAKUWA/floatedit.casl: 24: JNZ ENDSPR - #0046 #6200 - #0047 #004E -../../../../as/YAKUWA/floatedit.casl: 25: LAD GR0,0 - #0048 #1200 - #0049 #0000 -../../../../as/YAKUWA/floatedit.casl: 26: OR GR0,ZSFLAG - #004A #3100 - #004B #014D -../../../../as/YAKUWA/floatedit.casl: 27: JNZ SUPPRS - #004C #6200 - #004D #0068 -../../../../as/YAKUWA/floatedit.casl: 28:ENDSPR LD GR0,OTAREA,GR2 - #004E #1002 - #004F #00FC -../../../../as/YAKUWA/floatedit.casl: 29: CPL GR0,SPACE - #0050 #4100 - #0051 #009A -../../../../as/YAKUWA/floatedit.casl: 30: JNZ NOT1ST - #0052 #6200 - #0053 #005C -../../../../as/YAKUWA/floatedit.casl: 31: LD GR0,MASK - #0054 #1000 - #0055 #008C -../../../../as/YAKUWA/floatedit.casl: 32: ST GR0,OTAREA,GR2 - #0056 #1102 - #0057 #00FC -../../../../as/YAKUWA/floatedit.casl: 33: LAD GR0,0 - #0058 #1200 - #0059 #0000 -../../../../as/YAKUWA/floatedit.casl: 34: ST GR0,ZSFLAG - #005A #1100 - #005B #014D -../../../../as/YAKUWA/floatedit.casl: 35:NOT1ST LAD GR0,0,GR3 - #005C #1203 - #005D #0000 -../../../../as/YAKUWA/floatedit.casl: 36: JUMP STORE - #005E #6400 - #005F #006A -../../../../as/YAKUWA/floatedit.casl: 37:NONDGT LAD GR1,-1,GR1 - #0060 #1211 - #0061 #FFFF -../../../../as/YAKUWA/floatedit.casl: 38: LAD GR3,0 - #0062 #1230 - #0063 #0000 -../../../../as/YAKUWA/floatedit.casl: 39: OR GR3,ZSFLAG - #0064 #3130 - #0065 #014D -../../../../as/YAKUWA/floatedit.casl: 40: JZE STORE - #0066 #6300 - #0067 #006A -../../../../as/YAKUWA/floatedit.casl: 41:SUPPRS LD GR0,SPACE - #0068 #1000 - #0069 #009A -../../../../as/YAKUWA/floatedit.casl: 42:STORE LAD GR2,1,GR2 - #006A #1222 - #006B #0001 -../../../../as/YAKUWA/floatedit.casl: 43: ST GR0,OTAREA,GR2 - #006C #1102 - #006D #00FC -../../../../as/YAKUWA/floatedit.casl: 44: POP GR3 - #006E #7130 -../../../../as/YAKUWA/floatedit.casl: 45: CPA GR1,INLENG - #006F #4010 - #0070 #00FB -../../../../as/YAKUWA/floatedit.casl: 46: JNZ LOOP - #0071 #6200 - #0072 #0034 -../../../../as/YAKUWA/floatedit.casl: 47: LAD GR2,1,GR2 - #0073 #1222 - #0074 #0001 -../../../../as/YAKUWA/floatedit.casl: 48: ST GR2,OTLENG - #0075 #1120 - #0076 #014C -../../../../as/YAKUWA/floatedit.casl: 49: OUT OTAREA,OTLENG - #0077 #7001 - #0078 #0000 - #0079 #7002 - #007A #0000 - #007B #1210 - #007C #00FC - #007D #1220 - #007E #014C - #007F #F000 - #0080 #0002 - #0081 #1210 - #0082 #0150 - #0150 #000A - #0083 #1220 - #0084 #0151 - #0151 #0001 - #0085 #F000 - #0086 #0002 - #0087 #7120 - #0088 #7110 -../../../../as/YAKUWA/floatedit.casl: 50: JUMP RETRY - #0089 #6400 - #008A #0000 -../../../../as/YAKUWA/floatedit.casl: 51:FINISH RET - #008B #8100 -../../../../as/YAKUWA/floatedit.casl: 52:MASK DC '\99,999,990.99' - #008C #005C - #008D #0039 - #008E #0039 - #008F #002C - #0090 #0039 - #0091 #0039 - #0092 #0039 - #0093 #002C - #0094 #0039 - #0095 #0039 - #0096 #0030 - #0097 #002E - #0098 #0039 - #0099 #0039 -../../../../as/YAKUWA/floatedit.casl: 53:SPACE DC ' ' - #009A #0020 -../../../../as/YAKUWA/floatedit.casl: 54:DIGIT0 DC '0' - #009B #0030 -../../../../as/YAKUWA/floatedit.casl: 55:DIGIT9 DC '9' - #009C #0039 -../../../../as/YAKUWA/floatedit.casl: 56:TEN DC 10 - #009D #000A -../../../../as/YAKUWA/floatedit.casl: 57:ERRMSG DC 'input error!' - #009E #0069 - #009F #006E - #00A0 #0070 - #00A1 #0075 - #00A2 #0074 - #00A3 #0020 - #00A4 #0065 - #00A5 #0072 - #00A6 #0072 - #00A7 #006F - #00A8 #0072 - #00A9 #0021 -../../../../as/YAKUWA/floatedit.casl: 58:MSGLNG DC 12 - #00AA #000C -../../../../as/YAKUWA/floatedit.casl: 59:INAREA DS 80 - #00AB #0000 - #00AC #0000 - #00AD #0000 - #00AE #0000 - #00AF #0000 - #00B0 #0000 - #00B1 #0000 - #00B2 #0000 - #00B3 #0000 - #00B4 #0000 - #00B5 #0000 - #00B6 #0000 - #00B7 #0000 - #00B8 #0000 - #00B9 #0000 - #00BA #0000 - #00BB #0000 - #00BC #0000 - #00BD #0000 - #00BE #0000 - #00BF #0000 - #00C0 #0000 - #00C1 #0000 - #00C2 #0000 - #00C3 #0000 - #00C4 #0000 - #00C5 #0000 - #00C6 #0000 - #00C7 #0000 - #00C8 #0000 - #00C9 #0000 - #00CA #0000 - #00CB #0000 - #00CC #0000 - #00CD #0000 - #00CE #0000 - #00CF #0000 - #00D0 #0000 - #00D1 #0000 - #00D2 #0000 - #00D3 #0000 - #00D4 #0000 - #00D5 #0000 - #00D6 #0000 - #00D7 #0000 - #00D8 #0000 - #00D9 #0000 - #00DA #0000 - #00DB #0000 - #00DC #0000 - #00DD #0000 - #00DE #0000 - #00DF #0000 - #00E0 #0000 - #00E1 #0000 - #00E2 #0000 - #00E3 #0000 - #00E4 #0000 - #00E5 #0000 - #00E6 #0000 - #00E7 #0000 - #00E8 #0000 - #00E9 #0000 - #00EA #0000 - #00EB #0000 - #00EC #0000 - #00ED #0000 - #00EE #0000 - #00EF #0000 - #00F0 #0000 - #00F1 #0000 - #00F2 #0000 - #00F3 #0000 - #00F4 #0000 - #00F5 #0000 - #00F6 #0000 - #00F7 #0000 - #00F8 #0000 - #00F9 #0000 - #00FA #0000 -../../../../as/YAKUWA/floatedit.casl: 60:INLENG DS 1 - #00FB #0000 -../../../../as/YAKUWA/floatedit.casl: 61:OTAREA DS 80 - #00FC #0000 - #00FD #0000 - #00FE #0000 - #00FF #0000 - #0100 #0000 - #0101 #0000 - #0102 #0000 - #0103 #0000 - #0104 #0000 - #0105 #0000 - #0106 #0000 - #0107 #0000 - #0108 #0000 - #0109 #0000 - #010A #0000 - #010B #0000 - #010C #0000 - #010D #0000 - #010E #0000 - #010F #0000 - #0110 #0000 - #0111 #0000 - #0112 #0000 - #0113 #0000 - #0114 #0000 - #0115 #0000 - #0116 #0000 - #0117 #0000 - #0118 #0000 - #0119 #0000 - #011A #0000 - #011B #0000 - #011C #0000 - #011D #0000 - #011E #0000 - #011F #0000 - #0120 #0000 - #0121 #0000 - #0122 #0000 - #0123 #0000 - #0124 #0000 - #0125 #0000 - #0126 #0000 - #0127 #0000 - #0128 #0000 - #0129 #0000 - #012A #0000 - #012B #0000 - #012C #0000 - #012D #0000 - #012E #0000 - #012F #0000 - #0130 #0000 - #0131 #0000 - #0132 #0000 - #0133 #0000 - #0134 #0000 - #0135 #0000 - #0136 #0000 - #0137 #0000 - #0138 #0000 - #0139 #0000 - #013A #0000 - #013B #0000 - #013C #0000 - #013D #0000 - #013E #0000 - #013F #0000 - #0140 #0000 - #0141 #0000 - #0142 #0000 - #0143 #0000 - #0144 #0000 - #0145 #0000 - #0146 #0000 - #0147 #0000 - #0148 #0000 - #0149 #0000 - #014A #0000 - #014B #0000 -../../../../as/YAKUWA/floatedit.casl: 62:OTLENG DS 1 - #014C #0000 -../../../../as/YAKUWA/floatedit.casl: 63:ZSFLAG DS 1 - #014D #0000 -../../../../as/YAKUWA/floatedit.casl: 64: END -input error! -input error! -input error! -\12,345,678.90 -\12,345,678.09 - \2,234,568.19 - \2,234,068.19 - \0.01 diff --git a/as/yakuwa/floatedit/1.txt b/as/yakuwa/floatedit/1.txt deleted file mode 100644 index 03850ba..0000000 --- a/as/yakuwa/floatedit/1.txt +++ /dev/null @@ -1,503 +0,0 @@ -../../../../casl2 -sla ../../../../as/YAKUWA/floatedit.casl - -Assemble ../../../../as/YAKUWA/floatedit.casl (0) -../../../../as/YAKUWA/floatedit.casl: 1:EDIT START -../../../../as/YAKUWA/floatedit.casl: 2:RETRY IN INAREA,INLENG -../../../../as/YAKUWA/floatedit.casl: 3: LAD GR1,0 -../../../../as/YAKUWA/floatedit.casl: 4: OR GR1,INLENG -../../../../as/YAKUWA/floatedit.casl: 5: JZE FINISH -../../../../as/YAKUWA/floatedit.casl: 6: CPA GR1,TEN -../../../../as/YAKUWA/floatedit.casl: 7: JZE BEGIN -../../../../as/YAKUWA/floatedit.casl: 8: OUT ERRMSG,MSGLNG -../../../../as/YAKUWA/floatedit.casl: 9: JUMP RETRY -../../../../as/YAKUWA/floatedit.casl: 10:BEGIN LAD GR0,1 -../../../../as/YAKUWA/floatedit.casl: 11: ST GR0,ZSFLAG -../../../../as/YAKUWA/floatedit.casl: 12: LAD GR1,0 -../../../../as/YAKUWA/floatedit.casl: 13: LAD GR2,-1 -../../../../as/YAKUWA/floatedit.casl: 14: LAD GR3,0 -../../../../as/YAKUWA/floatedit.casl: 15:LOOP LD GR0,MASK,GR3 -../../../../as/YAKUWA/floatedit.casl: 16: PUSH 1,GR3 -../../../../as/YAKUWA/floatedit.casl: 17: LD GR3,INAREA,GR1 -../../../../as/YAKUWA/floatedit.casl: 18: LAD GR1,1,GR1 -../../../../as/YAKUWA/floatedit.casl: 19: CPL GR0,DIGIT0 -../../../../as/YAKUWA/floatedit.casl: 20: JZE ENDSPR -../../../../as/YAKUWA/floatedit.casl: 21: CPL GR0,DIGIT9 -../../../../as/YAKUWA/floatedit.casl: 22: JNZ NONDGT -../../../../as/YAKUWA/floatedit.casl: 23: CPL GR3,DIGIT0 -../../../../as/YAKUWA/floatedit.casl: 24: JNZ ENDSPR -../../../../as/YAKUWA/floatedit.casl: 25: LAD GR0,0 -../../../../as/YAKUWA/floatedit.casl: 26: OR GR0,ZSFLAG -../../../../as/YAKUWA/floatedit.casl: 27: JNZ SUPPRS -../../../../as/YAKUWA/floatedit.casl: 28:ENDSPR LD GR0,OTAREA,GR2 -../../../../as/YAKUWA/floatedit.casl: 29: CPL GR0,SPACE -../../../../as/YAKUWA/floatedit.casl: 30: JNZ NOT1ST -../../../../as/YAKUWA/floatedit.casl: 31: LD GR0,MASK -../../../../as/YAKUWA/floatedit.casl: 32: ST GR0,OTAREA,GR2 -../../../../as/YAKUWA/floatedit.casl: 33: LAD GR0,0 -../../../../as/YAKUWA/floatedit.casl: 34: ST GR0,ZSFLAG -../../../../as/YAKUWA/floatedit.casl: 35:NOT1ST LAD GR0,0,GR3 -../../../../as/YAKUWA/floatedit.casl: 36: JUMP STORE -../../../../as/YAKUWA/floatedit.casl: 37:NONDGT LAD GR1,-1,GR1 -../../../../as/YAKUWA/floatedit.casl: 38: LAD GR3,0 -../../../../as/YAKUWA/floatedit.casl: 39: OR GR3,ZSFLAG -../../../../as/YAKUWA/floatedit.casl: 40: JZE STORE -../../../../as/YAKUWA/floatedit.casl: 41:SUPPRS LD GR0,SPACE -../../../../as/YAKUWA/floatedit.casl: 42:STORE LAD GR2,1,GR2 -../../../../as/YAKUWA/floatedit.casl: 43: ST GR0,OTAREA,GR2 -../../../../as/YAKUWA/floatedit.casl: 44: POP GR3 -../../../../as/YAKUWA/floatedit.casl: 45: CPA GR1,INLENG -../../../../as/YAKUWA/floatedit.casl: 46: JNZ LOOP -../../../../as/YAKUWA/floatedit.casl: 47: LAD GR2,1,GR2 -../../../../as/YAKUWA/floatedit.casl: 48: ST GR2,OTLENG -../../../../as/YAKUWA/floatedit.casl: 49: OUT OTAREA,OTLENG -../../../../as/YAKUWA/floatedit.casl: 50: JUMP RETRY -../../../../as/YAKUWA/floatedit.casl: 51:FINISH RET -../../../../as/YAKUWA/floatedit.casl: 52:MASK DC '\99,999,990.99' -../../../../as/YAKUWA/floatedit.casl: 53:SPACE DC ' ' -../../../../as/YAKUWA/floatedit.casl: 54:DIGIT0 DC '0' -../../../../as/YAKUWA/floatedit.casl: 55:DIGIT9 DC '9' -../../../../as/YAKUWA/floatedit.casl: 56:TEN DC 10 -../../../../as/YAKUWA/floatedit.casl: 57:ERRMSG DC 'input error!' -../../../../as/YAKUWA/floatedit.casl: 58:MSGLNG DC 12 -../../../../as/YAKUWA/floatedit.casl: 59:INAREA DS 80 -../../../../as/YAKUWA/floatedit.casl: 60:INLENG DS 1 -../../../../as/YAKUWA/floatedit.casl: 61:OTAREA DS 80 -../../../../as/YAKUWA/floatedit.casl: 62:OTLENG DS 1 -../../../../as/YAKUWA/floatedit.casl: 63:ZSFLAG DS 1 -../../../../as/YAKUWA/floatedit.casl: 64: END - -Label:::: -EDIT ---> #0000 -EDIT.SPACE ---> #009A -EDIT.FINISH ---> #008B -EDIT.INLENG ---> #00FB -EDIT.SUPPRS ---> #0068 -EDIT.NOT1ST ---> #005C -EDIT.DIGIT0 ---> #009B -EDIT.DIGIT9 ---> #009C -EDIT.OTAREA ---> #00FC -EDIT.ENDSPR ---> #004E -EDIT.ERRMSG ---> #009E -EDIT.MSGLNG ---> #00AA -EDIT.LOOP ---> #0034 -EDIT.ZSFLAG ---> #014D -EDIT.TEN ---> #009D -EDIT.INAREA ---> #00AB -EDIT.RETRY ---> #0000 -EDIT.BEGIN ---> #002A -EDIT.OTLENG ---> #014C -EDIT.NONDGT ---> #0060 -EDIT.MASK ---> #008C -EDIT.STORE ---> #006A - -Assemble ../../../../as/YAKUWA/floatedit.casl (1) -../../../../as/YAKUWA/floatedit.casl: 1:EDIT START -../../../../as/YAKUWA/floatedit.casl: 2:RETRY IN INAREA,INLENG - #0000 #7001 - #0001 #0000 - #0002 #7002 - #0003 #0000 - #0004 #1210 - #0005 #00AB - #0006 #1220 - #0007 #00FB - #0008 #F000 - #0009 #0001 - #000A #7120 - #000B #7110 -../../../../as/YAKUWA/floatedit.casl: 3: LAD GR1,0 - #000C #1210 - #000D #0000 -../../../../as/YAKUWA/floatedit.casl: 4: OR GR1,INLENG - #000E #3110 - #000F #00FB -../../../../as/YAKUWA/floatedit.casl: 5: JZE FINISH - #0010 #6300 - #0011 #008B -../../../../as/YAKUWA/floatedit.casl: 6: CPA GR1,TEN - #0012 #4010 - #0013 #009D -../../../../as/YAKUWA/floatedit.casl: 7: JZE BEGIN - #0014 #6300 - #0015 #002A -../../../../as/YAKUWA/floatedit.casl: 8: OUT ERRMSG,MSGLNG - #0016 #7001 - #0017 #0000 - #0018 #7002 - #0019 #0000 - #001A #1210 - #001B #009E - #001C #1220 - #001D #00AA - #001E #F000 - #001F #0002 - #0020 #1210 - #0021 #014E - #014E #000A - #0022 #1220 - #0023 #014F - #014F #0001 - #0024 #F000 - #0025 #0002 - #0026 #7120 - #0027 #7110 -../../../../as/YAKUWA/floatedit.casl: 9: JUMP RETRY - #0028 #6400 - #0029 #0000 -../../../../as/YAKUWA/floatedit.casl: 10:BEGIN LAD GR0,1 - #002A #1200 - #002B #0001 -../../../../as/YAKUWA/floatedit.casl: 11: ST GR0,ZSFLAG - #002C #1100 - #002D #014D -../../../../as/YAKUWA/floatedit.casl: 12: LAD GR1,0 - #002E #1210 - #002F #0000 -../../../../as/YAKUWA/floatedit.casl: 13: LAD GR2,-1 - #0030 #1220 - #0031 #FFFF -../../../../as/YAKUWA/floatedit.casl: 14: LAD GR3,0 - #0032 #1230 - #0033 #0000 -../../../../as/YAKUWA/floatedit.casl: 15:LOOP LD GR0,MASK,GR3 - #0034 #1003 - #0035 #008C -../../../../as/YAKUWA/floatedit.casl: 16: PUSH 1,GR3 - #0036 #7003 - #0037 #0001 -../../../../as/YAKUWA/floatedit.casl: 17: LD GR3,INAREA,GR1 - #0038 #1031 - #0039 #00AB -../../../../as/YAKUWA/floatedit.casl: 18: LAD GR1,1,GR1 - #003A #1211 - #003B #0001 -../../../../as/YAKUWA/floatedit.casl: 19: CPL GR0,DIGIT0 - #003C #4100 - #003D #009B -../../../../as/YAKUWA/floatedit.casl: 20: JZE ENDSPR - #003E #6300 - #003F #004E -../../../../as/YAKUWA/floatedit.casl: 21: CPL GR0,DIGIT9 - #0040 #4100 - #0041 #009C -../../../../as/YAKUWA/floatedit.casl: 22: JNZ NONDGT - #0042 #6200 - #0043 #0060 -../../../../as/YAKUWA/floatedit.casl: 23: CPL GR3,DIGIT0 - #0044 #4130 - #0045 #009B -../../../../as/YAKUWA/floatedit.casl: 24: JNZ ENDSPR - #0046 #6200 - #0047 #004E -../../../../as/YAKUWA/floatedit.casl: 25: LAD GR0,0 - #0048 #1200 - #0049 #0000 -../../../../as/YAKUWA/floatedit.casl: 26: OR GR0,ZSFLAG - #004A #3100 - #004B #014D -../../../../as/YAKUWA/floatedit.casl: 27: JNZ SUPPRS - #004C #6200 - #004D #0068 -../../../../as/YAKUWA/floatedit.casl: 28:ENDSPR LD GR0,OTAREA,GR2 - #004E #1002 - #004F #00FC -../../../../as/YAKUWA/floatedit.casl: 29: CPL GR0,SPACE - #0050 #4100 - #0051 #009A -../../../../as/YAKUWA/floatedit.casl: 30: JNZ NOT1ST - #0052 #6200 - #0053 #005C -../../../../as/YAKUWA/floatedit.casl: 31: LD GR0,MASK - #0054 #1000 - #0055 #008C -../../../../as/YAKUWA/floatedit.casl: 32: ST GR0,OTAREA,GR2 - #0056 #1102 - #0057 #00FC -../../../../as/YAKUWA/floatedit.casl: 33: LAD GR0,0 - #0058 #1200 - #0059 #0000 -../../../../as/YAKUWA/floatedit.casl: 34: ST GR0,ZSFLAG - #005A #1100 - #005B #014D -../../../../as/YAKUWA/floatedit.casl: 35:NOT1ST LAD GR0,0,GR3 - #005C #1203 - #005D #0000 -../../../../as/YAKUWA/floatedit.casl: 36: JUMP STORE - #005E #6400 - #005F #006A -../../../../as/YAKUWA/floatedit.casl: 37:NONDGT LAD GR1,-1,GR1 - #0060 #1211 - #0061 #FFFF -../../../../as/YAKUWA/floatedit.casl: 38: LAD GR3,0 - #0062 #1230 - #0063 #0000 -../../../../as/YAKUWA/floatedit.casl: 39: OR GR3,ZSFLAG - #0064 #3130 - #0065 #014D -../../../../as/YAKUWA/floatedit.casl: 40: JZE STORE - #0066 #6300 - #0067 #006A -../../../../as/YAKUWA/floatedit.casl: 41:SUPPRS LD GR0,SPACE - #0068 #1000 - #0069 #009A -../../../../as/YAKUWA/floatedit.casl: 42:STORE LAD GR2,1,GR2 - #006A #1222 - #006B #0001 -../../../../as/YAKUWA/floatedit.casl: 43: ST GR0,OTAREA,GR2 - #006C #1102 - #006D #00FC -../../../../as/YAKUWA/floatedit.casl: 44: POP GR3 - #006E #7130 -../../../../as/YAKUWA/floatedit.casl: 45: CPA GR1,INLENG - #006F #4010 - #0070 #00FB -../../../../as/YAKUWA/floatedit.casl: 46: JNZ LOOP - #0071 #6200 - #0072 #0034 -../../../../as/YAKUWA/floatedit.casl: 47: LAD GR2,1,GR2 - #0073 #1222 - #0074 #0001 -../../../../as/YAKUWA/floatedit.casl: 48: ST GR2,OTLENG - #0075 #1120 - #0076 #014C -../../../../as/YAKUWA/floatedit.casl: 49: OUT OTAREA,OTLENG - #0077 #7001 - #0078 #0000 - #0079 #7002 - #007A #0000 - #007B #1210 - #007C #00FC - #007D #1220 - #007E #014C - #007F #F000 - #0080 #0002 - #0081 #1210 - #0082 #0150 - #0150 #000A - #0083 #1220 - #0084 #0151 - #0151 #0001 - #0085 #F000 - #0086 #0002 - #0087 #7120 - #0088 #7110 -../../../../as/YAKUWA/floatedit.casl: 50: JUMP RETRY - #0089 #6400 - #008A #0000 -../../../../as/YAKUWA/floatedit.casl: 51:FINISH RET - #008B #8100 -../../../../as/YAKUWA/floatedit.casl: 52:MASK DC '\99,999,990.99' - #008C #005C - #008D #0039 - #008E #0039 - #008F #002C - #0090 #0039 - #0091 #0039 - #0092 #0039 - #0093 #002C - #0094 #0039 - #0095 #0039 - #0096 #0030 - #0097 #002E - #0098 #0039 - #0099 #0039 -../../../../as/YAKUWA/floatedit.casl: 53:SPACE DC ' ' - #009A #0020 -../../../../as/YAKUWA/floatedit.casl: 54:DIGIT0 DC '0' - #009B #0030 -../../../../as/YAKUWA/floatedit.casl: 55:DIGIT9 DC '9' - #009C #0039 -../../../../as/YAKUWA/floatedit.casl: 56:TEN DC 10 - #009D #000A -../../../../as/YAKUWA/floatedit.casl: 57:ERRMSG DC 'input error!' - #009E #0069 - #009F #006E - #00A0 #0070 - #00A1 #0075 - #00A2 #0074 - #00A3 #0020 - #00A4 #0065 - #00A5 #0072 - #00A6 #0072 - #00A7 #006F - #00A8 #0072 - #00A9 #0021 -../../../../as/YAKUWA/floatedit.casl: 58:MSGLNG DC 12 - #00AA #000C -../../../../as/YAKUWA/floatedit.casl: 59:INAREA DS 80 - #00AB #0000 - #00AC #0000 - #00AD #0000 - #00AE #0000 - #00AF #0000 - #00B0 #0000 - #00B1 #0000 - #00B2 #0000 - #00B3 #0000 - #00B4 #0000 - #00B5 #0000 - #00B6 #0000 - #00B7 #0000 - #00B8 #0000 - #00B9 #0000 - #00BA #0000 - #00BB #0000 - #00BC #0000 - #00BD #0000 - #00BE #0000 - #00BF #0000 - #00C0 #0000 - #00C1 #0000 - #00C2 #0000 - #00C3 #0000 - #00C4 #0000 - #00C5 #0000 - #00C6 #0000 - #00C7 #0000 - #00C8 #0000 - #00C9 #0000 - #00CA #0000 - #00CB #0000 - #00CC #0000 - #00CD #0000 - #00CE #0000 - #00CF #0000 - #00D0 #0000 - #00D1 #0000 - #00D2 #0000 - #00D3 #0000 - #00D4 #0000 - #00D5 #0000 - #00D6 #0000 - #00D7 #0000 - #00D8 #0000 - #00D9 #0000 - #00DA #0000 - #00DB #0000 - #00DC #0000 - #00DD #0000 - #00DE #0000 - #00DF #0000 - #00E0 #0000 - #00E1 #0000 - #00E2 #0000 - #00E3 #0000 - #00E4 #0000 - #00E5 #0000 - #00E6 #0000 - #00E7 #0000 - #00E8 #0000 - #00E9 #0000 - #00EA #0000 - #00EB #0000 - #00EC #0000 - #00ED #0000 - #00EE #0000 - #00EF #0000 - #00F0 #0000 - #00F1 #0000 - #00F2 #0000 - #00F3 #0000 - #00F4 #0000 - #00F5 #0000 - #00F6 #0000 - #00F7 #0000 - #00F8 #0000 - #00F9 #0000 - #00FA #0000 -../../../../as/YAKUWA/floatedit.casl: 60:INLENG DS 1 - #00FB #0000 -../../../../as/YAKUWA/floatedit.casl: 61:OTAREA DS 80 - #00FC #0000 - #00FD #0000 - #00FE #0000 - #00FF #0000 - #0100 #0000 - #0101 #0000 - #0102 #0000 - #0103 #0000 - #0104 #0000 - #0105 #0000 - #0106 #0000 - #0107 #0000 - #0108 #0000 - #0109 #0000 - #010A #0000 - #010B #0000 - #010C #0000 - #010D #0000 - #010E #0000 - #010F #0000 - #0110 #0000 - #0111 #0000 - #0112 #0000 - #0113 #0000 - #0114 #0000 - #0115 #0000 - #0116 #0000 - #0117 #0000 - #0118 #0000 - #0119 #0000 - #011A #0000 - #011B #0000 - #011C #0000 - #011D #0000 - #011E #0000 - #011F #0000 - #0120 #0000 - #0121 #0000 - #0122 #0000 - #0123 #0000 - #0124 #0000 - #0125 #0000 - #0126 #0000 - #0127 #0000 - #0128 #0000 - #0129 #0000 - #012A #0000 - #012B #0000 - #012C #0000 - #012D #0000 - #012E #0000 - #012F #0000 - #0130 #0000 - #0131 #0000 - #0132 #0000 - #0133 #0000 - #0134 #0000 - #0135 #0000 - #0136 #0000 - #0137 #0000 - #0138 #0000 - #0139 #0000 - #013A #0000 - #013B #0000 - #013C #0000 - #013D #0000 - #013E #0000 - #013F #0000 - #0140 #0000 - #0141 #0000 - #0142 #0000 - #0143 #0000 - #0144 #0000 - #0145 #0000 - #0146 #0000 - #0147 #0000 - #0148 #0000 - #0149 #0000 - #014A #0000 - #014B #0000 -../../../../as/YAKUWA/floatedit.casl: 62:OTLENG DS 1 - #014C #0000 -../../../../as/YAKUWA/floatedit.casl: 63:ZSFLAG DS 1 - #014D #0000 -../../../../as/YAKUWA/floatedit.casl: 64: END -input error! -input error! -input error! -\12,345,678.90 -\12,345,678.09 - \2,234,568.19 - \2,234,068.19 - \0.01 diff --git a/as/yakuwa/floatedit/Makefile b/as/yakuwa/floatedit/Makefile deleted file mode 100644 index 814ecce..0000000 --- a/as/yakuwa/floatedit/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -include ../CMD.mk # YACASL2DIR, CASL2 -CASL2FLAG = -sla -ASDIR = $(YACASL2DIR)/as/YAKUWA -ASFILE = $(ASDIR)/floatedit.casl -IN =