diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-10-28 12:41:04 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-10-28 12:41:04 -0700 |
commit | 93be389bef09b8a93a5bb925871a95fd974eafcb (patch) | |
tree | e658cabe148bd19c03d2f4ad045b047d02e0a27f /subx/057stop.subx | |
parent | 425cd42b137bf5ed2269d696711f56cea21282ec (diff) | |
download | mu-93be389bef09b8a93a5bb925871a95fd974eafcb.tar.gz |
4731
Diffstat (limited to 'subx/057stop.subx')
-rw-r--r-- | subx/057stop.subx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/subx/057stop.subx b/subx/057stop.subx index 8530ced6..a9e454b6 100644 --- a/subx/057stop.subx +++ b/subx/057stop.subx @@ -134,12 +134,12 @@ test-stop-skips-returns-on-exit: # discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP # call _test-stop-1(ed) - # push arg + # push args 50/push-EAX # call e8/call _test-stop-1/disp32 ## registers except ESP may be clobbered at this point - # restore arg + # restore args 58/pop-to-EAX # check that _test-stop-1 tried to call exit(1) # check-ints-equal(ed->value, 2, msg) # i.e. stop was called with value 1 @@ -163,12 +163,12 @@ _test-stop-1: # ed : (address exit-descriptor) 55/push-EBP 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP # _test-stop-2(ed) - # push arg + # push args ff 6/subop/push 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 8/disp8 . # push *(EBP+8) # call e8/call _test-stop-2/disp32 ## should never get past this point - # discard arg + # discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP # signal test failed: check-ints-equal(1, 0, msg) # push args |