From 2655a4a91d1d2e98cc9ab9c54e70d4eb49c735d6 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 30 Jun 2020 14:54:30 -0700 Subject: 6602 --- html/apps/print-file.mu.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'html/apps/print-file.mu.html') diff --git a/html/apps/print-file.mu.html b/html/apps/print-file.mu.html index 80a2d04a..b567e515 100644 --- a/html/apps/print-file.mu.html +++ b/html/apps/print-file.mu.html @@ -72,7 +72,7 @@ if ('onhashchange' in window) { 14 compare n, 1 15 { 16 break-if-> -17 print-string "usage: cat <filename>\n" +17 print-string-to-screen "usage: cat <filename>\n" 18 break $main-body 19 } 20 { @@ -83,13 +83,13 @@ if ('onhashchange' in window) { 25 var addr-in/eax: (addr handle buffered-file) <- address in 26 open *filename, 0, addr-in 27 } -28 var _in-addr/eax: (addr buffered-file) <- lookup in +28 var _in-addr/eax: (addr buffered-file) <- lookup in 29 var in-addr/ecx: (addr buffered-file) <- copy _in-addr 30 { 31 var c/eax: byte <- read-byte-buffered in-addr 32 compare c, 0xffffffff # EOF marker 33 break-if-= -34 print-byte c +34 print-byte-to-screen c 35 loop 36 } 37 } -- cgit 1.4.1-2-gfad0