summaryrefslogtreecommitdiff
path: root/mem/mem.hex
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-03-29 13:59:45 -0700
committerJulian Blake Kongslie2021-03-29 13:59:45 -0700
commit135fbf911740e88b802d340fe3e747dd39966ec4 (patch)
tree9f3bf2b39e4b71ca4169ccb45f332b1a33551887 /mem/mem.hex
parentTrivial cleanup of initial memory image. (diff)
downloadnoncpu-135fbf911740e88b802d340fe3e747dd39966ec4.tar.xz
Trivial assembler.
Diffstat (limited to '')
-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