diff options
| author | Julian Blake Kongslie | 2022-09-22 13:04:12 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-09-22 13:04:12 -0700 |
| commit | 2bd8f7c5a4a455d4447f111cc5fed90af76bf280 (patch) | |
| tree | 24b0282c7aa916d9c5d9249815cd96b165d8aa1b /tests | |
| parent | Initial commit. (diff) | |
| download | procmodel-2bd8f7c5a4a455d4447f111cc5fed90af76bf280.tar.xz | |
Support comments in tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/countdown.hex | 10 | ||||
| -rw-r--r-- | tests/fib-mem.hex | 18 | ||||
| -rw-r--r-- | tests/fib-regs.hex | 12 | ||||
| -rw-r--r-- | tests/loop-with-add.hex | 4 | ||||
| -rw-r--r-- | tests/loop.hex | 2 |
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 @@ | |||
| 1 | 93 90 A3 03 | 1 | 93 90 A3 03 # 0: r0 = 3 + 0 |
| 2 | 92 90 02 | 2 | 92 90 02 # 4: emit r0 |
| 3 | 92 90 FF 03 | 3 | 92 90 FF 03 # 7: r0 = r0 - 1 |
| 4 | 91 90 00 | 4 | 91 90 00 # a: jump 0 if r0 == 0 |
| 5 | 93 90 A4 00 | 5 | 93 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 @@ | |||
| 1 | 93 90 A1 A0 A0 A8 B1 05 | 1 | 93 90 A1 A0 A0 A8 B1 05 # 00: [1008] = 1 |
| 2 | 93 90 A1 A0 A1 A0 03 | 2 | 93 90 A1 A0 A1 A0 03 # 08: r0 = 1010 |
| 3 | 92 91 F0 04 | 3 | 92 91 F0 04 # 0f: r1 = [r0-10] |
| 4 | 92 90 A1 02 | 4 | 92 90 A1 02 # 13: emit r1 |
| 5 | 92 92 F8 04 | 5 | 92 92 F8 04 # 17: r2 = [r0-8] |
| 6 | 91 A1 B2 03 | 6 | 91 A1 B2 03 # 1b: r1 = r1 + r2 |
| 7 | B1 05 | 7 | B1 05 # 1f: [r0] = r1 |
| 8 | 92 90 B8 03 | 8 | 92 90 B8 03 # 21: r0 = r0 + 8 |
| 9 | 93 90 AF 00 | 9 | 93 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 @@ | |||
| 1 | 93 91 A1 03 | 1 | 93 91 A1 03 # 00: r1 = 1 |
| 2 | 92 90 02 | 2 | 92 90 02 # 04: emit r0 |
| 3 | 92 B1 03 | 3 | 92 B1 03 # 07: r2 = r0 + r1 |
| 4 | 92 90 A1 03 | 4 | 92 90 A1 03 # 0a: r0 = r1 |
| 5 | 92 91 A2 03 | 5 | 92 91 A2 03 # 0e: r1 = r2 |
| 6 | 93 90 A4 00 | 6 | 93 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 @@ | |||
| 1 | 03 | 1 | 03 # 0: r0 = r0 + r0 |
| 2 | 91 90 00 | 2 | 91 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 | ||
