diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-03-26 22:47:44 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-03-26 23:07:35 -0700 |
commit | 1a43d12b15c11c1fb1686369665f48d87f350f37 (patch) | |
tree | 73902bccd19f3b6358b9b3ed1c9a0c33956a7e0b /mu-init.subx | |
parent | 9f71d7248c908900e987c08b2ab4642dfd88eacb (diff) | |
download | mu-1a43d12b15c11c1fb1686369665f48d87f350f37.tar.gz |
explicitly pass screen and keyboard to main
Diffstat (limited to 'mu-init.subx')
-rw-r--r-- | mu-init.subx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mu-init.subx b/mu-init.subx index bf9e5b0d..399a9a3f 100644 --- a/mu-init.subx +++ b/mu-init.subx @@ -2,7 +2,9 @@ # # See translate for how this file is used. # -# Mu programs start at a function called 'main' without inouts or outputs. +# Mu programs start at a function called 'main' with this signature: +# fn main screen: (addr screen), keyboard: (addr keyboard) +# # All tests must pass first (the "power-on unit test"). == code @@ -20,7 +22,7 @@ Entry: (clear-real-screen) c7 0/subop/copy *Real-screen-cursor-x 0/imm32 c7 0/subop/copy *Real-screen-cursor-y 0/imm32 - (main) + (main 0 0) } # hang indefinitely |