about summary refs log tree commit diff stats
path: root/apps/arith.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-08-01 23:06:41 -0700
committerKartik Agaram <vc@akkartik.com>2020-08-01 23:39:57 -0700
commit6b343a82f29b6dea219504504244591c3042df43 (patch)
tree91c63bd3d66d73aeb4e6714f1b6e5792620839b8 /apps/arith.mu
parent59a2e363f5f818e3870a275efe375737a76009fa (diff)
downloadmu-6b343a82f29b6dea219504504244591c3042df43.tar.gz
6699 - start building out fake screen
We now have all existing apps and prototypes going through the dependency-injected
wrapper, even though it doesn't actually implement the fake screen yet.
Diffstat (limited to 'apps/arith.mu')
-rw-r--r--apps/arith.mu10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/arith.mu b/apps/arith.mu
index 5f7ec492..ebc9850c 100644
--- a/apps/arith.mu
+++ b/apps/arith.mu
@@ -35,19 +35,19 @@
 fn main -> exit-status/ebx: int {
   var look/esi: byte <- copy 0  # lookahead
   var n/eax: int <- copy 0  # result of each expression
-  print-string-to-screen "press ctrl-c or ctrl-d to exit\n"
+  print-string 0, "press ctrl-c or ctrl-d to exit\n"
   # read-eval-print loop
   {
     # print prompt
-    print-string-to-screen "> "
+    print-string 0, "> "
     # read and eval
     n, look <- simplify  # we explicitly thread 'look' everywhere
     # if (look == 0) break
     compare look, 0
     break-if-=
     # print
-    print-int32-hex-to-screen n
-    print-string-to-screen "\n"
+    print-int32-hex 0, n
+    print-string 0, "\n"
     #
     loop
   }
@@ -249,7 +249,7 @@ fn get-char -> look/esi: byte {
   compare look, 0
   {
     break-if-!=
-    print-string-to-screen "^D\n"
+    print-string 0, "^D\n"
     syscall_exit
   }
 }