about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-05-29 16:41:51 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-29 16:41:51 -0700
commiteb40c70e267b83c3d70a85493ad0be306857f846 (patch)
treec1a68dcc4851aaebb3fcf81485c8b25964805fb2
parentd4a7c53519fb8373b7ec71a47084a4c64900c64d (diff)
downloadmu-eb40c70e267b83c3d70a85493ad0be306857f846.tar.gz
6440
Minor reordering; the hacky flush-stdout is now only needed if we ever
call print-int32-to-screen.
-rw-r--r--103screen.subx12
-rwxr-xr-xapps/mubin256188 -> 256201 bytes
2 files changed, 6 insertions, 6 deletions
diff --git a/103screen.subx b/103screen.subx
index 2c8f733f..28437259 100644
--- a/103screen.subx
+++ b/103screen.subx
@@ -154,26 +154,26 @@ $print-byte:end:
     c3/return
 
 # just because Mu has no support for global variables yet
-flush-stdout:
+print-int32-to-screen:  # n: int
     # . prologue
     55/push-ebp
     89/<- %ebp 4/r32/esp
     #
-    (flush Stdout)
-$flush-stdout:end:
+    (print-int32-buffered Stdout *(ebp+8))
+$print-int32-to-screen:end:
     # . epilogue
     89/<- %esp 5/r32/ebp
     5d/pop-to-ebp
     c3/return
 
 # just because Mu has no support for global variables yet
-print-int32-to-screen:  # n: int
+flush-stdout:
     # . prologue
     55/push-ebp
     89/<- %ebp 4/r32/esp
     #
-    (print-int32-buffered Stdout *(ebp+8))
-$print-int32-to-screen:end:
+    (flush Stdout)
+$flush-stdout:end:
     # . epilogue
     89/<- %esp 5/r32/ebp
     5d/pop-to-ebp
diff --git a/apps/mu b/apps/mu
index ff284682..c3ae1294 100755
--- a/apps/mu
+++ b/apps/mu
Binary files differ