summaryrefslogtreecommitdiff
path: root/mem/mem.hex
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-03-28 15:31:00 -0700
committerJulian Blake Kongslie2021-03-28 15:32:26 -0700
commit484293ae7865bf10d8bdb9c5c70982c57acfc0c9 (patch)
tree0d553f9e42631688b90933d6c2a398071f65e5c2 /mem/mem.hex
parentInitial commit. (diff)
downloadnoncpu-484293ae7865bf10d8bdb9c5c70982c57acfc0c9.tar.xz
Some more interesting opcodes.
Diffstat (limited to 'mem/mem.hex')
-rw-r--r--mem/mem.hex53
1 files changed, 38 insertions, 15 deletions
diff --git a/mem/mem.hex b/mem/mem.hex
index 6d096bb..7923fb7 100644
--- a/mem/mem.hex
+++ b/mem/mem.hex
@@ -1,18 +1,41 @@
1@0 1@0
2 2
3048 100 // H 3040 // %acc = 0x40
4065 100 // e 4f20 // %idx = %acc
506c 100 // l
606c 100 // l
706f 100 // o
802c 100 // ,
9020 100 // ' '
10077 100 // w
1106f 100 // o
12072 100 // r
1306c 100 // l
14064 100 // d
15021 100 // !
1600a 100 // \n
17 5
18700 6// loop: (addr 2)
7100 // %acc = [%idx]
8300 402 // if (%acc == 0) { %pc = exit }
9f44 // ++%idx; tx %acc
104fb // jmp loop
11// exit: (addr 7)
12
13f80 // hcf
14
15@40
16
17048 // H
18065 // e
1906c // l
2006c // l
2106f // o
2202c // ,
23020 // ' '
24077 // w
2506f // o
26072 // r
2706c // l
28064 // d
29021 // !
3000a // \n
31
32000
33
3404f // O
3506f // o
36070 // p
37073 // s
38021 // !
3900a // \n
40
41000