diff options
| author | Julian Blake Kongslie | 2021-03-24 08:35:07 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2021-03-24 08:50:57 -0700 |
| commit | 5c1df6d27f5dac143efc9ce84689b863dbee45bd (patch) | |
| tree | 9bb9c9bcab00e7d5a5d1b40467d8e5a810f0b706 /mem | |
| parent | Clean before building. (diff) | |
| download | toycpu-5c1df6d27f5dac143efc9ce84689b863dbee45bd.tar.xz | |
Reorganize repo layout to make it a little easier to work within.
Diffstat (limited to 'mem')
| -rw-r--r-- | mem/jtag_uart.hex | 6 | ||||
| -rw-r--r-- | mem/rom.hex | 18 |
2 files changed, 24 insertions, 0 deletions
diff --git a/mem/jtag_uart.hex b/mem/jtag_uart.hex new file mode 100644 index 0000000..504999f --- /dev/null +++ b/mem/jtag_uart.hex | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | @0 | ||
| 2 | |||
| 3 | // "Hello, FPGA!\n" | ||
| 4 | 48 65 6c 6c 6f 2c 20 46 50 47 41 21 0a | ||
| 5 | |||
| 6 | 00 | ||
diff --git a/mem/rom.hex b/mem/rom.hex new file mode 100644 index 0000000..ee75917 --- /dev/null +++ b/mem/rom.hex | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | @0 | ||
| 2 | |||
| 3 | // "Hello, world!\n" | ||
| 4 | 48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21 0a | ||
| 5 | |||
| 6 | // "I will now echo your input: " | ||
| 7 | 49 20 77 69 6c 6c 20 6e 6f 77 20 65 63 68 6f 20 | ||
| 8 | 79 6f 75 72 20 69 6e 70 75 74 3a 20 | ||
| 9 | |||
| 10 | // At this point, will switch to ECHO mode until it reads a newline. | ||
| 11 | 00 | ||
| 12 | |||
| 13 | // "The Fibonacci sequence: " | ||
| 14 | 54 68 65 20 46 69 62 6f 6e 61 63 63 69 20 73 65 | ||
| 15 | 71 75 65 6e 63 65 3a 20 | ||
| 16 | |||
| 17 | // At this point, will switch to FIB mode until end of time. | ||
| 18 | 00 | ||
