diff options
Diffstat (limited to 'apps/crenshaw2-1.subx')
-rw-r--r-- | apps/crenshaw2-1.subx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/crenshaw2-1.subx b/apps/crenshaw2-1.subx index e4e78e9c..5d1c9c0c 100644 --- a/apps/crenshaw2-1.subx +++ b/apps/crenshaw2-1.subx @@ -62,7 +62,7 @@ Entry: # run tests if necessary, call 'compile' if not 74/jump-if-equal $run-main/disp8 # run-tests() e8/call run-tests/disp32 - # return *Num-test-failures + # syscall(exit, *Num-test-failures) 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/ebx Num-test-failures/disp32 # copy *Num-test-failures to ebx eb/jump $main:end/disp8 $run-main: @@ -73,7 +73,7 @@ $run-main: # configure ed to really exit() # . ed->target = 0 c7 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0/imm32 # copy to *eax - # return compile(Stdin, 1/stdout, 2/stderr, ed) + # compile(Stdin, 1/stdout, 2/stderr, ed) # . . push args 50/push-eax/ed 68/push 2/imm32/stderr @@ -83,7 +83,7 @@ $run-main: e8/call compile/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0x10/imm32 # add to esp - # . syscall(exit, 0) + # syscall(exit, 0) bb/copy-to-ebx 0/imm32 $main:end: b8/copy-to-eax 1/imm32/exit |