comet2monitorのテストを追加
authorj8takagi <j8takagi@nifty.com>
Fri, 15 Feb 2019 14:54:54 +0000 (23:54 +0900)
committerj8takagi <j8takagi@nifty.com>
Fri, 15 Feb 2019 14:54:54 +0000 (23:54 +0900)
18 files changed:
monitor/break.monitor [new file with mode: 0644]
monitor/continue_hello.monitor [new file with mode: 0644]
monitor/continue_sum10.monitor [new file with mode: 0644]
monitor/help.monitor
monitor/revert_hello.monitor [new file with mode: 0644]
test/system/Makefile
test/system/comet2monitor/Define.mk [new symlink]
test/system/comet2monitor/Makefile [new symlink]
test/system/comet2monitor/Test.mk [new symlink]
test/system/comet2monitor/help/0.txt [new file with mode: 0644]
test/system/comet2monitor/help/Makefile [new file with mode: 0644]
test/system/comet2monitor/help/cmd [new file with mode: 0755]
test/system/comet2monitor/load/0.txt [new file with mode: 0644]
test/system/comet2monitor/load/Makefile [new file with mode: 0644]
test/system/comet2monitor/load/cmd [new file with mode: 0755]
test/system/comet2monitor/quit/0.txt [new file with mode: 0644]
test/system/comet2monitor/quit/Makefile [new file with mode: 0644]
test/system/comet2monitor/quit/cmd [new file with mode: 0755]

diff --git a/monitor/break.monitor b/monitor/break.monitor
new file mode 100644 (file)
index 0000000..353a5d9
--- /dev/null
@@ -0,0 +1,15 @@
+l as/sample/sum_10.o
+d a 0 #18
+t a
+b a #7
+c
+c
+c
+c
+c
+c
+c
+c
+c
+c
+c
diff --git a/monitor/continue_hello.monitor b/monitor/continue_hello.monitor
new file mode 100644 (file)
index 0000000..b11ad2b
--- /dev/null
@@ -0,0 +1,4 @@
+l as/sample/hello.o
+d a 0 #22
+T a
+c
diff --git a/monitor/continue_sum10.monitor b/monitor/continue_sum10.monitor
new file mode 100644 (file)
index 0000000..c387b82
--- /dev/null
@@ -0,0 +1,4 @@
+l as/sample/sum_10.o
+d a 0 #18
+T a
+c
diff --git a/monitor/revert_hello.monitor b/monitor/revert_hello.monitor
new file mode 100644 (file)
index 0000000..22f5dd7
--- /dev/null
@@ -0,0 +1,3 @@
+l as/sample/hello.o
+d a 0 #18
+r 0 #22
index 26c5f55..1667d25 100644 (file)
@@ -1,5 +1,5 @@
 # 複数の子ディレクトリーでmakeを実行
-CMD = casl2_opt casl2_cmd casl2_err comet2_smoke comet2_opt comet2_cmd comet2_err casl2rev dumpword
+CMD = casl2_opt casl2_cmd casl2_err comet2_smoke comet2_opt comet2_cmd comet2_err casl2rev dumpword comet2monitor
 define make_dirs
     $(foreach d,$1,$(MAKE) -sC $d $2)
 endef
diff --git a/test/system/comet2monitor/Define.mk b/test/system/comet2monitor/Define.mk
new file mode 120000 (symlink)
index 0000000..286e789
--- /dev/null
@@ -0,0 +1 @@
+/home/kazubito/yacasl2/test/Template/Define.mk
\ No newline at end of file
diff --git a/test/system/comet2monitor/Makefile b/test/system/comet2monitor/Makefile
new file mode 120000 (symlink)
index 0000000..91e7c2e
--- /dev/null
@@ -0,0 +1 @@
+/home/kazubito/yacasl2/test/Template/Group.mk
\ No newline at end of file
diff --git a/test/system/comet2monitor/Test.mk b/test/system/comet2monitor/Test.mk
new file mode 120000 (symlink)
index 0000000..ce1a5da
--- /dev/null
@@ -0,0 +1 @@
+/home/kazubito/yacasl2/test/Template/Test.mk
\ No newline at end of file
diff --git a/test/system/comet2monitor/help/0.txt b/test/system/comet2monitor/help/0.txt
new file mode 100644 (file)
index 0000000..cae706c
--- /dev/null
@@ -0,0 +1,15 @@
+COMET II machine code monitor. Type ? for help.
+(comet2 monitor) ?
+b[reak] -- Manipulate Breakpoints. See details, `b ?'.
+c[ontinue] -- Continue running your program.
+d[ump] -- Display memory dump. `d[ump] a[uto]/n[oauto]' set auto/noauto display.
+l[oad] -- Load object from a file to the memory. `l[oad] <filepath> <address>' if address is omitted, load to address 0.
+n[ext] -- Go next instruction.
+q[uit] -- Quit running your program.
+reset -- Reset the system.
+r[everse] -- Disassemble memory. `r[everse] <start address> <end address>.
+s[ave] -- Save object from the memory to a file. `s[ave] <filepath> [<start address1> [<end address>]]' if <start address> and <end address> is omitted, save the whole memory. if <end address> is omitted, save the memory after <start address>.
+t[race] -- Display CPU register. `t[race] a[uto]/n[oauto]' set auto/noauto display. 
+T[race] -- Display CPU register as logical value. `t[race] a[uto]/n[oauto]' set auto/noauto display. 
+?/h[elp] -- Display this help.
+(comet2 monitor) 
\ No newline at end of file
diff --git a/test/system/comet2monitor/help/Makefile b/test/system/comet2monitor/help/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/comet2monitor/help/cmd b/test/system/comet2monitor/help/cmd
new file mode 100755 (executable)
index 0000000..98598c1
--- /dev/null
@@ -0,0 +1 @@
+cd ../../../.. && ./comet2monitor <monitor/help.monitor
diff --git a/test/system/comet2monitor/load/0.txt b/test/system/comet2monitor/load/0.txt
new file mode 100644 (file)
index 0000000..bde1136
--- /dev/null
@@ -0,0 +1,4 @@
+COMET II machine code monitor. Type ? for help.
+(comet2 monitor) l as/sample/sum_10.o
+(comet2 monitor) d
+(comet2 monitor) 
\ No newline at end of file
diff --git a/test/system/comet2monitor/load/Makefile b/test/system/comet2monitor/load/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/comet2monitor/load/cmd b/test/system/comet2monitor/load/cmd
new file mode 100755 (executable)
index 0000000..d4e3551
--- /dev/null
@@ -0,0 +1 @@
+cd ../../../.. && ./comet2monitor <monitor/load.monitor
diff --git a/test/system/comet2monitor/quit/0.txt b/test/system/comet2monitor/quit/0.txt
new file mode 100644 (file)
index 0000000..51943c7
--- /dev/null
@@ -0,0 +1,3 @@
+COMET II machine code monitor. Type ? for help.
+(comet2 monitor) q
+Quit: COMET II monitor
diff --git a/test/system/comet2monitor/quit/Makefile b/test/system/comet2monitor/quit/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/comet2monitor/quit/cmd b/test/system/comet2monitor/quit/cmd
new file mode 100755 (executable)
index 0000000..1acd83b
--- /dev/null
@@ -0,0 +1 @@
+cd ../../../.. && ./comet2monitor <monitor/quit.monitor