about summary refs log tree commit diff stats
path: root/baremetal/115write-byte.subx
diff options
context:
space:
mode:
Diffstat (limited to 'baremetal/115write-byte.subx')
-rw-r--r--baremetal/115write-byte.subx2
1 files changed, 2 insertions, 0 deletions
diff --git a/baremetal/115write-byte.subx b/baremetal/115write-byte.subx
index 0eeef216..6935d65b 100644
--- a/baremetal/115write-byte.subx
+++ b/baremetal/115write-byte.subx
@@ -14,6 +14,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
@@ -35,6 +36,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