summaryrefslogtreecommitdiff
path: root/mem/mem.hex
diff options
context:
space:
mode:
Diffstat (limited to 'mem/mem.hex')
-rw-r--r--mem/mem.hex17
1 files changed, 7 insertions, 10 deletions
diff --git a/mem/mem.hex b/mem/mem.hex
index 9cd9433..5c6ebe7 100644
--- a/mem/mem.hex
+++ b/mem/mem.hex
@@ -1,15 +1,12 @@
1@0 1@0
2 2
3040 // %acc = 0x40 3040 // acc= 0x40
4f20 // %idx = %acc 4f20 // idx
5 5100 // loop: load
6// loop: 6300 // ifeq 0
7100 // %acc = [%idx] 7f80 // halt
8300 402 // if (%acc == 0) { %pc = exit } 8f44 // ++idx tx
9f44 // ++%idx; tx %acc 94fb // jmp loop
104fb // jmp loop
11
12f80 // hcf
13 10
14@40 11@40
15 12