about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-10 10:20:27 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-10 10:20:27 -0700
commit2a15acd51025c9a6e63865b6ba7b3fbbd4bdd802 (patch)
tree6f3a44a2d44e28ee18d8580ad9dfccdbadeeddb6
parent8423ad4aca6d2f327d9db495ba57be92885b3f1b (diff)
downloadmu-2a15acd51025c9a6e63865b6ba7b3fbbd4bdd802.tar.gz
4677
-rw-r--r--subx/051test.subx4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/051test.subx b/subx/051test.subx
index 6cc9c541..f60ba158 100644
--- a/subx/051test.subx
+++ b/subx/051test.subx
@@ -12,7 +12,7 @@ check-ints-equal:  # (a : int, b : int, msg : (address array byte)) -> boolean
   # save registers
   51/push-ECX
   53/push-EBX
-  # load args into EAX, EBX and ECX
+  # load first 2 args into EAX and EBX
   8b/copy                         1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none  .           0/r32/EAX   0x8/disp8       .                 # copy *(EBP+8) to EAX
   8b/copy                         1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none  .           3/r32/EBX   0xc/disp8       .                 # copy *(EBP+12) to EBX
   # if EAX == b/EBX
@@ -29,7 +29,7 @@ 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 msg into ECX
+  # 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
     # print(ECX)
       # push args