about summary refs log tree commit diff stats
path: root/tutorial
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-10-24 07:05:35 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-10-24 07:07:37 -0700
commitd3be351847246cfbce93c7bf580c658426f8b76c (patch)
tree49c48b3e9a9f2cba71bac295e8369c9cbb72c39b /tutorial
parent016e788f08e520c1dd6caf5cbd6e2d626796997d (diff)
downloadmu-d3be351847246cfbce93c7bf580c658426f8b76c.tar.gz
.
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/task1.mu9
-rw-r--r--tutorial/task3.pngbin94644 -> 63956 bytes
2 files changed, 8 insertions, 1 deletions
diff --git a/tutorial/task1.mu b/tutorial/task1.mu
index 37bcb547..5b57f4f0 100644
--- a/tutorial/task1.mu
+++ b/tutorial/task1.mu
@@ -1,3 +1,10 @@
-fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) {
+# Draw a single line of ASCII text.
+#
+# To build a disk image:
+#   ./translate tutorial/task1.mu        # emits code.img
+# To run:
+#   qemu-system-i386 code.img
+
+fn main screen: (addr screen) {
   var dummy/eax: int <- draw-text-rightward screen, "hello from baremetal Mu!", 0x10/x, 0x400/xmax, 0x10/y, 0xa/fg, 0/bg
 }
diff --git a/tutorial/task3.png b/tutorial/task3.png
index 82b5f594..f0661552 100644
--- a/tutorial/task3.png
+++ b/tutorial/task3.png
Binary files differ