about summary refs log tree commit diff stats
path: root/ex10.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 /ex10.mu
parent9f71d7248c908900e987c08b2ab4642dfd88eacb (diff)
downloadmu-1a43d12b15c11c1fb1686369665f48d87f350f37.tar.gz
explicitly pass screen and keyboard to main
Diffstat (limited to 'ex10.mu')
-rw-r--r--ex10.mu8
1 files changed, 4 insertions, 4 deletions
diff --git a/ex10.mu b/ex10.mu
index adc58d87..4d30ac70 100644
--- a/ex10.mu
+++ b/ex10.mu
@@ -11,7 +11,7 @@
 #   Values between -256 and +255 as you move the mouse over the window.
 #   You might need to click on the window once.
 
-fn main {
+fn main screen: (addr screen), keyboard: (addr keyboard) {
   # repeatedly print out mouse driver results if non-zero
   $main:event-loop: {
     var dx/eax: int <- copy 0
@@ -27,15 +27,15 @@ fn main {
     {
       var dummy1/eax: int <- copy 0
       var dummy2/ecx: int <- copy 0
-      dummy1, dummy2 <- draw-text-wrapping-right-then-down-over-full-screen 0/screen, "         ", 0/x, 0x10/y, 0x31/fg, 0/bg
+      dummy1, dummy2 <- draw-text-wrapping-right-then-down-over-full-screen screen, "         ", 0/x, 0x10/y, 0x31/fg, 0/bg
     }
     {
       var dummy/ecx: int <- copy 0
-      dx, dummy <- draw-int32-decimal-wrapping-right-then-down-over-full-screen 0/screen, dx, 0/x, 0x10/y, 0x31/fg, 0/bg
+      dx, dummy <- draw-int32-decimal-wrapping-right-then-down-over-full-screen screen, dx, 0/x, 0x10/y, 0x31/fg, 0/bg
     }
     {
       var dummy/eax: int <- copy 0
-      dummy, dy <- draw-int32-decimal-wrapping-right-then-down-over-full-screen 0/screen, dy, 5/x, 0x10/y, 0x31/fg, 0/bg
+      dummy, dy <- draw-int32-decimal-wrapping-right-then-down-over-full-screen screen, dy, 5/x, 0x10/y, 0x31/fg, 0/bg
     }
     loop
   }