summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-09-22 13:04:12 -0700
committerJulian Blake Kongslie2022-09-22 13:04:12 -0700
commit2bd8f7c5a4a455d4447f111cc5fed90af76bf280 (patch)
tree24b0282c7aa916d9c5d9249815cd96b165d8aa1b /tests
parentInitial commit. (diff)
downloadprocmodel-2bd8f7c5a4a455d4447f111cc5fed90af76bf280.tar.xz
Support comments in tests
Diffstat (limited to '')
-rw-r--r--tests/countdown.hex10
-rw-r--r--tests/fib-mem.hex18
-rw-r--r--tests/fib-regs.hex12
-rw-r--r--tests/loop-with-add.hex4
-rw-r--r--tests/loop.hex2
5 files changed, 23 insertions, 23 deletions
diff --git a/tests/countdown.hex b/tests/countdown.hex
index 1185774..c1af1fb 100644
--- a/tests/countdown.hex
+++ b/tests/countdown.hex
@@ -1,5 +1,5 @@
193 90 A3 03 193 90 A3 03 # 0: r0 = 3 + 0
292 90 02 292 90 02 # 4: emit r0
392 90 FF 03 392 90 FF 03 # 7: r0 = r0 - 1
491 90 00 491 90 00 # a: jump 0 if r0 == 0
593 90 A4 00 593 90 A4 00 # d: jump 4
diff --git a/tests/fib-mem.hex b/tests/fib-mem.hex
index 521301b..2e49c4e 100644
--- a/tests/fib-mem.hex
+++ b/tests/fib-mem.hex
@@ -1,9 +1,9 @@
193 90 A1 A0 A0 A8 B1 05 193 90 A1 A0 A0 A8 B1 05 # 00: [1008] = 1
293 90 A1 A0 A1 A0 03 293 90 A1 A0 A1 A0 03 # 08: r0 = 1010
392 91 F0 04 392 91 F0 04 # 0f: r1 = [r0-10]
492 90 A1 02 492 90 A1 02 # 13: emit r1
592 92 F8 04 592 92 F8 04 # 17: r2 = [r0-8]
691 A1 B2 03 691 A1 B2 03 # 1b: r1 = r1 + r2
7B1 05 7B1 05 # 1f: [r0] = r1
892 90 B8 03 892 90 B8 03 # 21: r0 = r0 + 8
993 90 AF 00 993 90 AF 00 # 25: jump f
diff --git a/tests/fib-regs.hex b/tests/fib-regs.hex
index 0f8c5f8..ed7283c 100644
--- a/tests/fib-regs.hex
+++ b/tests/fib-regs.hex
@@ -1,6 +1,6 @@
193 91 A1 03 193 91 A1 03 # 00: r1 = 1
292 90 02 292 90 02 # 04: emit r0
392 B1 03 392 B1 03 # 07: r2 = r0 + r1
492 90 A1 03 492 90 A1 03 # 0a: r0 = r1
592 91 A2 03 592 91 A2 03 # 0e: r1 = r2
693 90 A4 00 693 90 A4 00 # 12: jump 4
diff --git a/tests/loop-with-add.hex b/tests/loop-with-add.hex
index 7c93780..1e1c851 100644
--- a/tests/loop-with-add.hex
+++ b/tests/loop-with-add.hex
@@ -1,2 +1,2 @@
103 103 # 0: r0 = r0 + r0
291 90 00 291 90 00 # 1: jump 0 if r0 == 0
diff --git a/tests/loop.hex b/tests/loop.hex
index 29fe69d..9666699 100644
--- a/tests/loop.hex
+++ b/tests/loop.hex
@@ -1 +1 @@
93 90 00 93 90 00 # 0: jmp 0