about summary refs log tree commit diff stats
path: root/ex5.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-03-26 22:47:44 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-03-26 23:07:35 -0700
commit1a43d12b15c11c1fb1686369665f48d87f350f37 (patch)
tree73902bccd19f3b6358b9b3ed1c9a0c33956a7e0b /ex5.mu
parent9f71d7248c908900e987c08b2ab4642dfd88eacb (diff)
downloadmu-1a43d12b15c11c1fb1686369665f48d87f350f37.tar.gz
explicitly pass screen and keyboard to main
Diffstat (limited to 'ex5.mu')
-rw-r--r--ex5.mu6
1 files changed, 3 insertions, 3 deletions
diff --git a/ex5.mu b/ex5.mu
index cb0ec063..287b1148 100644
--- a/ex5.mu
+++ b/ex5.mu
@@ -10,7 +10,7 @@
 #
 # Expected output: text in green near the top-left corner of screen
 
-fn main {
-  var dummy/eax: int <- draw-text-rightward 0/screen, "hello from baremetal Mu!", 0x10/x, 0x400/xmax, 0x10/y, 0xa/color
-  dummy <- draw-text-rightward 0/screen, "you shouldn't see this", 0x10/x, 0xa0/xmax, 0x30/y, 0x3/color  # xmax is too narrow
+fn main screen: (addr screen), keyboard: (addr keyboard) {
+  var dummy/eax: int <- draw-text-rightward screen, "hello from baremetal Mu!", 0x10/x, 0x400/xmax, 0x10/y, 0xa/color
+  dummy <- draw-text-rightward screen, "you shouldn't see this", 0x10/x, 0xa0/xmax, 0x30/y, 0x3/color  # xmax is too narrow
 }