From 8aeb85f04ee68b960a6d326aca1a17dec2f6d019 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 9 Dec 2019 01:26:58 -0800 Subject: 5806 --- html/064write-byte.subx.html | 56 ++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'html/064write-byte.subx.html') diff --git a/html/064write-byte.subx.html b/html/064write-byte.subx.html index bb2a4146..8893e7da 100644 --- a/html/064write-byte.subx.html +++ b/html/064write-byte.subx.html @@ -19,10 +19,10 @@ a { color:inherit; } .subxMinorFunction { color: #875f5f; } .LineNr { } .subxS1Comment { color: #0000af; } -.Constant { color: #008787; } .SpecialChar { color: #d70000; } -.Normal { color: #000000; background-color: #c6c6c6; padding-bottom: 1px; } +.Constant { color: #008787; } .subxH1Comment { color: #005faf; text-decoration: underline; } +.Normal { color: #000000; background-color: #c6c6c6; padding-bottom: 1px; } .subxS2Comment { color: #8a8a8a; } .subxTest { color: #5f8700; } --> @@ -69,10 +69,10 @@ if ('onhashchange' in window) { 7 == data 8 9 # The buffered file for standard output. - 10 Stdout: - 11 # file descriptor or (address stream) + 10 Stdout: # (ref buffered-file) + 11 # file descriptor or (address stream byte) 12 1/imm32 # standard output - 13 Stdout->buffer: + 13 $Stdout->buffer: 14 # inlined fields for a stream 15 # current write index 16 0/imm32 @@ -177,9 +177,9 @@ if ('onhashchange' in window) { 115 e8/call clear-stream/disp32 116 # . . discard args 117 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp -118 # . clear-stream(_test-buffered-file->buffer) +118 # . clear-stream($_test-buffered-file->buffer) 119 # . . push args -120 68/push _test-buffered-file->buffer/imm32 +120 68/push $_test-buffered-file->buffer/imm32 121 # . . call 122 e8/call clear-stream/disp32 123 # . . discard args @@ -187,14 +187,14 @@ if ('onhashchange' in window) { 125 # write-byte-buffered(_test-buffered-file, 'A') 126 # . . push args 127 68/push 0x41/imm32 -128 68/push _test-buffered-file/imm32 +128 68/push _test-buffered-file/imm32 129 # . . call 130 e8/call write-byte-buffered/disp32 131 # . . discard args 132 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp 133 # flush(_test-buffered-file) 134 # . . push args -135 68/push _test-buffered-file/imm32 +135 68/push _test-buffered-file/imm32 136 # . . call 137 e8/call flush/disp32 138 # . . discard args @@ -205,7 +205,7 @@ if ('onhashchange' in window) { 143 68/push "A"/imm32 144 68/push _test-stream/imm32 145 # . . call -146 e8/call check-stream-equal/disp32 +146 e8/call check-stream-equal/disp32 147 # . . discard args 148 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0xc/imm32 # add to esp 149 # . end @@ -221,18 +221,18 @@ if ('onhashchange' in window) { 159 e8/call clear-stream/disp32 160 # . . discard args 161 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp -162 # . clear-stream(_test-buffered-file->buffer) +162 # . clear-stream($_test-buffered-file->buffer) 163 # . . push args -164 68/push _test-buffered-file->buffer/imm32 +164 68/push $_test-buffered-file->buffer/imm32 165 # . . call 166 e8/call clear-stream/disp32 167 # . . discard args 168 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp 169 # fill up the buffer for _test-buffered-file -170 # . write(_test-buffered-file->buffer, "abcdef") +170 # . write($_test-buffered-file->buffer, "abcdef") 171 # . . push args 172 68/push "abcdef"/imm32 -173 68/push _test-buffered-file->buffer/imm32 +173 68/push $_test-buffered-file->buffer/imm32 174 # . . call 175 e8/call write/disp32 176 # . . discard args @@ -240,14 +240,14 @@ if ('onhashchange' in window) { 178 # write-byte-buffered(_test-buffered-file, 'g') 179 # . . push args 180 68/push 0x67/imm32 -181 68/push _test-buffered-file/imm32 +181 68/push _test-buffered-file/imm32 182 # . . call 183 e8/call write-byte-buffered/disp32 184 # . . discard args 185 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp 186 # flush(_test-buffered-file) 187 # . . push args -188 68/push _test-buffered-file/imm32 +188 68/push _test-buffered-file/imm32 189 # . . call 190 e8/call flush/disp32 191 # . . discard args @@ -258,7 +258,7 @@ if ('onhashchange' in window) { 196 68/push "abcdefg"/imm32 197 68/push _test-stream/imm32 198 # . . call -199 e8/call check-stream-equal/disp32 +199 e8/call check-stream-equal/disp32 200 # . . discard args 201 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0xc/imm32 # add to esp 202 # . end @@ -267,7 +267,7 @@ if ('onhashchange' in window) { 205 # - variant without buffering 206 207 # Write lower byte of 'n' to 'f'. -208 append-byte: # f : (address stream), n : int +208 append-byte: # f : (address stream byte), n : int 209 # . prologue 210 55/push-ebp 211 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp @@ -304,7 +304,7 @@ if ('onhashchange' in window) { 242 68/push "append-byte: out of space\n"/imm32 243 68/push 2/imm32/stderr 244 # . . call -245 e8/call _write/disp32 +245 e8/call _write/disp32 246 # . . discard args 247 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp 248 # . syscall(exit, 1) @@ -337,7 +337,7 @@ if ('onhashchange' in window) { 275 68/push "A"/imm32 276 68/push _test-stream/imm32 277 # . . call -278 e8/call check-stream-equal/disp32 +278 e8/call check-stream-equal/disp32 279 # . . discard args 280 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0xc/imm32 # add to esp 281 # . end @@ -345,7 +345,7 @@ if ('onhashchange' in window) { 283 284 == data 285 -286 _test-output-stream: +286 _test-output-stream: # (ref stream byte) 287 # current write index 288 0/imm32 289 # current read index @@ -387,10 +387,10 @@ if ('onhashchange' in window) { 325 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 326 327 # a test buffered file for _test-output-stream -328 _test-output-buffered-file: -329 # file descriptor or (address stream) +328 _test-output-buffered-file: # (ref buffered-file) +329 # file descriptor or (address stream byte) 330 _test-output-stream/imm32 -331 _test-output-buffered-file->buffer: +331 $_test-output-buffered-file->buffer: 332 # current write index 333 0/imm32 334 # current read index @@ -400,7 +400,7 @@ if ('onhashchange' in window) { 338 # data 339 00 00 00 00 00 00 # 6 bytes 340 -341 _test-error-stream: +341 _test-error-stream: # (ref stream byte) 342 # current write index 343 0/imm32 344 # current read index @@ -418,10 +418,10 @@ if ('onhashchange' in window) { 356 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 357 358 # a test buffered file for _test-error-stream -359 _test-error-buffered-file: -360 # file descriptor or (address stream) +359 _test-error-buffered-file: # (ref buffered-file) +360 # file descriptor or (address stream byte) 361 _test-error-stream/imm32 -362 _test-error-buffered-file->buffer: +362 $_test-error-buffered-file->buffer: 363 # current write index 364 0/imm32 365 # current read index -- cgit 1.4.1-2-gfad0