diff options
Diffstat (limited to 'baremetal/shell/main.mu')
-rw-r--r-- | baremetal/shell/main.mu | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/baremetal/shell/main.mu b/baremetal/shell/main.mu index 262b9829..eb437b67 100644 --- a/baremetal/shell/main.mu +++ b/baremetal/shell/main.mu @@ -5,8 +5,11 @@ fn main { var sandbox-storage: sandbox var sandbox/esi: (addr sandbox) <- address sandbox-storage initialize-sandbox sandbox + var width/eax: int <- copy 0 + var height/ecx: int <- copy 0 + width, height <- screen-size 0/screen { - render-sandbox 0/screen, sandbox, 2/x, 2/y + render-sandbox 0/screen, sandbox, 2/x, 2/y, width, height { var key/eax: byte <- read-key 0/keyboard compare key, 0 |