DCで''だけを指定する場合のサンプルとテストを追加
authorj8takagi <j8takagi@nifty.com>
Mon, 11 Mar 2019 01:21:16 +0000 (10:21 +0900)
committerj8takagi <j8takagi@nifty.com>
Mon, 11 Mar 2019 01:21:16 +0000 (10:21 +0900)
as/cmd/DC/dc__c2.casl [new file with mode: 0644]
test/system/casl2_cmd/cmd_dc__c2/0.txt [new file with mode: 0644]
test/system/casl2_cmd/cmd_dc__c2/Makefile [new file with mode: 0644]
test/system/casl2_cmd/cmd_dc__c2/cmd [new file with mode: 0755]

diff --git a/as/cmd/DC/dc__c2.casl b/as/cmd/DC/dc__c2.casl
new file mode 100644 (file)
index 0000000..86fc89e
--- /dev/null
@@ -0,0 +1,5 @@
+;; DC 文字定数
+MAIN    START
+        RET
+        DC      ''
+        END
diff --git a/test/system/casl2_cmd/cmd_dc__c2/0.txt b/test/system/casl2_cmd/cmd_dc__c2/0.txt
new file mode 100644 (file)
index 0000000..71f8ca5
--- /dev/null
@@ -0,0 +1,36 @@
+
+Assemble ../../../../as/cmd/DC/dc__c2.casl (0)
+
+Assemble ../../../../as/cmd/DC/dc__c2.casl (1)
+../../../../as/cmd/DC/dc__c2.casl:    1:;; DC 文字定数
+../../../../as/cmd/DC/dc__c2.casl:    2:MAIN    START
+../../../../as/cmd/DC/dc__c2.casl:    3:        RET
+       #0000   #8100
+../../../../as/cmd/DC/dc__c2.casl:    4:        DC      ''
+../../../../as/cmd/DC/dc__c2.casl:    5:        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:     128 = #0080 = 0000000010000000
+#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: 8100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
+#0000: 0010: 0000 0000 0000 0000 0000 0000 0000 0000 0000 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
+
diff --git a/test/system/casl2_cmd/cmd_dc__c2/Makefile b/test/system/casl2_cmd/cmd_dc__c2/Makefile
new file mode 100644 (file)
index 0000000..b6dac59
--- /dev/null
@@ -0,0 +1,2 @@
+include ../Define.mk
+include ../Test.mk
diff --git a/test/system/casl2_cmd/cmd_dc__c2/cmd b/test/system/casl2_cmd/cmd_dc__c2/cmd
new file mode 100755 (executable)
index 0000000..d6a01d4
--- /dev/null
@@ -0,0 +1 @@
+../../../../casl2 -atd -M128 ../../../../as/cmd/DC/dc__c2.casl