From 8aeb85f04ee68b960a6d326aca1a17dec2f6d019 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 9 Dec 2019 01:26:58 -0800 Subject: 5806 --- html/074write-stream-data.subx.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 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 85acd34a..9f9f5aa4 100644 --- a/html/074write-stream-data.subx.html +++ b/html/074write-stream-data.subx.html @@ -67,7 +67,7 @@ if ('onhashchange' in window) { 8 # - construct a 'maximal slice' and pass it to write-slice-buffered 9 # - flush the buffered-file and pass the stream directly to its fd (disabling buffering) 10 # we'll go with the first way for now - 11 write-stream-data: # f : (address buffered-file), s : (address stream) + 11 write-stream-data: # f : (address buffered-file), s : (address stream byte) 12 # . prologue 13 55/push-ebp 14 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp @@ -77,8 +77,8 @@ if ('onhashchange' in window) { 18 56/push-esi 19 # esi = s 20 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 6/r32/esi 0xc/disp8 . # copy *(ebp+12) to esi - 21 # var slice/ecx = {s->data, s->data + s->write} - 22 # . push s->data + s->write + 21 # var slice/ecx : (ref slice) = {s->data, &s->data[s->write]} + 22 # . push &s->data[s->write] 23 8b/copy 0/mod/indirect 6/rm32/esi . . . 0/r32/eax . . # copy *esi to eax 24 8d/copy-address 1/mod/*+disp8 4/rm32/sib 6/base/esi 0/index/eax . 0/r32/eax 0xc/disp8 . # copy esi+eax+12 to eax 25 50/push-eax @@ -92,7 +92,7 @@ if ('onhashchange' in window) { 33 51/push-ecx 34 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 8/disp8 . # push *(ebp+8) 35 # . . call - 36 e8/call write-slice-buffered/disp32 + 36 e8/call write-slice-buffered/disp32 37 # . . discard args 38 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp 39 $write-stream-data:end: @@ -119,16 +119,16 @@ if ('onhashchange' in window) { 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->buffer) + 63 # . clear-stream($_test-output-buffered-file->buffer) 64 # . . push args - 65 68/push _test-output-buffered-file->buffer/imm32 + 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 + 72 68/push _test-input-stream/imm32 73 # . . call 74 e8/call clear-stream/disp32 75 # . . discard args @@ -137,14 +137,14 @@ if ('onhashchange' in window) { 78 # . write(_test-input-stream, "abcd") 79 # . . push args 80 68/push "abcd"/imm32 - 81 68/push _test-input-stream/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 + 88 68/push _test-input-stream/imm32 89 68/push _test-output-buffered-file/imm32 90 # . . call 91 e8/call write-stream-data/disp32 @@ -164,7 +164,7 @@ if ('onhashchange' in window) { 105 68/push "abcd"/imm32 106 68/push _test-output-stream/imm32 107 # . . call -108 e8/call check-stream-equal/disp32 +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 -- cgit 1.4.1-2-gfad0