diff options
Diffstat (limited to 'baremetal/shell/main.mu')
-rw-r--r-- | baremetal/shell/main.mu | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/baremetal/shell/main.mu b/baremetal/shell/main.mu index ee2dda60..262b9829 100644 --- a/baremetal/shell/main.mu +++ b/baremetal/shell/main.mu @@ -7,11 +7,13 @@ fn main { initialize-sandbox sandbox { render-sandbox 0/screen, sandbox, 2/x, 2/y - var key/eax: byte <- read-key 0/keyboard - compare key, 0 - loop-if-= - # no way to quit right now; just reboot - edit-sandbox sandbox, key + { + var key/eax: byte <- read-key 0/keyboard + compare key, 0 + loop-if-= + # no way to quit right now; just reboot + edit-sandbox sandbox, key + } loop } } |