about summary refs log tree commit diff stats
path: root/304screen.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-10-04 11:12:23 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-04 11:18:23 -0700
commitb8d613e7c2379b26cd4e989e736c6d389e78a5fe (patch)
tree38a364dad383e2d8e41ff4842c25c87eff56058f /304screen.subx
parent0371140abecec1b3902ed58282cfb5ea0fcd2f69 (diff)
downloadmu-b8d613e7c2379b26cd4e989e736c6d389e78a5fe.tar.gz
6946 - print floats somewhat intuitively in hex
Diffstat (limited to '304screen.subx')
-rw-r--r--304screen.subx13
1 files changed, 13 insertions, 0 deletions
diff --git a/304screen.subx b/304screen.subx
index 8ec33fd5..c961492f 100644
--- a/304screen.subx
+++ b/304screen.subx
@@ -236,6 +236,19 @@ $print-int32-hex-to-real-screen:end:
     5d/pop-to-ebp
     c3/return
 
+print-int32-hex-bits-to-real-screen:  # n: int, bits: int
+    # . prologue
+    55/push-ebp
+    89/<- %ebp 4/r32/esp
+    #
+    (write-int32-hex-bits-buffered Stdout *(ebp+8) *(ebp+0xc) *(ebp+0x10))
+    (flush Stdout)
+$print-int32-hex-bits-to-real-screen:end:
+    # . epilogue
+    89/<- %esp 5/r32/ebp
+    5d/pop-to-ebp
+    c3/return
+
 print-int32-decimal-to-real-screen:  # n: int
     # . prologue
     55/push-ebp