summaryrefslogtreecommitdiff
path: root/mem/mem.hex
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-03-29 14:39:48 -0700
committerJulian Blake Kongslie2021-03-29 14:39:48 -0700
commitf3092799de44cb357c96706961db38e3c62344c6 (patch)
treebd66c4af530f8ebcc255f170dc81eef9effce0c0 /mem/mem.hex
parentTrivial assembler. (diff)
downloadnoncpu-f3092799de44cb357c96706961db38e3c62344c6.tar.xz
Add a Fibonacci sequence to the end of output (no ASCII conversion yet)
Diffstat (limited to '')
-rw-r--r--mem/mem.hex31
1 files changed, 19 insertions, 12 deletions
diff --git a/mem/mem.hex b/mem/mem.hex
index 5c6ebe7..3979364 100644
--- a/mem/mem.hex
+++ b/mem/mem.hex
@@ -2,11 +2,27 @@
2 2
3040 // acc= 0x40 3040 // acc= 0x40
4f20 // idx 4f20 // idx
5100 // loop: load 5000 // loop: acc= 0
6100 // load
6300 // ifeq 0 7300 // ifeq 0
7f80 // halt 8402 // jmp fib
8f44 // ++idx tx 9f44 // ++idx tx
94fb // jmp loop 104fa // jmp loop
11040 // fib: acc= 0x40
12f20 // idx
13000 // acc= 0
14200 // store
15f04 // ++idx
16001 // acc= 1
17200 // store
18f08 // fibloop: --idx
19000 // acc= 0
20100 // load
21f44 // ++idx tx
22100 // load
23f04 // ++idx
24200 // store
254f8 // jmp fibloop
10 26
11@40 27@40
12 28
@@ -26,12 +42,3 @@ f44 // ++idx tx
2600a // \n 4200a // \n
27 43
28000 44000
29
3004f // O
3106f // o
32070 // p
33073 // s
34021 // !
3500a // \n
36
37000