about summary refs log tree commit diff stats
path: root/subx/058read.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/058read.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/058read.subx')
-rw-r--r--subx/058read.subx1
1 files changed, 1 insertions, 0 deletions
diff --git a/subx/058read.subx b/subx/058read.subx
index 90425a74..5bf83aa6 100644
--- a/subx/058read.subx
+++ b/subx/058read.subx
@@ -145,6 +145,7 @@ _read:  # fd : int, s : (address stream) -> num-bytes-read/EAX
     cd/syscall  0x80/imm8
     # add the result EAX to s->write
     01/add                          0/mod/indirect  6/rm32/ESI    .           .             .           0/r32/EAX   .               .                 # add EAX to *ESI
+$_read:end:
     # . restore registers
     5e/pop-to-ESI
     5b/pop-to-EBX