From 999c529cb972079df3bc693945be34a77336ddf4 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 26 Oct 2019 23:51:14 -0700 Subject: 5716 --- html/074write-stream-data.subx.html | 106 ++++++++++++++++++------------------ 1 file changed, 52 insertions(+), 54 deletions(-) (limited to 'html/074write-stream-data.subx.html') diff --git a/html/074write-stream-data.subx.html b/html/074write-stream-data.subx.html index fcc2f27f..85acd34a 100644 --- a/html/074write-stream-data.subx.html +++ b/html/074write-stream-data.subx.html @@ -114,65 +114,63 @@ if ('onhashchange' in window) { 55 # setup 56 # . clear-stream(_test-output-stream) 57 # . . push args - 58 68/push _test-output-stream/imm32 + 58 68/push _test-output-stream/imm32 59 # . . call 60 e8/call clear-stream/disp32 61 # . . discard args 62 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp - 63 # . clear-stream(_test-output-buffered-file+4) + 63 # . clear-stream(_test-output-buffered-file->buffer) 64 # . . push args - 65 b8/copy-to-eax _test-output-buffered-file/imm32 - 66 05/add-to-eax 4/imm32 - 67 50/push-eax - 68 # . . call - 69 e8/call clear-stream/disp32 - 70 # . . discard args - 71 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp - 72 # . clear-stream(_test-input-stream) - 73 # . . push args - 74 68/push _test-input-stream/imm32 - 75 # . . call - 76 e8/call clear-stream/disp32 - 77 # . . discard args - 78 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp - 79 # initialize input - 80 # . write(_test-input-stream, "abcd") - 81 # . . push args - 82 68/push "abcd"/imm32 - 83 68/push _test-input-stream/imm32 - 84 # . . call - 85 e8/call write/disp32 - 86 # . . discard args - 87 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp - 88 # write-stream-data(_test-output-buffered-file, _test-input-stream) - 89 # . . push args - 90 68/push _test-input-stream/imm32 - 91 68/push _test-output-buffered-file/imm32 - 92 # . . call - 93 e8/call write-stream-data/disp32 - 94 # . . discard args - 95 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp - 96 # check that the write happened as expected - 97 # . flush(_test-output-buffered-file) - 98 # . . push args - 99 68/push _test-output-buffered-file/imm32 -100 # . . call -101 e8/call flush/disp32 -102 # . . discard args -103 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp -104 # . check-stream-equal(_test-output-stream, "abcd", msg) -105 # . . push args -106 68/push "F - test-write-stream-data"/imm32 -107 68/push "abcd"/imm32 -108 68/push _test-output-stream/imm32 -109 # . . call -110 e8/call check-stream-equal/disp32 -111 # . . discard args -112 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0xc/imm32 # add to esp -113 # . epilogue -114 89/copy 3/mod/direct 4/rm32/esp . . . 5/r32/ebp . . # copy ebp to esp -115 5d/pop-to-ebp -116 c3/return + 65 68/push _test-output-buffered-file->buffer/imm32 + 66 # . . call + 67 e8/call clear-stream/disp32 + 68 # . . discard args + 69 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp + 70 # . clear-stream(_test-input-stream) + 71 # . . push args + 72 68/push _test-input-stream/imm32 + 73 # . . call + 74 e8/call clear-stream/disp32 + 75 # . . discard args + 76 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp + 77 # initialize input + 78 # . write(_test-input-stream, "abcd") + 79 # . . push args + 80 68/push "abcd"/imm32 + 81 68/push _test-input-stream/imm32 + 82 # . . call + 83 e8/call write/disp32 + 84 # . . discard args + 85 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp + 86 # write-stream-data(_test-output-buffered-file, _test-input-stream) + 87 # . . push args + 88 68/push _test-input-stream/imm32 + 89 68/push _test-output-buffered-file/imm32 + 90 # . . call + 91 e8/call write-stream-data/disp32 + 92 # . . discard args + 93 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp + 94 # check that the write happened as expected + 95 # . flush(_test-output-buffered-file) + 96 # . . push args + 97 68/push _test-output-buffered-file/imm32 + 98 # . . call + 99 e8/call flush/disp32 +100 # . . discard args +101 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp +102 # . check-stream-equal(_test-output-stream, "abcd", msg) +103 # . . push args +104 68/push "F - test-write-stream-data"/imm32 +105 68/push "abcd"/imm32 +106 68/push _test-output-stream/imm32 +107 # . . call +108 e8/call check-stream-equal/disp32 +109 # . . discard args +110 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0xc/imm32 # add to esp +111 # . epilogue +112 89/copy 3/mod/direct 4/rm32/esp . . . 5/r32/ebp . . # copy ebp to esp +113 5d/pop-to-ebp +114 c3/return -- cgit 1.4.1-2-gfad0