diff options
| author | Julian Blake Kongslie | 2021-04-04 14:53:31 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2021-04-04 14:53:31 -0700 |
| commit | 3b1e7cfbd6ef2e520702a90c4d0ac8e102f19d9a (patch) | |
| tree | 6430b583e0013e2f0812b7285cb3ead6633243ec /mem/mem.hex | |
| parent | Very fancy improved Fibonacci machine, with HDL convert-to-ASCII functionality (diff) | |
| download | noncpu-3b1e7cfbd6ef2e520702a90c4d0ac8e102f19d9a.tar.xz | |
Add indirect memory operations.
Diffstat (limited to '')
| -rw-r--r-- | mem/mem.hex | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ | |||
| 3 | // Reset state is acc=0 idx=0 | 3 | // Reset state is acc=0 idx=0 |
| 4 | 4 | ||
| 5 | 000 // loop: acc= 0 # Print from 0x70 until we find a 0x00 byte | 5 | 000 // loop: acc= 0 # Print from 0x70 until we find a 0x00 byte |
| 6 | 170 // ladd 0x70 | 6 | 170 // ladd i 0x6a |
| 7 | 300 // ifeq 0 | 7 | 300 // ifeq 0 |
| 8 | 402 // jmp fib | 8 | 402 // jmp fib |
| 9 | f44 // ++idx tx | 9 | f44 // ++idx tx |
| @@ -63,8 +63,9 @@ f04 // ++idx | |||
| 63 | f40 // tx | 63 | f40 // tx |
| 64 | f80 // halt | 64 | f80 // halt |
| 65 | 65 | ||
| 66 | @6c | 66 | @6a |
| 67 | 67 | ||
| 68 | 070 // 6a: constant 0x070 | ||
| 68 | 000 // 6b: LSB of ASCII rep | 69 | 000 // 6b: LSB of ASCII rep |
| 69 | 000 // 6c: USB of ASCII rep | 70 | 000 // 6c: USB of ASCII rep |
| 70 | 000 // 6d: USB of ASCII rep | 71 | 000 // 6d: USB of ASCII rep |
