From c6f522007de6f96e79d52ae9db2e23333c318c8f Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 30 Nov 2018 20:01:41 -0800 Subject: 4811 --- html/subx/apps/crenshaw2-1b.subx.html | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'html/subx/apps/crenshaw2-1b.subx.html') diff --git a/html/subx/apps/crenshaw2-1b.subx.html b/html/subx/apps/crenshaw2-1b.subx.html index 2d5015b9..20439c1a 100644 --- a/html/subx/apps/crenshaw2-1b.subx.html +++ b/html/subx/apps/crenshaw2-1b.subx.html @@ -113,7 +113,7 @@ if ('onhashchange' in window) { 51 # . run-tests() 52 e8/call run-tests/disp32 53 #? e8/call test-get-num-reads-multiple-digits/disp32 - 54 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX + 54 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 3/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX 55 eb/jump $main:end/disp8 56 $run-main: 57 # - otherwise read a program from stdin and emit its translation to stdout @@ -128,7 +128,7 @@ if ('onhashchange' in window) { 66 50/push-EAX/ed 67 68/push 2/imm32/stderr 68 68/push 1/imm32/stdout - 69 68/push Stdin/imm32 + 69 68/push Stdin/imm32 70 # . . call 71 e8/call compile/disp32 72 # . . discard args @@ -204,7 +204,7 @@ if ('onhashchange' in window) { 142 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP 143 # . write(out, Newline) 144 # . . push args -145 68/push Newline/imm32 +145 68/push Newline/imm32 146 ff 6/subop/push 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 0xc/disp8 . # push *(EBP+12) 147 # . . call 148 e8/call write/disp32 @@ -220,7 +220,7 @@ if ('onhashchange' in window) { 158 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP 159 # . write(out, Newline) 160 # . . push args -161 68/push Newline/imm32 +161 68/push Newline/imm32 162 ff 6/subop/push 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 0xc/disp8 . # push *(EBP+12) 163 # . . call 164 e8/call write/disp32 @@ -236,7 +236,7 @@ if ('onhashchange' in window) { 174 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP 175 # . write(out, Newline) 176 # . . push args -177 68/push Newline/imm32 +177 68/push Newline/imm32 178 ff 6/subop/push 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 0xc/disp8 . # push *(EBP+12) 179 # . . call 180 e8/call write/disp32 @@ -285,7 +285,7 @@ if ('onhashchange' in window) { 223 # - if is-digit?(Look) expected(ed, err, "integer") 224 # . EAX = is-digit?(Look) 225 # . . push args -226 ff 6/subop/push 0/mod/indirect 5/rm32/.disp32 . . . Look/disp32 . # push *Look +226 ff 6/subop/push 0/mod/indirect 5/rm32/.disp32 . . . Look/disp32 . # push *Look 227 # . . call 228 e8/call is-digit?/disp32 229 # . . discard args @@ -336,7 +336,7 @@ if ('onhashchange' in window) { 274 $get-num:loop-stage2: 275 # out->data[out->write] = LSB(Look) 276 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/EDI 1/index/ECX . 3/r32/EBX 0xc/disp8 . # copy EDI+ECX+12 to EBX -277 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 0/r32/EAX Look/disp32 . # copy *Look to EAX +277 8b/copy 0/mod/indirect 5/rm32/.disp32 . . 0/r32/EAX Look/disp32 . # copy *Look to EAX 278 88/copy-byte 0/mod/indirect 3/rm32/EBX . . . 0/r32/AL . . # copy byte at AL to *EBX 279 # ++out->write 280 41/increment-ECX @@ -350,7 +350,7 @@ if ('onhashchange' in window) { 288 # if is-digit?(Look) loop 289 # . EAX = is-digit?(Look) 290 # . . push args -291 ff 6/subop/push 0/mod/indirect 5/rm32/.disp32 . . . Look/disp32 . # push *Look +291 ff 6/subop/push 0/mod/indirect 5/rm32/.disp32 . . . Look/disp32 . # push *Look 292 # . . call 293 e8/call is-digit?/disp32 294 # . . discard args @@ -451,7 +451,7 @@ if ('onhashchange' in window) { 389 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0x10/imm32 # add to ESP 390 # check-ints-equal(*_test-output-stream.data, '3') 391 # . . push args -392 68/push "F - test-get-num-reads-single-digit"/imm32 +392 68/push "F - test-get-num-reads-single-digit"/imm32 393 68/push 0x33/imm32 394 b8/copy-to-EAX _test-output-stream/imm32 395 ff 6/subop/push 1/mod/*+disp8 0/rm32/EAX . . . . 0xc/disp8 . # push *(EAX+12) @@ -536,7 +536,7 @@ if ('onhashchange' in window) { 474 # check that get-num tried to call exit(1) 475 # . check-ints-equal(ed->value, 2, msg) # i.e. stop was called with value 1 476 # . . push args -477 68/push "F - test-get-num-aborts-on-non-digit-in-Look"/imm32 +477 68/push "F - test-get-num-aborts-on-non-digit-in-Look"/imm32 478 68/push 2/imm32 479 # . . push ed->value 480 ff 6/subop/push 1/mod/*+disp8 0/rm32/EAX . . . . 4/disp8 . # push *(EAX+4) @@ -627,7 +627,7 @@ if ('onhashchange' in window) { 565 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0x10/imm32 # add to ESP 566 # check-ints-equal(*_test-output-stream.data, '3456') 567 # . . push args -568 68/push "F - test-get-num-reads-multiple-digits"/imm32 +568 68/push "F - test-get-num-reads-multiple-digits"/imm32 569 68/push 0x36353433/imm32 570 b8/copy-to-EAX _test-output-stream/imm32 571 ff 6/subop/push 1/mod/*+disp8 0/rm32/EAX . . . . 0xc/disp8 . # push *(EAX+12) @@ -718,7 +718,7 @@ if ('onhashchange' in window) { 656 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0x10/imm32 # add to ESP 657 # check-ints-equal(*_test-output-stream.data, '3456') 658 # . . push args -659 68/push "F - test-get-num-reads-multiple-digits-followed-by-nondigit"/imm32 +659 68/push "F - test-get-num-reads-multiple-digits-followed-by-nondigit"/imm32 660 68/push 0x36353433/imm32 661 b8/copy-to-EAX _test-output-stream/imm32 662 ff 6/subop/push 1/mod/*+disp8 0/rm32/EAX . . . . 0xc/disp8 . # push *(EAX+12) @@ -740,7 +740,7 @@ if ('onhashchange' in window) { 678 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP 679 # write(f, "Error: ") 680 # . . push args -681 68/push "Error: "/imm32 +681 68/push "Error: "/imm32 682 ff 6/subop/push 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 0xc/disp8 . # push *(EBP+12) 683 # . . call 684 e8/call write/disp32 @@ -764,7 +764,7 @@ if ('onhashchange' in window) { 702 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP 703 # write(f, Newline) 704 # . . push args -705 68/push Newline/imm32 +705 68/push Newline/imm32 706 ff 6/subop/push 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 0xc/disp8 . # push *(EBP+12) 707 # . . call 708 e8/call write/disp32 @@ -789,7 +789,7 @@ if ('onhashchange' in window) { 727 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP 728 # write(f, "Error: ") 729 # . . push args -730 68/push "Error: "/imm32 +730 68/push "Error: "/imm32 731 ff 6/subop/push 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 0xc/disp8 . # push *(EBP+12) 732 # . . call 733 e8/call write/disp32 @@ -805,7 +805,7 @@ if ('onhashchange' in window) { 743 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP 744 # write(f, Newline) 745 # . . push args -746 68/push Newline/imm32 +746 68/push Newline/imm32 747 ff 6/subop/push 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 0xc/disp8 . # push *(EBP+12) 748 # . . call 749 e8/call write/disp32 @@ -838,7 +838,7 @@ if ('onhashchange' in window) { 776 # . . discard args 777 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP 778 # save EAX to Look -779 89/copy 0/mod/indirect 5/rm32/.disp32 . . 0/r32/EAX Look/disp32 . # copy EAX to *Look +779 89/copy 0/mod/indirect 5/rm32/.disp32 . . 0/r32/EAX Look/disp32 . # copy EAX to *Look 780 # . restore registers 781 58/pop-to-EAX 782 # . epilog -- cgit 1.4.1-2-gfad0