From 2a15acd51025c9a6e63865b6ba7b3fbbd4bdd802 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 10 Oct 2018 10:20:27 -0700 Subject: 4677 --- subx/051test.subx | 4 ++-- 1 file 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 -- cgit 1.4.1-2-gfad0