about summary refs log tree commit diff stats
path: root/059stop.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-01-27 00:36:44 -0800
committerKartik Agaram <vc@akkartik.com>2020-01-27 00:36:44 -0800
commit71eb22a5bf94f5fa0a3c95212450e3c6a1a6a990 (patch)
tree56307b5145be44b2239d3c782234309ed714f1b6 /059stop.subx
parent1a65c3af0f797892f5981f8ebd33c275c1ef06b0 (diff)
downloadmu-71eb22a5bf94f5fa0a3c95212450e3c6a1a6a990.tar.gz
5924
Diffstat (limited to '059stop.subx')
-rw-r--r--059stop.subx14
1 files changed, 7 insertions, 7 deletions
diff --git a/059stop.subx b/059stop.subx
index e883cbc7..bb7ca779 100644
--- a/059stop.subx
+++ b/059stop.subx
@@ -16,8 +16,8 @@
 # input target with an output status parameter into a type called 'exit-descriptor'.
 #
 # So the exit-descriptor looks like this:
-#   target : address  # return address for 'stop' to unwind to
-#   value : int  # exit status stop was called with
+#   target: address  # return address for 'stop' to unwind to
+#   value: int  # exit status stop was called with
 #
 # 'stop' thus takes two parameters: an exit-descriptor and the exit status.
 #
@@ -41,7 +41,7 @@
 # the stack.
 # Ugly that we need to know the size of args. Don't allocate variables between
 # tailor-exit-descriptor and the call it's for.
-tailor-exit-descriptor:  # ed : (addr exit-descriptor), nbytes : int
+tailor-exit-descriptor:  # ed: (addr exit-descriptor), nbytes: int
     # . prologue
     55/push-ebp
     89/copy                         3/mod/direct    5/rm32/ebp    .           .             .           4/r32/esp   .               .                 # copy esp to ebp
@@ -89,7 +89,7 @@ $tailor-exit-descriptor:end:
     5d/pop-to-ebp
     c3/return
 
-stop:  # ed : (addr exit-descriptor), value : int
+stop:  # ed: (addr exit-descriptor), value: int
     # no prologue; one way or another, we're going to clobber registers
     # eax = ed
     8b/copy                         1/mod/*+disp8   4/rm32/sib    4/base/esp  4/index/none  .           0/r32/eax   4/disp8         .                 # copy *(esp+4) to eax
@@ -123,7 +123,7 @@ test-stop-skips-returns-on-exit:
     # Make room for an exit descriptor on the stack. That's almost always the
     # right place for it, available only as long as it's legal to use. Once this
     # containing function returns we'll need a new exit descriptor.
-    # var ed/eax : exit-descriptor
+    # var ed/eax: exit-descriptor
     68/push  0/imm32
     68/push  0/imm32
     89/copy                         3/mod/direct    0/rm32/eax    .           .             .           4/r32/esp   .               .                 # copy esp to eax
@@ -161,7 +161,7 @@ test-stop-skips-returns-on-exit:
     5d/pop-to-ebp
     c3/return
 
-_test-stop-1:  # ed : (addr exit-descriptor)
+_test-stop-1:  # ed: (addr exit-descriptor)
     # . prologue
     55/push-ebp
     89/copy                         3/mod/direct    5/rm32/ebp    .           .             .           4/r32/esp   .               .                 # copy esp to ebp
@@ -188,7 +188,7 @@ $_test-stop-1:dead-end:
     5d/pop-to-ebp
     c3/return
 
-_test-stop-2:  # ed : (addr exit-descriptor)
+_test-stop-2:  # ed: (addr exit-descriptor)
     # . prologue
     55/push-ebp
     89/copy                         3/mod/direct    5/rm32/ebp    .           .             .           4/r32/esp   .               .                 # copy esp to ebp