about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--subx/051test.subx7
-rwxr-xr-xsubx/apps/crenshaw2-1bin3334 -> 3334 bytes
2 files changed, 3 insertions, 4 deletions
diff --git a/subx/051test.subx b/subx/051test.subx
index 273a5ec5..a9f854c0 100644
--- a/subx/051test.subx
+++ b/subx/051test.subx
@@ -44,17 +44,16 @@ check-ints-equal:  # (a : int, b : int, msg : (address array byte)) -> boolean
   eb/jump  $check-ints-equal:end/disp8
   # else:
 $check-ints-equal:else:
-  # copy third arg (msg) into ECX
-  8b/copy                         1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none  .           1/r32/ECX   0x10/disp8       .                # copy *(EBP+16) to ECX
-    # _write(2/stderr, ECX)
+    # _write(2/stderr, msg)
       # push args
+  8b/copy                         1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none  .           1/r32/ECX   0x10/disp8      .                 # copy *(EBP+16) to ECX
   51/push-ECX
   68/push  2/imm32/stderr
       # call
   e8/call  _write/disp32
       # discard args
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
-    # print newline
+    # _write(2/stderr, Newline)
       # push args
   68/push  Newline/imm32
   68/push  2/imm32/stderr
diff --git a/subx/apps/crenshaw2-1 b/subx/apps/crenshaw2-1
index 12c3051a..9ac09053 100755
--- a/subx/apps/crenshaw2-1
+++ b/subx/apps/crenshaw2-1
Binary files differ