about summary refs log tree commit diff stats
path: root/115write-byte.subx
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-02-27 06:55:41 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-02-27 06:55:41 -0800
commita9e0cb7cc9da462c6e7886edfb554d7266e84c18 (patch)
tree80cd66ef67cf32b24603e2081165b1a2f89ea818 /115write-byte.subx
parentc782d38f0b4d263d243415495b8e9d9c84f119db (diff)
downloadmu-a9e0cb7cc9da462c6e7886edfb554d7266e84c18.tar.gz
7817
Detour: writing float to stream.
In the process I found a bug at the SubX layer X-(
Diffstat (limited to '115write-byte.subx')
-rw-r--r--115write-byte.subx2
1 files changed, 2 insertions, 0 deletions
diff --git a/115write-byte.subx b/115write-byte.subx
index 0a4e3c7d..d38db24c 100644
--- a/115write-byte.subx
+++ b/115write-byte.subx
@@ -210,6 +210,7 @@ append-byte:  # f: (addr stream byte), n: int
     55/push-ebp
     89/copy                         3/mod/direct    5/rm32/ebp    .           .             .           4/r32/esp   .               .                 # copy esp to ebp
     # . save registers
+    50/push-eax
     51/push-ecx
     57/push-edi
     # edi = f
@@ -231,6 +232,7 @@ $append-byte:end:
     # . restore registers
     5f/pop-to-edi
     59/pop-to-ecx
+    58/pop-to-eax
     # . epilogue
     89/copy                         3/mod/direct    4/rm32/esp    .           .             .           5/r32/ebp   .               .                 # copy ebp to esp
     5d/pop-to-ebp