From: j8takagi Date: Sun, 14 Feb 2010 02:46:15 +0000 (+0900) Subject: CASLアプリを格納するas/app、未整理のCASLファイルを格納するmiscを作成。casl2libのテストを追加 X-Git-Tag: v0.1~35 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=330f6a8723886b86e745e91ffc3479eda9159b8d;p=YACASL2.git CASLアプリを格納するas/app、未整理のCASLファイルを格納するmiscを作成。casl2libのテストを追加 --- diff --git a/as/misc/count1.casl b/as/app/count1.casl similarity index 100% rename from as/misc/count1.casl rename to as/app/count1.casl diff --git a/as/misc/fib_outl.casl b/as/app/fib_outl.casl similarity index 100% rename from as/misc/fib_outl.casl rename to as/app/fib_outl.casl diff --git a/as/misc/mula_timestab.casl b/as/app/mula_timestab.casl similarity index 100% rename from as/misc/mula_timestab.casl rename to as/app/mula_timestab.casl diff --git a/as/misc/mull_timestab.casl b/as/app/mull_timestab.casl similarity index 100% rename from as/misc/mull_timestab.casl rename to as/app/mull_timestab.casl diff --git a/as/misc/misc_count1/0.txt b/as/app/test/count1/0.txt similarity index 81% rename from as/misc/misc_count1/0.txt rename to as/app/test/count1/0.txt index 029f1d1..668b5d7 100644 --- a/as/misc/misc_count1/0.txt +++ b/as/app/test/count1/0.txt @@ -1,4 +1,4 @@ -../../../../casl2 ../../../../as/FUNC/count1_call.casl ../../../../as/FUNC/count1.casl ../../../../as/FUNC/outa.casl +../../../../casl2 count1.casl ../../../../as/app/count1.casl ../../../../as/casl2lib/outa.casl 0 1 1 diff --git a/as/app/test/count1/Makefile b/as/app/test/count1/Makefile new file mode 100644 index 0000000..52d7da4 --- /dev/null +++ b/as/app/test/count1/Makefile @@ -0,0 +1,7 @@ +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +APPDIR = $(YACASL2DIR)/as/app +ASFILE = count1.casl $(APPDIR)/count1.casl $(LIBDIR)/outa.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/misc/count1_call.casl b/as/app/test/count1/count1.casl similarity index 100% rename from as/misc/count1_call.casl rename to as/app/test/count1/count1.casl diff --git a/as/misc/count1_call0.casl b/as/app/test/count1/count1_0.casl similarity index 100% rename from as/misc/count1_call0.casl rename to as/app/test/count1/count1_0.casl diff --git a/as/misc/test_fib_outl/0.txt b/as/app/test/fib_outl/0.txt similarity index 52% rename from as/misc/test_fib_outl/0.txt rename to as/app/test/fib_outl/0.txt index 7428cdd..00cd684 100644 --- a/as/misc/test_fib_outl/0.txt +++ b/as/app/test/fib_outl/0.txt @@ -1,4 +1,4 @@ -../../../casl2 ../fib_outl.casl ../../../as/casl2lib/outl.casl +../../../../casl2 ../../../../as/app/fib_outl.casl ../../../../as/casl2lib/outl.casl 0 1 1 diff --git a/as/misc/test_fib_outl/Makefile b/as/app/test/fib_outl/Makefile similarity index 53% rename from as/misc/test_fib_outl/Makefile rename to as/app/test/fib_outl/Makefile index b525c51..9008f1b 100644 --- a/as/misc/test_fib_outl/Makefile +++ b/as/app/test/fib_outl/Makefile @@ -1,6 +1,7 @@ -YACASL2DIR= ../../.. +YACASL2DIR= ../../../.. CASL2 = $(YACASL2DIR)/casl2 CASL2LIBDIR = $(YACASL2DIR)/as/casl2lib -ASFILE = ../fib_outl.casl $(CASL2LIBDIR)/outl.casl +APPDIR = $(YACASL2DIR)/as/app +ASFILE = $(APPDIR)/fib_outl.casl $(CASL2LIBDIR)/outl.casl CMD = $(CASL2) $(ASFILE) include $(YACASL2DIR)/test/TEST.mk diff --git a/as/casl2lib/max.casl b/as/casl2lib/max.casl new file mode 100644 index 0000000..da82da6 --- /dev/null +++ b/as/casl2lib/max.casl @@ -0,0 +1,23 @@ +;;; 連続した複数のWORD値の中から、最大値を返す +;;; 入力: GR1: WORD値を格納したアドレス GR2: 値の個数 +;;; 出力: GR0: 最大値 +MAX START + RPUSH + LD GR0,0,GR1 ; MAX <- GR1アドレスの値 + ST GR0,MAX ; ↓ + LAD GR3,0 ; GR3:インデックス 初期化 +S1 CPA GR3,GR2 ; ループ先頭。(GR2 = GR3)の場合、終了 + JZE RET ; ↓ + LAD GR1,1,GR1 ; GR1 <- GR1 + 1 + LD GR0,0,GR1 ; + CPA GR0,MAX ; + JMI S2 ; + JZE S2 ; + ST GR0,MAX ; +S2 LAD GR3,1,GR3 ; + JUMP S1 ; +RET LD GR0,MAX ; + RPOP + RET +MAX DS 1 ; 最小値を格納 + END diff --git a/as/casl2lib/test/Test.log b/as/casl2lib/test/Test.log new file mode 100644 index 0000000..d993fbc --- /dev/null +++ b/as/casl2lib/test/Test.log @@ -0,0 +1,13 @@ +abs: Test Success 2010-02-14 09:43:43 +addl32: Test Success 2010-02-14 09:43:43 +divl: Test Success 2010-02-14 09:43:45 +inl: Test Success 2010-02-14 09:43:45 +minim: Test Failure 2010-02-14 09:43:45 +mula: Test Success 2010-02-14 09:43:46 +mull: Test Success 2010-02-14 09:43:47 +outa: Test Success 2010-02-14 09:43:47 +outb_call: Test Success 2010-02-12 01:13:06 +outd_q15_call: Test Success 2010-02-12 01:13:06 +outl_call: Test Success 2010-02-12 01:13:06 +rev_call: Test Success 2010-02-12 01:13:07 +sum_call: Test Success 2010-02-12 01:13:08 diff --git a/as/casl2lib/test/abs/1.txt b/as/casl2lib/test/abs/1.txt new file mode 100644 index 0000000..727ae50 --- /dev/null +++ b/as/casl2lib/test/abs/1.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 index decee5f..d68df5c 100644 --- a/as/casl2lib/test/abs/Makefile +++ b/as/casl2lib/test/abs/Makefile @@ -3,4 +3,4 @@ CASL2 = $(YACASL2DIR)/casl2 LIBDIR = $(YACASL2DIR)/as/casl2lib ASFILE = abs.casl $(LIBDIR)/outa.casl CMD = $(CASL2) $(ASFILE) -include $(YACASL2DIR)/test/TEST.mk +include $(YACASL2DIR)/test/integration/casl2/TEST.mk diff --git a/as/casl2lib/test/abs/report.txt b/as/casl2lib/test/abs/report.txt new file mode 100644 index 0000000..19f888e --- /dev/null +++ b/as/casl2lib/test/abs/report.txt @@ -0,0 +1 @@ +abs: Test Success 2010-02-14 11:42:51 diff --git a/as/casl2lib/test/addl32/1.txt b/as/casl2lib/test/addl32/1.txt new file mode 100644 index 0000000..520fa7a --- /dev/null +++ b/as/casl2lib/test/addl32/1.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 index 96a4411..79bb14e 100644 --- a/as/casl2lib/test/addl32/Makefile +++ b/as/casl2lib/test/addl32/Makefile @@ -3,4 +3,4 @@ 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 +include $(YACASL2DIR)/test/integration/casl2/TEST.mk diff --git a/as/casl2lib/test/addl32/addl32_0/0.txt b/as/casl2lib/test/addl32/addl32_0/0.txt new file mode 100644 index 0000000..a140985 --- /dev/null +++ b/as/casl2lib/test/addl32/addl32_0/0.txt @@ -0,0 +1 @@ +../../../../../casl2 addl32_0.casl ../../../../../as/casl2lib/addl32.casl diff --git a/as/casl2lib/test/addl32/addl32_0/Makefile b/as/casl2lib/test/addl32/addl32_0/Makefile new file mode 100644 index 0000000..6c38cd5 --- /dev/null +++ b/as/casl2lib/test/addl32/addl32_0/Makefile @@ -0,0 +1,6 @@ +YACASL2DIR= ../../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = addl32_0.casl $(LIBDIR)/addl32.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/integration/casl2/TEST.mk diff --git a/as/casl2lib/test/addl32/report.txt b/as/casl2lib/test/addl32/report.txt new file mode 100644 index 0000000..a41f059 --- /dev/null +++ b/as/casl2lib/test/addl32/report.txt @@ -0,0 +1 @@ +addl32: Test Success 2010-02-14 11:42:51 diff --git a/as/misc/test_divl0/1.txt b/as/casl2lib/test/divl/1.txt similarity index 99% rename from as/misc/test_divl0/1.txt rename to as/casl2lib/test/divl/1.txt index ed9b1d4..9c60439 100644 --- a/as/misc/test_divl0/1.txt +++ b/as/casl2lib/test/divl/1.txt @@ -1,4 +1,4 @@ -../../../../casl2 ../../../../as/FUNC/divl_call.casl ../../../../as/FUNC/divl0.casl ../../../../as/FUNC/outl_main.casl ../../../../as/FUNC/rev.casl +../../../../casl2 divl.casl ../../../../as/casl2lib/outl.casl -------------------- 100 0 diff --git a/as/casl2lib/test/divl/Makefile b/as/casl2lib/test/divl/Makefile index 3644cb3..aa42833 100644 --- a/as/casl2lib/test/divl/Makefile +++ b/as/casl2lib/test/divl/Makefile @@ -3,4 +3,4 @@ CASL2 = $(YACASL2DIR)/casl2 LIBDIR = $(YACASL2DIR)/as/casl2lib ASFILE = divl.casl $(LIBDIR)/outl.casl # DIVLは、outl.caslに含まれる CMD = $(CASL2) $(ASFILE) -include $(YACASL2DIR)/test/TEST.mk +include $(YACASL2DIR)/test/integration/casl2/TEST.mk diff --git a/as/casl2lib/test/divl/report.txt b/as/casl2lib/test/divl/report.txt new file mode 100644 index 0000000..62343e9 --- /dev/null +++ b/as/casl2lib/test/divl/report.txt @@ -0,0 +1 @@ +divl: Test Success 2010-02-14 11:42:53 diff --git a/as/casl2lib/test/inl/1.txt b/as/casl2lib/test/inl/1.txt new file mode 100644 index 0000000..c7e7298 --- /dev/null +++ b/as/casl2lib/test/inl/1.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/report.txt b/as/casl2lib/test/inl/report.txt new file mode 100644 index 0000000..6c467f8 --- /dev/null +++ b/as/casl2lib/test/inl/report.txt @@ -0,0 +1 @@ +inl: Test Success 2010-02-14 11:42:53 diff --git a/as/casl2lib/test/minim/0.txt b/as/casl2lib/test/minim/0.txt index d36a803..b085c0c 100644 --- a/as/casl2lib/test/minim/0.txt +++ b/as/casl2lib/test/minim/0.txt @@ -1,2 +1,2 @@ -../../../../casl2 ../../../../as/FUNC/minim_call.casl ../../../../as/FUNC/minim.casl ../../../../as/FUNC/outa.casl +../../../../casl2 minim.casl ../../../../as/casl2lib/minim.casl ../../../../as/casl2lib/outa.casl -39 diff --git a/as/casl2lib/test/minim/1.txt b/as/casl2lib/test/minim/1.txt index d36a803..b085c0c 100644 --- a/as/casl2lib/test/minim/1.txt +++ b/as/casl2lib/test/minim/1.txt @@ -1,2 +1,2 @@ -../../../../casl2 ../../../../as/FUNC/minim_call.casl ../../../../as/FUNC/minim.casl ../../../../as/FUNC/outa.casl +../../../../casl2 minim.casl ../../../../as/casl2lib/minim.casl ../../../../as/casl2lib/outa.casl -39 diff --git a/as/casl2lib/test/minim/Makefile b/as/casl2lib/test/minim/Makefile index b0bf0c6..172bb35 100644 --- a/as/casl2lib/test/minim/Makefile +++ b/as/casl2lib/test/minim/Makefile @@ -1,6 +1,6 @@ -include ../CMD.mk # YACASL2DIR, CASL2 -ASDIR = $(YACASL2DIR)/as/casl2lib_test +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 LIBDIR = $(YACASL2DIR)/as/casl2lib -ASFILE = $(ASDIR)/minim_call.casl $(LIBDIR)/minim.casl $(LIBDIR)/outa.casl +ASFILE = minim.casl $(LIBDIR)/minim.casl $(LIBDIR)/outa.casl CMD = $(CASL2) $(ASFILE) -include ../TEST.mk +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/casl2lib/test/minim/minim.casl b/as/casl2lib/test/minim/minim.casl index 71d6d47..d74aa34 100644 --- a/as/casl2lib/test/minim/minim.casl +++ b/as/casl2lib/test/minim/minim.casl @@ -1,4 +1,4 @@ -;;; casl2 minim_call.casl minim.casl outa.casl +;;; casl2 minim.casl $(LIBDIR)/minim.casl $(LIBDIR)/outa.casl MAIN START LAD GR1,DATA LD GR2,CNT diff --git a/as/casl2lib/test/minim/report.txt b/as/casl2lib/test/minim/report.txt index 26311eb..aeed527 100644 --- a/as/casl2lib/test/minim/report.txt +++ b/as/casl2lib/test/minim/report.txt @@ -1 +1 @@ -minim_call: Test Success 2010-02-12 01:12:43 +minim: Test Success 2010-02-14 11:42:53 diff --git a/as/misc/mula0_call/1.txt b/as/casl2lib/test/mula/1.txt similarity index 99% rename from as/misc/mula0_call/1.txt rename to as/casl2lib/test/mula/1.txt index cdb1ede..2936628 100644 --- a/as/misc/mula0_call/1.txt +++ b/as/casl2lib/test/mula/1.txt @@ -1,4 +1,4 @@ -../../../../casl2 -M640 ../../../../as/FUNC/mula_call.casl ../../../../as/FUNC/mula0.casl ../../../../as/FUNC/outa.casl +../../../../casl2 -M640 mula.casl ../../../../as/casl2lib/mula.casl ../../../../as/casl2lib/outa.casl 0 0 0 @@ -45,7 +45,7 @@ -------------------- 0 -32768 -Warning: overflow +0 -------------------- 0 -32767 @@ -969,7 +969,7 @@ Warning: overflow -------------------- -32768 0 -Warning: overflow +0 -------------------- -32768 1 diff --git a/as/casl2lib/test/mula/Makefile b/as/casl2lib/test/mula/Makefile index a365298..6952db9 100644 --- a/as/casl2lib/test/mula/Makefile +++ b/as/casl2lib/test/mula/Makefile @@ -4,4 +4,4 @@ CASL2FLAG = -M640 LIBDIR = $(YACASL2DIR)/as/casl2lib ASFILE = mula.casl $(LIBDIR)/mula.casl $(LIBDIR)/outa.casl CMD = $(CASL2) $(CASL2FLAG) $(ASFILE) -include $(YACASL2DIR)/test/TEST.mk +include $(YACASL2DIR)/test/integration/casl2/TEST.mk diff --git a/as/casl2lib/test/mula/report.txt b/as/casl2lib/test/mula/report.txt new file mode 100644 index 0000000..4252442 --- /dev/null +++ b/as/casl2lib/test/mula/report.txt @@ -0,0 +1 @@ +mula: Test Success 2010-02-14 11:42:55 diff --git a/as/misc/mull0_call/1.txt b/as/casl2lib/test/mull/1.txt similarity index 63% rename from as/misc/mull0_call/1.txt rename to as/casl2lib/test/mull/1.txt index 0c4a537..8666054 100644 --- a/as/misc/mull0_call/1.txt +++ b/as/casl2lib/test/mull/1.txt @@ -1,605 +1,484 @@ -../../../../casl2 ../../../../as/FUNC/mull_call.casl ../../../../as/FUNC/mull0.casl ../../../../as/FUNC/outl.casl --------------------- +../../../../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 index d7fd994..77fb9a9 100644 --- a/as/casl2lib/test/mull/Makefile +++ b/as/casl2lib/test/mull/Makefile @@ -3,4 +3,4 @@ CASL2 = $(YACASL2DIR)/casl2 LIBDIR = $(YACASL2DIR)/as/casl2lib ASFILE = mull.casl $(LIBDIR)/mull.casl $(LIBDIR)/outl.casl CMD = $(CASL2) $(ASFILE) -include $(YACASL2DIR)/test/TEST.mk +include $(YACASL2DIR)/test/integration/casl2/TEST.mk diff --git a/as/casl2lib/test/mull/report.txt b/as/casl2lib/test/mull/report.txt new file mode 100644 index 0000000..fc7eea4 --- /dev/null +++ b/as/casl2lib/test/mull/report.txt @@ -0,0 +1 @@ +mull: Test Success 2010-02-14 11:42:56 diff --git a/as/casl2lib/test/outa/0.txt b/as/casl2lib/test/outa/0.txt index 3cf5382..92e788c 100644 --- a/as/casl2lib/test/outa/0.txt +++ b/as/casl2lib/test/outa/0.txt @@ -1,4 +1,4 @@ -../../../../casl2 ../../../../as/FUNC/outa_call.casl ../../../../as/FUNC/outa.casl +../../../../casl2 outa.casl ../../../../as/casl2lib/outa.casl 0 1 2 diff --git a/as/casl2lib/test/outa/1.txt b/as/casl2lib/test/outa/1.txt index 3cf5382..92e788c 100644 --- a/as/casl2lib/test/outa/1.txt +++ b/as/casl2lib/test/outa/1.txt @@ -1,4 +1,4 @@ -../../../../casl2 ../../../../as/FUNC/outa_call.casl ../../../../as/FUNC/outa.casl +../../../../casl2 outa.casl ../../../../as/casl2lib/outa.casl 0 1 2 diff --git a/as/casl2lib/test/outa/Makefile b/as/casl2lib/test/outa/Makefile index 3747f3c..2087ad6 100644 --- a/as/casl2lib/test/outa/Makefile +++ b/as/casl2lib/test/outa/Makefile @@ -1,5 +1,6 @@ -include ../CMD.mk # YACASL2DIR, CASL2 -ASDIR = $(YACASL2DIR)/as/FUNC -ASFILE = $(ASDIR)/outa_call.casl $(ASDIR)/outa.casl +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = outa.casl $(LIBDIR)/outa.casl CMD = $(CASL2) $(ASFILE) -include ../TEST.mk +include $(YACASL2DIR)/test/integration/casl2/TEST.mk diff --git a/as/casl2lib/test/outa/outa_call.casl b/as/casl2lib/test/outa/outa.casl similarity index 100% rename from as/casl2lib/test/outa/outa_call.casl rename to as/casl2lib/test/outa/outa.casl diff --git a/as/casl2lib/test/outa/outa_call1.casl b/as/casl2lib/test/outa/outa0/outa0.casl similarity index 100% rename from as/casl2lib/test/outa/outa_call1.casl rename to as/casl2lib/test/outa/outa0/outa0.casl diff --git a/as/casl2lib/test/outa/outa_call2.casl b/as/casl2lib/test/outa/outa_ffff/outa_ffff.casl similarity index 100% rename from as/casl2lib/test/outa/outa_call2.casl rename to as/casl2lib/test/outa/outa_ffff/outa_ffff.casl diff --git a/as/casl2lib/test/outa/report.txt b/as/casl2lib/test/outa/report.txt index 6fa3d4c..5afb203 100644 --- a/as/casl2lib/test/outa/report.txt +++ b/as/casl2lib/test/outa/report.txt @@ -1 +1 @@ -outa_call: Test Success 2010-02-12 01:13:06 +outa: Test Success 2010-02-14 11:42:56 diff --git a/as/casl2lib/test/outb/0.txt b/as/casl2lib/test/outb/0.txt index 042c126..5ca44fc 100644 --- a/as/casl2lib/test/outb/0.txt +++ b/as/casl2lib/test/outb/0.txt @@ -1,4 +1,4 @@ -../../../../casl2 ../../../../as/FUNC/outb_call.casl ../../../../as/FUNC/outb.casl +../../../../casl2 outb.casl ../../../../as/casl2lib/outb.casl 0000000000000000 0000000000000001 0000000000000010 diff --git a/as/casl2lib/test/outb/1.txt b/as/casl2lib/test/outb/1.txt index 042c126..5ca44fc 100644 --- a/as/casl2lib/test/outb/1.txt +++ b/as/casl2lib/test/outb/1.txt @@ -1,4 +1,4 @@ -../../../../casl2 ../../../../as/FUNC/outb_call.casl ../../../../as/FUNC/outb.casl +../../../../casl2 outb.casl ../../../../as/casl2lib/outb.casl 0000000000000000 0000000000000001 0000000000000010 diff --git a/as/casl2lib/test/outb/Makefile b/as/casl2lib/test/outb/Makefile index 0bb8de2..d7ef5ed 100644 --- a/as/casl2lib/test/outb/Makefile +++ b/as/casl2lib/test/outb/Makefile @@ -1,5 +1,6 @@ -include ../CMD.mk # YACASL2DIR, CASL2 -ASDIR = $(YACASL2DIR)/as/FUNC -ASFILE = $(ASDIR)/outb_call.casl $(ASDIR)/outb.casl +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = outb.casl $(LIBDIR)/outb.casl CMD = $(CASL2) $(ASFILE) -include ../TEST.mk +include $(YACASL2DIR)/test/integration/casl2/TEST.mk diff --git a/as/casl2lib/test/outb/outb_call.casl b/as/casl2lib/test/outb/outb.casl similarity index 100% rename from as/casl2lib/test/outb/outb_call.casl rename to as/casl2lib/test/outb/outb.casl diff --git a/as/casl2lib/test/outb/report.txt b/as/casl2lib/test/outb/report.txt index 5d84ab9..ea022ca 100644 --- a/as/casl2lib/test/outb/report.txt +++ b/as/casl2lib/test/outb/report.txt @@ -1 +1 @@ -outb_call: Test Success 2010-02-12 01:13:06 +outb: Test Success 2010-02-14 11:42:57 diff --git a/as/casl2lib/test/outd_q15/0.txt b/as/casl2lib/test/outd_q15/0.txt index 2c0a4cd..c9a49d3 100644 --- a/as/casl2lib/test/outd_q15/0.txt +++ b/as/casl2lib/test/outd_q15/0.txt @@ -1,4 +1,4 @@ -../../../../casl2 ../../../../as/FUNC/outd_q15_call.casl ../../../../as/FUNC/outd_q15.casl +../../../../casl2 outd_q15.casl ../../../../as/casl2lib/outd_q15.casl 0.999969482421875 0.5 0.25 diff --git a/as/casl2lib/test/outd_q15/1.txt b/as/casl2lib/test/outd_q15/1.txt index 2c0a4cd..c9a49d3 100644 --- a/as/casl2lib/test/outd_q15/1.txt +++ b/as/casl2lib/test/outd_q15/1.txt @@ -1,4 +1,4 @@ -../../../../casl2 ../../../../as/FUNC/outd_q15_call.casl ../../../../as/FUNC/outd_q15.casl +../../../../casl2 outd_q15.casl ../../../../as/casl2lib/outd_q15.casl 0.999969482421875 0.5 0.25 diff --git a/as/casl2lib/test/outd_q15/Makefile b/as/casl2lib/test/outd_q15/Makefile index 3a82670..7947f76 100644 --- a/as/casl2lib/test/outd_q15/Makefile +++ b/as/casl2lib/test/outd_q15/Makefile @@ -1,5 +1,6 @@ -include ../CMD.mk # YACASL2DIR, CASL2 -ASDIR = $(YACASL2DIR)/as/FUNC -ASFILE = $(ASDIR)/outd_q15_call.casl $(ASDIR)/outd_q15.casl +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = outd_q15.casl $(LIBDIR)/outd_q15.casl CMD = $(CASL2) $(ASFILE) -include ../TEST.mk +include $(YACASL2DIR)/test/integration/casl2/TEST.mk diff --git a/as/casl2lib/test/outd_q15/outd_q15_call.casl b/as/casl2lib/test/outd_q15/outd_q15.casl similarity index 100% rename from as/casl2lib/test/outd_q15/outd_q15_call.casl rename to as/casl2lib/test/outd_q15/outd_q15.casl diff --git a/as/casl2lib/test/outd_q15/outd_q15_call0.casl b/as/casl2lib/test/outd_q15/outd_q15_0.casl similarity index 100% rename from as/casl2lib/test/outd_q15/outd_q15_call0.casl rename to as/casl2lib/test/outd_q15/outd_q15_0.casl diff --git a/as/casl2lib/test/outd_q15/report.txt b/as/casl2lib/test/outd_q15/report.txt index 3eb8090..e42e43f 100644 --- a/as/casl2lib/test/outd_q15/report.txt +++ b/as/casl2lib/test/outd_q15/report.txt @@ -1 +1 @@ -outd_q15_call: Test Success 2010-02-12 01:13:06 +outd_q15: Test Success 2010-02-14 11:42:57 diff --git a/as/casl2lib/test/outl/0.txt b/as/casl2lib/test/outl/0.txt index 4b14c37..f8aa7b9 100644 --- a/as/casl2lib/test/outl/0.txt +++ b/as/casl2lib/test/outl/0.txt @@ -1,4 +1,4 @@ -../../../../casl2 ../../../../as/FUNC/outl_call.casl ../../../../as/FUNC/outl.casl +../../../../casl2 outl.casl ../../../../as/casl2lib/outl.casl 0 1 2 diff --git a/as/casl2lib/test/outl/1.txt b/as/casl2lib/test/outl/1.txt index 4b14c37..f8aa7b9 100644 --- a/as/casl2lib/test/outl/1.txt +++ b/as/casl2lib/test/outl/1.txt @@ -1,4 +1,4 @@ -../../../../casl2 ../../../../as/FUNC/outl_call.casl ../../../../as/FUNC/outl.casl +../../../../casl2 outl.casl ../../../../as/casl2lib/outl.casl 0 1 2 diff --git a/as/casl2lib/test/outl/Makefile b/as/casl2lib/test/outl/Makefile index 1af77f7..a550560 100644 --- a/as/casl2lib/test/outl/Makefile +++ b/as/casl2lib/test/outl/Makefile @@ -1,5 +1,6 @@ -include ../CMD.mk # YACASL2DIR, CASL2 -ASDIR = $(YACASL2DIR)/as -ASFILE = $(ASDIR)/FUNC/outl_call.casl $(ASDIR)/FUNC/outl.casl +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = outl.casl $(LIBDIR)/outl.casl CMD = $(CASL2) $(ASFILE) -include ../TEST.mk +include $(YACASL2DIR)/test/integration/casl2/TEST.mk diff --git a/as/casl2lib/test/outl/outl_call.casl b/as/casl2lib/test/outl/outl.casl similarity index 100% rename from as/casl2lib/test/outl/outl_call.casl rename to as/casl2lib/test/outl/outl.casl diff --git a/as/casl2lib/test/outl/outl_call0.casl b/as/casl2lib/test/outl/outl_0.casl similarity index 100% rename from as/casl2lib/test/outl/outl_call0.casl rename to as/casl2lib/test/outl/outl_0.casl diff --git a/as/casl2lib/test/outl/outl_call1.casl b/as/casl2lib/test/outl/outl_1.casl similarity index 100% rename from as/casl2lib/test/outl/outl_call1.casl rename to as/casl2lib/test/outl/outl_1.casl diff --git a/as/casl2lib/test/outl/outl_call2.casl b/as/casl2lib/test/outl/outl_2.casl similarity index 100% rename from as/casl2lib/test/outl/outl_call2.casl rename to as/casl2lib/test/outl/outl_2.casl diff --git a/as/casl2lib/test/outl/report.txt b/as/casl2lib/test/outl/report.txt index db6b765..4cb9ef3 100644 --- a/as/casl2lib/test/outl/report.txt +++ b/as/casl2lib/test/outl/report.txt @@ -1 +1 @@ -outl_call: Test Success 2010-02-12 01:13:06 +outl: Test Success 2010-02-14 11:42:57 diff --git a/as/casl2lib/test/rev/0.txt b/as/casl2lib/test/rev/0.txt index 60268ad..2c2206f 100644 --- a/as/casl2lib/test/rev/0.txt +++ b/as/casl2lib/test/rev/0.txt @@ -1,3 +1,3 @@ -../../../../casl2 ../../../../as/FUNC/rev_call.casl ../../../../as/FUNC/rev.casl +../../../../casl2 rev.casl ../../../../as/casl2lib/rev.casl 12345 54321 diff --git a/as/casl2lib/test/rev/1.txt b/as/casl2lib/test/rev/1.txt index 60268ad..2c2206f 100644 --- a/as/casl2lib/test/rev/1.txt +++ b/as/casl2lib/test/rev/1.txt @@ -1,3 +1,3 @@ -../../../../casl2 ../../../../as/FUNC/rev_call.casl ../../../../as/FUNC/rev.casl +../../../../casl2 rev.casl ../../../../as/casl2lib/rev.casl 12345 54321 diff --git a/as/casl2lib/test/rev/Makefile b/as/casl2lib/test/rev/Makefile index 8239a50..2f2adef 100644 --- a/as/casl2lib/test/rev/Makefile +++ b/as/casl2lib/test/rev/Makefile @@ -1,5 +1,6 @@ -include ../CMD.mk # YACASL2DIR, CASL2 -ASDIR = $(YACASL2DIR)/as/FUNC -ASFILE = $(ASDIR)/rev_call.casl $(ASDIR)/rev.casl -CMD = $(CASL2) $(CASL2FLAG) $(ASFILE) -include ../TEST.mk +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +ASFILE = rev.casl $(LIBDIR)/rev.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/integration/casl2/TEST.mk diff --git a/as/casl2lib/test/rev/report.txt b/as/casl2lib/test/rev/report.txt index cd94214..9ad73d7 100644 --- a/as/casl2lib/test/rev/report.txt +++ b/as/casl2lib/test/rev/report.txt @@ -1 +1 @@ -rev_call: Test Success 2010-02-12 01:13:07 +rev: Test Success 2010-02-14 11:42:58 diff --git a/as/casl2lib/test/rev/rev_call.casl b/as/casl2lib/test/rev/rev.casl similarity index 100% rename from as/casl2lib/test/rev/rev_call.casl rename to as/casl2lib/test/rev/rev.casl diff --git a/as/macro/in/str.txt b/as/macro/in/str.txt deleted file mode 100644 index 6097ccb..0000000 --- a/as/macro/in/str.txt +++ /dev/null @@ -1 +0,0 @@ -1234567890abcdefghijkLMNOPQRST diff --git a/as/macro/in/test/Makefile b/as/macro/in/test/Makefile new file mode 100644 index 0000000..71a7fec --- /dev/null +++ b/as/macro/in/test/Makefile @@ -0,0 +1,17 @@ +YACASL2DIR=../../../.. +CASL2 = $(YACASL2DIR)/casl2 + +.PHPNY: check clean +check: clean report.txt +code_in_macro.txt: in_macro.casl + @$(CASL2) -O $^ && od -t x2 a.o >$@ +code_in_cmds.txt: in_cmds.casl + @$(CASL2) -O $^ && od -t x2 a.o >$@ +diff.txt: code_in_macro.txt code_in_cmds.txt + @-diff -c $^ >$@ 2>&1 +report.txt: diff.txt + @echo -n "Test " >$@; \ + if test ! -s $^; then echo -n "Success " >>$@; rm -f $^; else echo -n "Failure " >>$@; fi; \ + echo `date +"%F %T"` >>$@ +clean: + @rm -f code_in_macro.txt code_in_cmds.txt diff.txt report.txt a.o diff --git a/as/macro/in/intest1.casl b/as/macro/in/test/in_cmds.casl similarity index 74% rename from as/macro/in/intest1.casl rename to as/macro/in/test/in_cmds.casl index 2877bc8..6a7db18 100644 --- a/as/macro/in/intest1.casl +++ b/as/macro/in/test/in_cmds.casl @@ -1,3 +1,4 @@ +;;; マクロ命令INが生成する命令群 MAIN START PUSH 0,GR1 PUSH 0,GR2 @@ -6,9 +7,7 @@ MAIN START SVC 1 POP GR2 POP GR1 - IN IBUF,LEN - OUT IBUF,LEN RET -IBUF DS 100 +IBUF DS 8 LEN DC 1 END diff --git a/as/macro/in/intest0.casl b/as/macro/in/test/in_macro.casl similarity index 64% rename from as/macro/in/intest0.casl rename to as/macro/in/test/in_macro.casl index 43a89e0..f6fe177 100644 --- a/as/macro/in/intest0.casl +++ b/as/macro/in/test/in_macro.casl @@ -1,7 +1,7 @@ +;;; マクロ命令IN MAIN START IN IBUF,LEN - OUT IBUF,LEN RET -IBUF DS 100 +IBUF DS 8 LEN DC 1 END diff --git a/as/macro/out/test/Makefile b/as/macro/out/test/Makefile new file mode 100644 index 0000000..f232a40 --- /dev/null +++ b/as/macro/out/test/Makefile @@ -0,0 +1,17 @@ +YACASL2DIR=../../../.. +CASL2 = $(YACASL2DIR)/casl2 + +.PHPNY: check clean +check: clean report.txt +code_out_macro.txt: out_macro.casl + @$(CASL2) -O $^ && od -t x2 a.o >$@ +code_out_cmds.txt: out_cmds.casl + @$(CASL2) -O $^ && od -t x2 a.o >$@ +diff.txt: code_out_macro.txt code_out_cmds.txt + @-diff -c $^ >$@ 2>&1 +report.txt: diff.txt + @echo -n "Test " >$@; \ + if test ! -s $^; then echo -n "Success " >>$@; rm -f $^; else echo -n "Failure " >>$@; fi; \ + echo `date +"%F %T"` >>$@ +clean: + @rm -f code_out_macro.txt code_out_cmds.txt diff.txt report.txt a.o diff --git a/as/macro/out/test/a.o b/as/macro/out/test/a.o new file mode 100644 index 0000000..2de45a6 Binary files /dev/null and b/as/macro/out/test/a.o differ diff --git a/as/macro/out/test/code_out_cmds.txt b/as/macro/out/test/code_out_cmds.txt new file mode 100644 index 0000000..888e5c5 --- /dev/null +++ b/as/macro/out/test/code_out_cmds.txt @@ -0,0 +1,5 @@ +0000000 7001 0000 7002 0000 1210 0013 1220 0016 +0000020 f000 0002 1210 0017 1220 0018 f000 0002 +0000040 7120 7110 8100 0061 0062 0063 0003 000a +0000060 0001 +0000062 diff --git a/as/macro/out/test/code_out_macro.txt b/as/macro/out/test/code_out_macro.txt new file mode 100644 index 0000000..888e5c5 --- /dev/null +++ b/as/macro/out/test/code_out_macro.txt @@ -0,0 +1,5 @@ +0000000 7001 0000 7002 0000 1210 0013 1220 0016 +0000020 f000 0002 1210 0017 1220 0018 f000 0002 +0000040 7120 7110 8100 0061 0062 0063 0003 000a +0000060 0001 +0000062 diff --git a/as/macro/out/hello1.casl b/as/macro/out/test/out_cmds.casl similarity index 83% rename from as/macro/out/hello1.casl rename to as/macro/out/test/out_cmds.casl index a697251..c35f5b0 100644 --- a/as/macro/out/hello1.casl +++ b/as/macro/out/test/out_cmds.casl @@ -10,6 +10,6 @@ MAIN START POP GR2 POP GR1 RET -OBUF DC 'Hello, World!' -LEN DC 13 +OBUF DC 'abc' +LEN DC 3 END diff --git a/as/macro/out/hello0.casl b/as/macro/out/test/out_macro.casl similarity index 55% rename from as/macro/out/hello0.casl rename to as/macro/out/test/out_macro.casl index e02055c..7542272 100644 --- a/as/macro/out/hello0.casl +++ b/as/macro/out/test/out_macro.casl @@ -1,6 +1,6 @@ MAIN START OUT OBUF,LEN RET -OBUF DC 'Hello, World!' -LEN DC 13 +OBUF DC 'abc' +LEN DC 3 END diff --git a/as/macro/out/test/report.txt b/as/macro/out/test/report.txt new file mode 100644 index 0000000..59bd41a --- /dev/null +++ b/as/macro/out/test/report.txt @@ -0,0 +1 @@ +Test Success 2010-02-14 10:27:01 diff --git a/as/misc/divl0.casl b/as/misc/divl0.casl index 28357a9..7eb4d64 100644 --- a/as/misc/divl0.casl +++ b/as/misc/divl0.casl @@ -2,9 +2,9 @@ ;;; 入力 GR1:被除数 GR2:除数 ;;; 出力 GR0:商 GR3:剰余 ;;; GR2が0の場合は、GR0、GR3とも0になり、オーバーフロー -DIVL START +DIVL0 START PUSH 0,GR1 - AND GR2,GR2 ; (GR2 = 0)の場合、DYZへジャンプ + AND GR2,GR2 ; (GR2 = 0)の場合、DIVZEROへジャンプ JZE DIVZERO ; ↓ LAD GR0,0 ; GR0を初期化 LD GR3,GR1 ; GR3 <- GR1 diff --git a/as/misc/fib_outl/1.txt b/as/misc/fib_outl/1.txt deleted file mode 100644 index 7d74a98..0000000 --- a/as/misc/fib_outl/1.txt +++ /dev/null @@ -1,26 +0,0 @@ -../../../../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 deleted file mode 100644 index 1389d97..0000000 --- a/as/misc/fib_outl/report.txt +++ /dev/null @@ -1 +0,0 @@ -fib_outl: Test Success 2010-02-12 01:12:42 diff --git a/as/misc/hanoi/0.txt b/as/misc/hanoi/0.txt deleted file mode 100644 index c204ebb..0000000 --- a/as/misc/hanoi/0.txt +++ /dev/null @@ -1,211 +0,0 @@ -../../../../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 deleted file mode 100644 index fa8412a..0000000 --- a/as/misc/hanoi/1.txt +++ /dev/null @@ -1,211 +0,0 @@ -../../../../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/misc/hanoi/Makefile b/as/misc/hanoi/Makefile deleted file mode 100644 index b34f79d..0000000 --- a/as/misc/hanoi/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -include ../CMD.mk # YACASL2DIR, CASL2 -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 deleted file mode 100644 index 76c9d77..0000000 --- a/as/misc/hanoi/report.txt +++ /dev/null @@ -1 +0,0 @@ -hanoi: Test Success 2010-02-12 01:12:42 diff --git a/as/misc/in_out.casl b/as/misc/io.casl similarity index 100% rename from as/misc/in_out.casl rename to as/misc/io.casl diff --git a/as/misc/iotest/0.txt b/as/misc/iotest/0.txt deleted file mode 100644 index d1656c2..0000000 --- a/as/misc/iotest/0.txt +++ /dev/null @@ -1,285 +0,0 @@ -../../../../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 deleted file mode 100644 index d1656c2..0000000 --- a/as/misc/iotest/1.txt +++ /dev/null @@ -1,285 +0,0 @@ -../../../../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 deleted file mode 100644 index 3aa55d8..0000000 --- a/as/misc/iotest/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index fce25ff..0000000 --- a/as/misc/iotest/report.txt +++ /dev/null @@ -1 +0,0 @@ -iotest: Test Success 2010-02-12 01:12:43 diff --git a/as/misc/misc_count1/Makefile b/as/misc/misc_count1/Makefile deleted file mode 100644 index 5f8544b..0000000 --- a/as/misc/misc_count1/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 3957e4f..0000000 --- a/as/misc/misc_out_hello/0.txt +++ /dev/null @@ -1,587 +0,0 @@ -../../../../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 deleted file mode 100644 index ea9a465..0000000 --- a/as/misc/misc_out_hello/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 138fe8c..0000000 --- a/as/misc/mula0.casl +++ /dev/null @@ -1,53 +0,0 @@ -;GR1の値とGR2の値の積をGR0に格納 -MULA START - RPUSH - LAD GR3,0 ; インデックス - LAD GR4,0 ; マイナスフラグ -CHK1 CALL CHKVAL ; (GR1 < 0)の場合は正負を反転させ、GR0 <- 1 - JOV MFIN - LD GR4,GR0 ; マイナスフラグをオン -CHK2 PUSH 0,GR1 ; GR1を退避 - LD GR1,GR2 ; GR2をGR1へロード - CALL CHKVAL ; (GR1 < 0)の場合は正負を反転させ、GR0 <- 1 - JOV C2OV - LD GR2,GR1 ; GR1をGR2へロード - XOR GR4,GR0 ; マイナスフラグを反転 - POP GR1 ; GR1を復元 - LAD GR0,0 ; 積 - JUMP MLOOP -C2OV POP GR1 ; - JUMP MFIN -MLOOP CPA GR2,GR3 ; ループ先頭。(GR2 = GR3)の場合、ループ脱出 - JZE MMIN ; ↓ - ADDA GR0,GR1 ; GR0 <- GR0 + GR1 - JOV MFIN ; オーバーフローした場合、ループ脱出 - LAD GR3,1,GR3 ; GR3 <- GR3 + 1 - JUMP MLOOP ; ループ終端 -MMIN AND GR4,GR4 ; マイナスフラグがオフの場合、MFINへジャンプ - JZE MFIN ; ↓ - PUSH 0,GR1 ; GR1を退避 - LD GR1,GR0 ; GR1にGR0をロード - CALL MABS ; GR1を絶対値に変換 - JOV MMF ; オーバーフロー(GR1 = -32768)の場合、MMFへジャンプ - LD GR0,GR1 ; GR0にGR1をロード -MMF POP GR1 ; GR1を復元 -MFIN RPOP - RET - END -;;; GR1が0未満の場合は、絶対値に変換し、GR0に1を設定 -CHKVAL START - LAD GR0,0 - AND GR1,GR1 ; (GR1 >= 0)の場合は、CFINへジャンプ - JPL CFIN ; ↓ - JZE CFIN ; ↓ - LAD GR0,1 ; GR0に1をロード - CALL MABS ; GR1を絶対値に変換 -CFIN RET - END -;;; GR1の値の正負を反転させる。 -;;; 例: -10 -> 10、10 -> -10 -MABS START - XOR GR1,=#FFFF ; GR1のビット値を反転 - ADDA GR1,=1 ; GR1 <- GR1 + 1 - RET - END diff --git a/as/misc/mula0_call/0.txt b/as/misc/mula0_call/0.txt deleted file mode 100644 index cdb1ede..0000000 --- a/as/misc/mula0_call/0.txt +++ /dev/null @@ -1,1937 +0,0 @@ -../../../../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 deleted file mode 100644 index a2306ca..0000000 --- a/as/misc/mula0_call/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 2e28f5e..0000000 --- a/as/misc/mula0_call/report.txt +++ /dev/null @@ -1 +0,0 @@ -mula0_call: Test Success 2010-02-12 01:12:57 diff --git a/as/misc/mull0_call/Makefile b/as/misc/mull0_call/Makefile deleted file mode 100644 index 6897272..0000000 --- a/as/misc/mull0_call/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index c6348ff..0000000 --- a/as/misc/mull0_call/report.txt +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 8a9a2a4..0000000 --- a/as/misc/mull1_call/0.txt +++ /dev/null @@ -1,606 +0,0 @@ -../../../../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 deleted file mode 100644 index 8a9a2a4..0000000 --- a/as/misc/mull1_call/1.txt +++ /dev/null @@ -1,606 +0,0 @@ -../../../../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 deleted file mode 100644 index 3e862b6..0000000 --- a/as/misc/mull1_call/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 07bf327..0000000 --- a/as/misc/mull1_call/report.txt +++ /dev/null @@ -1 +0,0 @@ -mull1_call: Test Success 2010-02-12 01:13:06 diff --git a/as/misc/test_divl0/0.txt b/as/misc/test/divl0/0.txt similarity index 99% rename from as/misc/test_divl0/0.txt rename to as/misc/test/divl0/0.txt index ed9b1d4..376c670 100644 --- a/as/misc/test_divl0/0.txt +++ b/as/misc/test/divl0/0.txt @@ -1,4 +1,4 @@ -../../../../casl2 ../../../../as/FUNC/divl_call.casl ../../../../as/FUNC/divl0.casl ../../../../as/FUNC/outl_main.casl ../../../../as/FUNC/rev.casl +../../../../casl2 divl.casl ../../../../as/misc/divl0.casl ../../../../as/casl2lib/outl.casl -------------------- 100 0 diff --git a/as/misc/test/divl0/Makefile b/as/misc/test/divl0/Makefile new file mode 100644 index 0000000..b6cc153 --- /dev/null +++ b/as/misc/test/divl0/Makefile @@ -0,0 +1,7 @@ +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +MISCDIR = $(YACASL2DIR)/as/misc +ASFILE = divl.casl $(MISCDIR)/divl0.casl $(LIBDIR)/outl.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/misc/test/divl0/divl.casl b/as/misc/test/divl0/divl.casl new file mode 100644 index 0000000..e988bea --- /dev/null +++ b/as/misc/test/divl0/divl.casl @@ -0,0 +1,38 @@ +MAIN START + LD GR1,XMAX +LOOPX CPA GR1,XMIN + JMI FIN + OUT SEP,SLEN + LD GR2,YMIN +LOOPY CPL GR2,YMAX + JPL XNEXT + CALL OUTL + PUSH 0,GR1 + LD GR1,GR2 + CALL OUTL + POP GR1 + CALL DIVL + JOV WOV + PUSH 0,GR1 + LD GR1,GR0 + CALL OUTL + LD GR1,GR3 + CALL OUTL + POP GR1 +YNEXT OUT SEP,SLEN + LAD GR2,1,GR2 + JUMP LOOPY +WOV OUT Y0MSG,YLEN + JUMP YNEXT +XNEXT LAD GR1,-1,GR1 + JUMP LOOPX +FIN RET +XMAX DC 100 +XMIN DC 0 +YMAX DC 10 +YMIN DC 0 +SEP DC '--------------------' +SLEN DC 20 +Y0MSG DC 'Error: div by 0' +YLEN DC 15 + END diff --git a/as/misc/test/hanoi/0.txt b/as/misc/test/hanoi/0.txt new file mode 100644 index 0000000..3ea00c8 --- /dev/null +++ b/as/misc/test/hanoi/0.txt @@ -0,0 +1,8 @@ +../../../../casl2 ../../../../as/misc/hanoi.casl +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/test/hanoi/Makefile b/as/misc/test/hanoi/Makefile new file mode 100644 index 0000000..31934ca --- /dev/null +++ b/as/misc/test/hanoi/Makefile @@ -0,0 +1,6 @@ +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +MISCDIR = $(YACASL2DIR)/as/misc +ASFILE = $(MISCDIR)/hanoi.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/misc/test/io/0.txt b/as/misc/test/io/0.txt new file mode 100644 index 0000000..9af7afb --- /dev/null +++ b/as/misc/test/io/0.txt @@ -0,0 +1,20 @@ +../../../../casl2 ../../../../as/misc/io.casl +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/test/io/Makefile b/as/misc/test/io/Makefile new file mode 100644 index 0000000..8c7433c --- /dev/null +++ b/as/misc/test/io/Makefile @@ -0,0 +1,7 @@ +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +MISCDIR = $(YACASL2DIR)/as/misc +ASFILE = $(MISCDIR)/io.casl +INFILE = teststr.txt +CMD = $(CASL2) $(ASFILE) <$(INFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/misc/iotest/teststr.txt b/as/misc/test/io/teststr.txt similarity index 100% rename from as/misc/iotest/teststr.txt rename to as/misc/test/io/teststr.txt diff --git a/as/misc/mull0_call/0.txt b/as/misc/test/mull0/0.txt similarity index 63% rename from as/misc/mull0_call/0.txt rename to as/misc/test/mull0/0.txt index 0c4a537..7ab6551 100644 --- a/as/misc/mull0_call/0.txt +++ b/as/misc/test/mull0/0.txt @@ -1,605 +1,484 @@ -../../../../casl2 ../../../../as/FUNC/mull_call.casl ../../../../as/FUNC/mull0.casl ../../../../as/FUNC/outl.casl --------------------- +../../../casl2 mull.casl ../../../as/misc/mull0.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/misc/test/mull0/Makefile b/as/misc/test/mull0/Makefile new file mode 100644 index 0000000..b8bf1f5 --- /dev/null +++ b/as/misc/test/mull0/Makefile @@ -0,0 +1,7 @@ +YACASL2DIR= ../../../.. +CASL2 = $(YACASL2DIR)/casl2 +LIBDIR = $(YACASL2DIR)/as/casl2lib +MISCDIR = $(YACASL2DIR)/as/misc +ASFILE = mull.casl $(MISCDIR)/mull0.casl $(LIBDIR)/outl.casl +CMD = $(CASL2) $(ASFILE) +include $(YACASL2DIR)/test/TEST.mk diff --git a/as/misc/test/mull0/mull.casl b/as/misc/test/mull0/mull.casl new file mode 100644 index 0000000..b7d6997 --- /dev/null +++ b/as/misc/test/mull0/mull.casl @@ -0,0 +1,37 @@ +MAIN START + LAD GR3,0 ; Xのインデックス +LOOPX CPA GR3,XCNT ; (GR3 = XCNT)の場合、ループ脱出 + JZE FIN ; ↓ + LD GR1,X,GR3 ; GR1に、(X+GR3)番地の値を転送 + LAD GR4,0 ; Yのインデックス +LOOPY CPA GR4,YCNT ; (GR4 = YCNT)の場合、ループ脱出 + JZE XNEXT ; ↓ + LD GR2,Y,GR4 ; GR2に、(X+GR4)番地の値を転送 + CALL OUTL ; GR1の数値を出力 + PUSH 0,GR1 ; GR2の数値を出力 + LD GR1,GR2 ; ↓ + CALL OUTL ; ↓ + POP GR1 ; ↓ + CALL MULL ; GR0 <- GR1 * GR2 + JOV WOV ; オーバーフローの場合は、WOVへジャンプ + PUSH 0,GR1 ; GR0の数値を出力 + LD GR1,GR0 ; ↓ + CALL OUTL ; ↓ + POP GR1 ; ↓ +YNEXT OUT SEP,SLEN ; 区切り線を出力 + LAD GR4,1,GR4 ; GR4 <- GR4 + 1 + JUMP LOOPY ; LOOPYへジャンプ +WOV OUT YOMSG,YLEN ; オーバーフローした場合のメッセージを表示 + JUMP YNEXT ; YNEXTへジャンプ +XNEXT LAD GR3,1,GR3 ; GR3 <- GR3 + 1 + JUMP LOOPX ; LOOPXへジャンプ +FIN RET +X DC 0,1,2,127,128,255,256,257,32767,#8000,#FFFF +Y DC 0,1,2,127,128,255,256,257,32767,#8000,#FFFF +XCNT DC 11 +YCNT DC 11 +SEP DC '--------------------' +SLEN DC 20 +YOMSG DC 'Warning: overflow' +YLEN DC 17 + END diff --git a/as/casl2lib/test/sum/0.txt b/as/misc/test/sum/0.txt similarity index 100% rename from as/casl2lib/test/sum/0.txt rename to as/misc/test/sum/0.txt diff --git a/as/casl2lib/test/sum/1.txt b/as/misc/test/sum/1.txt similarity index 100% rename from as/casl2lib/test/sum/1.txt rename to as/misc/test/sum/1.txt diff --git a/as/casl2lib/test/sum/Makefile b/as/misc/test/sum/Makefile similarity index 100% rename from as/casl2lib/test/sum/Makefile rename to as/misc/test/sum/Makefile diff --git a/as/casl2lib/test/sum/report.txt b/as/misc/test/sum/report.txt similarity index 100% rename from as/casl2lib/test/sum/report.txt rename to as/misc/test/sum/report.txt diff --git a/as/casl2lib/test/sum/sum_call.casl b/as/misc/test/sum/sum_call.casl similarity index 100% rename from as/casl2lib/test/sum/sum_call.casl rename to as/misc/test/sum/sum_call.casl diff --git a/as/misc/test_divl0/Makefile b/as/misc/test_divl0/Makefile deleted file mode 100644 index b538c26..0000000 --- a/as/misc/test_divl0/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -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/test_divl0/report.txt b/as/misc/test_divl0/report.txt deleted file mode 100644 index b05b3c8..0000000 --- a/as/misc/test_divl0/report.txt +++ /dev/null @@ -1 +0,0 @@ -divl0_call: Test Success 2010-02-07 18:16:35 diff --git a/test/integration/casl2/Makefile b/test/integration/casl2/Makefile index f38b79d..6b81f1f 100644 --- a/test/integration/casl2/Makefile +++ b/test/integration/casl2/Makefile @@ -9,9 +9,9 @@ TESTS = `ls | grep "^[^A-Z].*"` LOGFILE = Test.log -.PHONY: all check report clean cleanall prepare create -all: check report -check: +.PHONY: all check checkeach report clean cleanall prepare create +check: checkeach report +checkeach: @rm -f $(LOGFILE) @for target in $(TESTS); do \ $(MAKE) check -C $$target; \ diff --git a/test/integration/casl2/lib_abs b/test/integration/casl2/lib_abs new file mode 120000 index 0000000..f660fef --- /dev/null +++ b/test/integration/casl2/lib_abs @@ -0,0 +1 @@ +../../../as/casl2lib/test/abs \ No newline at end of file diff --git a/test/integration/casl2/lib_addl32 b/test/integration/casl2/lib_addl32 new file mode 120000 index 0000000..2d4318a --- /dev/null +++ b/test/integration/casl2/lib_addl32 @@ -0,0 +1 @@ +../../../as/casl2lib/test/addl32 \ No newline at end of file diff --git a/test/integration/casl2/lib_divl b/test/integration/casl2/lib_divl new file mode 120000 index 0000000..e844176 --- /dev/null +++ b/test/integration/casl2/lib_divl @@ -0,0 +1 @@ +../../../as/casl2lib/test/divl \ No newline at end of file diff --git a/test/integration/casl2/lib_inl b/test/integration/casl2/lib_inl new file mode 120000 index 0000000..b93b9ac --- /dev/null +++ b/test/integration/casl2/lib_inl @@ -0,0 +1 @@ +../../../as/casl2lib/test/inl \ No newline at end of file diff --git a/test/integration/casl2/lib_minim b/test/integration/casl2/lib_minim new file mode 120000 index 0000000..09f686d --- /dev/null +++ b/test/integration/casl2/lib_minim @@ -0,0 +1 @@ +../../../as/casl2lib/test/minim \ No newline at end of file diff --git a/test/integration/casl2/lib_mula b/test/integration/casl2/lib_mula new file mode 120000 index 0000000..f161a53 --- /dev/null +++ b/test/integration/casl2/lib_mula @@ -0,0 +1 @@ +../../../as/casl2lib/test/mula \ No newline at end of file diff --git a/test/integration/casl2/lib_mull b/test/integration/casl2/lib_mull new file mode 120000 index 0000000..e2a29c1 --- /dev/null +++ b/test/integration/casl2/lib_mull @@ -0,0 +1 @@ +../../../as/casl2lib/test/mull \ No newline at end of file diff --git a/test/integration/casl2/lib_outa b/test/integration/casl2/lib_outa new file mode 120000 index 0000000..0ed4116 --- /dev/null +++ b/test/integration/casl2/lib_outa @@ -0,0 +1 @@ +../../../as/casl2lib/test/outa \ No newline at end of file diff --git a/test/integration/casl2/lib_outb b/test/integration/casl2/lib_outb new file mode 120000 index 0000000..57f3026 --- /dev/null +++ b/test/integration/casl2/lib_outb @@ -0,0 +1 @@ +../../../as/casl2lib/test/outb \ No newline at end of file diff --git a/test/integration/casl2/lib_outd_q15 b/test/integration/casl2/lib_outd_q15 new file mode 120000 index 0000000..763f3ea --- /dev/null +++ b/test/integration/casl2/lib_outd_q15 @@ -0,0 +1 @@ +../../../as/casl2lib/test/outd_q15 \ No newline at end of file diff --git a/test/integration/casl2/lib_outl b/test/integration/casl2/lib_outl new file mode 120000 index 0000000..090bf18 --- /dev/null +++ b/test/integration/casl2/lib_outl @@ -0,0 +1 @@ +../../../as/casl2lib/test/outl \ No newline at end of file diff --git a/test/integration/casl2/lib_rev b/test/integration/casl2/lib_rev new file mode 120000 index 0000000..ebd0178 --- /dev/null +++ b/test/integration/casl2/lib_rev @@ -0,0 +1 @@ +../../../as/casl2lib/test/rev \ No newline at end of file diff --git a/test/unit/print_cerrmsg/0.txt b/test/unit/print_cerrmsg/0.txt new file mode 100644 index 0000000..d20d0f1 --- /dev/null +++ b/test/unit/print_cerrmsg/0.txt @@ -0,0 +1,32 @@ +101: label already defined +102: label table is full +103: label not found +104: label length is too long +105: no command in the line +106: operand count mismatch +107: no label in START +108: not command of operand "r" +109: not command of operand "r1,r2" +110: not command of operand "r,adr[,x]" +111: not command of operand "adr[,x]" +112: not command of no operand +113: command not defined +114: not integer +115: not hex +116: out of hex range +117: operand is too many +118: operand length is too long +119: out of COMET II memory +120: GR0 in operand x +121: cannot get operand token +122: cannot create hash table +123: unclosed quote +124: more than one character in literal +125: not GR in operand x +201: execute - out of COMET II memory +202: SVC input - out of Input memory +203: SVC output - out of COMET II memory +204: Program Register (PR) - out of COMET II memory +205: Stack Pointer (SP) - cannot allocate stack buffer +206: Address - out of COMET II memory +207: Stack Pointer (SP) - out of COMET II memory diff --git a/test/unit/print_cerrmsg/Makefile b/test/unit/print_cerrmsg/Makefile new file mode 100644 index 0000000..fd5d996 --- /dev/null +++ b/test/unit/print_cerrmsg/Makefile @@ -0,0 +1,3 @@ +UCLASS = COMMON +TESTSRCFILE = ../CERRARRAY.c print_cerrmsg.c +include ../TEST.mk diff --git a/test/unit/print_cerrmsg/cerrtest.c b/test/unit/print_cerrmsg/cerrtest.c new file mode 100644 index 0000000..ed8d0ae --- /dev/null +++ b/test/unit/print_cerrmsg/cerrtest.c @@ -0,0 +1,23 @@ +#include +#include "casl2.h" + +int main(){ + int i, j; + int code[] = { + 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, + 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, 201, 202, 203, 204, 205, 206, 207, 999 + }; + const char *str[] = {NULL, "foobar"}; + + for(i = 0; i < sizeof(str)/sizeof(str[0]); i++) { + for(j = 0; j < sizeof(code)/sizeof(code[0]); j++) { + setcerr(code[j], str[i]); + printf("%d: %s - %d\t%s\n", code[j], str[i], cerrno, cerrmsg); + if(cerrno != 0) { + freecerr(); + } + } + } + return 0; +} diff --git a/test/unit/print_cerrmsg/print_cerrmsg.c b/test/unit/print_cerrmsg/print_cerrmsg.c new file mode 100644 index 0000000..09c274e --- /dev/null +++ b/test/unit/print_cerrmsg/print_cerrmsg.c @@ -0,0 +1,13 @@ +#include +#include "casl2.h" + +int main(){ + int i, num; + + for(i = 0; (num = cerr[i].num) > 0; i++) { + setcerr(num, NULL); + printf("%d: %s\n", cerrno, cerrmsg); + freecerr(); + } + return 0; +}