summaryrefslogtreecommitdiff
path: root/rom.hex
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-03-23 12:22:38 -0700
committerJulian Blake Kongslie2021-03-23 12:22:38 -0700
commit5d95607192380be5cc62592efac52814a0e090df (patch)
tree656bc3ec79180a89f355681e454808ebce6eb6d9 /rom.hex
downloadtoycpu-5d95607192380be5cc62592efac52814a0e090df.tar.xz
Initial commit.
Diffstat (limited to '')
-rw-r--r--rom.hex18
1 files changed, 18 insertions, 0 deletions
diff --git a/rom.hex b/rom.hex
new file mode 100644
index 0000000..ee75917
--- /dev/null
+++ b/rom.hex
@@ -0,0 +1,18 @@
1@0
2
3// "Hello, world!\n"
448 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21 0a
5
6// "I will now echo your input: "
749 20 77 69 6c 6c 20 6e 6f 77 20 65 63 68 6f 20
879 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.
1100
12
13// "The Fibonacci sequence: "
1454 68 65 20 46 69 62 6f 6e 61 63 63 69 20 73 65
1571 75 65 6e 63 65 3a 20
16
17// At this point, will switch to FIB mode until end of time.
1800