about summary refs log tree commit diff stats
path: root/subx/050_write.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/050_write.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/050_write.subx')
-rw-r--r--subx/050_write.subx1
1 files changed, 1 insertions, 0 deletions
diff --git a/subx/050_write.subx b/subx/050_write.subx
index a82931db..5b8b4d4f 100644
--- a/subx/050_write.subx
+++ b/subx/050_write.subx
@@ -32,6 +32,7 @@ _write:  # fd : int, s : (address array byte) -> <void>
     # . syscall
     b8/copy-to-EAX  4/imm32/write
     cd/syscall  0x80/imm8
+$_write:end:
     # . restore registers
     5b/pop-to-EBX
     5a/pop-to-EDX