diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-03-27 17:47:23 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-03-27 17:50:44 -0700 |
commit | 7bf8adb893dcc524c7f1bc5e8f984385c9138d7d (patch) | |
tree | 7ae60840d8cb0356cee7a76cfd3c15bb5de4e58c /mu.md | |
parent | 9818f1de981fe9206940cf89e9422388f8853cc2 (diff) | |
download | mu-7bf8adb893dcc524c7f1bc5e8f984385c9138d7d.tar.gz |
explicitly pass data disk to main
Diffstat (limited to 'mu.md')
-rw-r--r-- | mu.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mu.md b/mu.md index 09856068..dc6d9ff0 100644 --- a/mu.md +++ b/mu.md @@ -117,15 +117,16 @@ It takes an array of strings and returns a status code to Linux in register Without an OS, the signature looks like this: ``` -fn main screen: (addr screen), keyboard: (addr keyboard) +fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) ``` A screen and keyboard are explicitly passed in. The goal is for all hardware dependencies to always be explicit. However there are currently gaps: * The mouse is accessed implicitly - * The disk is accessed implicitly * The screen argument only supports text-mode graphics. Pixel graphics rely on implicit access to the screen. + * The Mu computer has two disks, and the disk containing Mu code is not + accessible. ## Blocks |