about summary refs log tree commit diff stats
path: root/subx/062write-byte.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-12-04 00:29:06 -0800
committerKartik Agaram <vc@akkartik.com>2018-12-04 00:29:06 -0800
commitcf02c20bb02f5d2fbfee5557baf68c0e2ca5a042 (patch)
tree8f1d896a0134e8353ccf01add61fb6c732103861 /subx/062write-byte.subx
parent7cb326df5bb9739d948dd4f8b32019f1bf6e4ef3 (diff)
downloadmu-cf02c20bb02f5d2fbfee5557baf68c0e2ca5a042.tar.gz
4832
Let's start adding ':end' labels in all functions, just because it helps
us visualize where function calls end in traces, thanks to the '--map'
commandline argument.
Diffstat (limited to 'subx/062write-byte.subx')
-rw-r--r--subx/062write-byte.subx2
1 files changed, 2 insertions, 0 deletions
diff --git a/subx/062write-byte.subx b/subx/062write-byte.subx
index fedde5d9..178b5004 100644
--- a/subx/062write-byte.subx
+++ b/subx/062write-byte.subx
@@ -73,6 +73,7 @@ $write-byte:to-stream:
     88/copy-byte                    1/mod/*+disp8   4/rm32/sib    6/base/ESI  1/index/ECX   .           0/r32/AL    0x10/disp8      .                 # copy AL to *(ESI+ECX+16)
     # ++f->read
     ff          0/subop/increment   1/mod/*+disp8   6/rm32/ESI    .           .             .           .           4/disp8         .                 # increment *(ESI+4)
+$write-byte:end:
     # . restore registers
     5e/pop-to-ESI
     59/pop-to-ECX
@@ -99,6 +100,7 @@ flush:  # f : (address buffered-file) -> <void>
     e8/call  write-stream/disp32
       # . . discard args
     81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
+$flush:end:
     # . restore registers
     59/pop-to-ECX
     58/pop-to-EAX