about summary refs log tree commit diff stats
path: root/apps/tui.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-07-12 21:01:34 -0700
committerKartik Agaram <vc@akkartik.com>2020-07-12 21:01:34 -0700
commit8c78c3eb48ec3a443643dd370d75211ffbf63894 (patch)
treeeceea9afaddd6794a97733319bcecbf9614642b7 /apps/tui.mu
parent7817fdb29c46419e22ddcbd9f75a5be6308c9776 (diff)
downloadmu-8c78c3eb48ec3a443643dd370d75211ffbf63894.tar.gz
6641
Diffstat (limited to 'apps/tui.mu')
-rw-r--r--apps/tui.mu7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/tui.mu b/apps/tui.mu
index 20693112..d65e3518 100644
--- a/apps/tui.mu
+++ b/apps/tui.mu
@@ -9,12 +9,12 @@ fn main -> exit-status/ebx: int {
   var ncols/ecx: int <- copy 0
   nrows, ncols <- screen-size
   enable-screen-grid-mode
-  move-cursor-on-screen 5, 35
+  move-cursor-on-screen 5, 0x22
   start-color-on-screen 1, 0x7a
   start-blinking-on-screen
   print-string-to-screen "Hello world!"
   reset-formatting-on-screen
-  move-cursor-on-screen 6, 35
+  move-cursor-on-screen 6, 0x22
   print-string-to-screen "tty dimensions: "
   print-int32-hex-to-screen nrows
   print-string-to-screen " rows, "
@@ -27,7 +27,8 @@ fn main -> exit-status/ebx: int {
   enable-keyboard-type-mode
   enable-screen-type-mode
   print-string-to-screen "You pressed "
-  print-int32-hex-to-screen x
+  var x-int/eax: int <- copy x
+  print-int32-hex-to-screen x-int
   print-string-to-screen "\n"
   exit-status <- copy 0
 }