From 3b1e7cfbd6ef2e520702a90c4d0ac8e102f19d9a Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 4 Apr 2021 14:53:31 -0700 Subject: Add indirect memory operations. --- mem/mem.hex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mem/mem.hex') diff --git a/mem/mem.hex b/mem/mem.hex index d30c5b6..07023a8 100644 --- a/mem/mem.hex +++ b/mem/mem.hex @@ -3,7 +3,7 @@ // Reset state is acc=0 idx=0 000 // loop: acc= 0 # Print from 0x70 until we find a 0x00 byte -170 // ladd 0x70 +170 // ladd i 0x6a 300 // ifeq 0 402 // jmp fib f44 // ++idx tx @@ -63,8 +63,9 @@ f04 // ++idx f40 // tx f80 // halt -@6c +@6a +070 // 6a: constant 0x070 000 // 6b: LSB of ASCII rep 000 // 6c: USB of ASCII rep 000 // 6d: USB of ASCII rep -- cgit v1.2.3