diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-10-28 12:44:34 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-10-28 12:45:11 -0700 |
commit | bb5cc54f9673ed0a6e5ef6f471e1ed7af1892c19 (patch) | |
tree | 96abb57feb7cb76ea34dda2c404cc8d11f2b9cfc | |
parent | 93be389bef09b8a93a5bb925871a95fd974eafcb (diff) | |
download | mu-bb5cc54f9673ed0a6e5ef6f471e1ed7af1892c19.tar.gz |
4732
-rw-r--r-- | subx/051test.subx | 7 | ||||
-rwxr-xr-x | subx/apps/crenshaw2-1 | bin | 3334 -> 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 |