From ba196240ff575d6226751f4373ae60eff3fba0bf Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 24 Nov 2018 20:25:54 -0800 Subject: 4770 --- subx/apps/crenshaw2-1.subx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'subx') diff --git a/subx/apps/crenshaw2-1.subx b/subx/apps/crenshaw2-1.subx index a7b8772c..fd877f9b 100644 --- a/subx/apps/crenshaw2-1.subx +++ b/subx/apps/crenshaw2-1.subx @@ -29,7 +29,7 @@ # op subop mod rm32 base index scale r32 # 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes -# main: +# main: run tests if necessary, call 'compile' if not # prolog 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP # if (argc > 1) @@ -52,10 +52,10 @@ eb/jump $main:end/disp8 $run-main: # allocate space for an exit-descriptor - # var ed/EAX : (address exit-descriptor) + # var ed/EAX : (address exit-descriptor) 81 5/subop/subtract 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # subtract from ESP 8d/copy-address 0/mod/indirect 4/rm32/sib 4/base/ESP 4/index/none . 0/r32/EAX . . # copy ESP to EAX - # clear ed->target (so we really exit) + # clear ed->target (so we really exit) c7/copy 0/mod/direct 0/rm32/EAX . . . . . 0/imm32 # copy to *EAX # expected(ed, 2/stderr, "integer") # push args @@ -273,7 +273,7 @@ test-get-num-reads-single-digit: # push args 68/push _test-buffered-file/imm32 # call - e8/call get-char/disp32 + e8/call get-char/disp32 # discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP ## get-num(in, out, err, ed) @@ -453,7 +453,7 @@ test-get-num-reads-multiple-digits: # push args 68/push _test-buffered-file/imm32 # call - e8/call get-char/disp32 + e8/call get-char/disp32 # discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP ## get-num(in, out, err, ed) @@ -546,7 +546,7 @@ test-get-num-reads-multiple-digits-followed-by-nondigit: # push args 68/push _test-buffered-file/imm32 # call - e8/call get-char/disp32 + e8/call get-char/disp32 # discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP ## get-num(in, out, err, ed) -- cgit 1.4.1-2-gfad0 08ed520476f2324b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10