diff options
-rw-r--r-- | subx/051test.subx | 4 |
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 |