about summary refs log tree commit diff stats
path: root/apps/arith.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-06-29 19:14:19 -0700
committerKartik Agaram <vc@akkartik.com>2020-06-29 19:14:19 -0700
commit222548962c9ed85c9d5057757287d0b0b069af02 (patch)
tree25f2d36f9fd1b175523e603685d2173c3e38171e /apps/arith.mu
parent12e2b93a4bec024f3000adafb013d9490c821ae8 (diff)
downloadmu-222548962c9ed85c9d5057757287d0b0b069af02.tar.gz
6599
Diffstat (limited to 'apps/arith.mu')
-rw-r--r--apps/arith.mu8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/arith.mu b/apps/arith.mu
index 39e304b0..4f33d7be 100644
--- a/apps/arith.mu
+++ b/apps/arith.mu
@@ -35,11 +35,11 @@
 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 "press ctrl-c or ctrl-d to exit\n"
+  print-string-to-screen "press ctrl-c or ctrl-d to exit\n"
   # read-eval-print loop
   {
     # print prompt
-    print-string "> "
+    print-string-to-screen "> "
     # read and eval
     n, look <- simplify  # we explicitly thread 'look' everywhere
     # if (look == 0) break
@@ -47,7 +47,7 @@ fn main -> exit-status/ebx: int {
     break-if-=
     # print
     print-int32-to-screen n
-    print-string "\n"
+    print-string-to-screen "\n"
     #
     loop
   }
@@ -249,7 +249,7 @@ fn get-char -> look/esi: byte {
   compare look, 0
   {
     break-if-!=
-    print-string "^D\n"
+    print-string-to-screen "^D\n"
     syscall_exit
   }
 }