diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-10-26 23:51:14 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-10-26 23:51:14 -0700 |
commit | 999c529cb972079df3bc693945be34a77336ddf4 (patch) | |
tree | 866ef92e03a5206ec95c75996788d9f4ae207981 /html/apps/braces.subx.html | |
parent | 0fba3393a5becfb38dea19464e02dc17a64b7574 (diff) | |
download | mu-999c529cb972079df3bc693945be34a77336ddf4.tar.gz |
5716
Diffstat (limited to 'html/apps/braces.subx.html')
-rw-r--r-- | html/apps/braces.subx.html | 200 |
1 files changed, 91 insertions, 109 deletions
diff --git a/html/apps/braces.subx.html b/html/apps/braces.subx.html index 7a5d5d7c..498489b5 100644 --- a/html/apps/braces.subx.html +++ b/html/apps/braces.subx.html @@ -136,8 +136,8 @@ if ('onhashchange' in window) { <span id="L77" class="LineNr"> 77 </span> <span id="L78" class="LineNr"> 78 </span><span class="subxFunction">subx-braces</span>: <span class="subxComment"># in : (address buffered-file), out : (address buffered-file)</span> <span id="L79" class="LineNr"> 79 </span> <span class="subxComment"># pseudocode:</span> -<span id="L80" class="LineNr"> 80 </span> <span class="subxComment"># var line = new-stream(512, 1)</span> -<span id="L81" class="LineNr"> 81 </span> <span class="subxComment"># var label-stack : (address stack) = new-stack(32*4) # at most 32 levels of nesting</span> +<span id="L80" class="LineNr"> 80 </span> <span class="subxComment"># var line : (stream byte 512)</span> +<span id="L81" class="LineNr"> 81 </span> <span class="subxComment"># var label-stack : (stack address 32) # at most 32 levels of nesting</span> <span id="L82" class="LineNr"> 82 </span> <span class="subxComment"># var next-label-id : int = 1</span> <span id="L83" class="LineNr"> 83 </span> <span class="subxComment"># while true</span> <span id="L84" class="LineNr"> 84 </span> <span class="subxComment"># clear-stream(line)</span> @@ -182,13 +182,13 @@ if ('onhashchange' in window) { <span id="L123" class="LineNr">123 </span> 57/push-edi <span id="L124" class="LineNr">124 </span> <span class="subxComment"># esi = in</span> <span id="L125" class="LineNr">125 </span> 8b/-> *(ebp+8) 6/r32/esi -<span id="L126" class="LineNr">126 </span> <span class="subxComment"># var line/ecx : (address stream byte) = stream(512)</span> +<span id="L126" class="LineNr">126 </span> <span class="subxComment"># var line/ecx : (stream byte 512)</span> <span id="L127" class="LineNr">127 </span> 81 5/subop/subtract %esp 0x200/imm32 <span id="L128" class="LineNr">128 </span> 68/push 0x200/imm32/length <span id="L129" class="LineNr">129 </span> 68/push 0/imm32/read <span id="L130" class="LineNr">130 </span> 68/push 0/imm32/write <span id="L131" class="LineNr">131 </span> 89/<- %ecx 4/r32/esp -<span id="L132" class="LineNr">132 </span> <span class="subxComment"># var label-stack/edx : (address stack)</span> +<span id="L132" class="LineNr">132 </span> <span class="subxComment"># var label-stack/edx : (stack int 32)</span> <span id="L133" class="LineNr">133 </span> 81 5/subop/subtract %esp 0x80/imm32 <span id="L134" class="LineNr">134 </span> 68/push 0x80/imm32/length <span id="L135" class="LineNr">135 </span> 68/push 0/imm32/top @@ -219,7 +219,7 @@ if ('onhashchange' in window) { <span id="L160" class="LineNr">160 </span><span class="Constant">$subx-braces:emit-curly-open</span>: <span id="L161" class="LineNr">161 </span> <span class="subxComment"># print(out, "_loop" next-label-id ":")</span> <span id="L162" class="LineNr">162 </span> (<a href='../065write-buffered.subx.html#L8'>write-buffered</a> *(ebp+0xc) <span class="Constant">"_loop"</span>) -<span id="L163" class="LineNr">163 </span> (<a href='../066print-int.subx.html#L267'>print-int32-buffered</a> *(ebp+0xc) %ebx) +<span id="L163" class="LineNr">163 </span> (<a href='../066print-int.subx.html#L265'>print-int32-buffered</a> *(ebp+0xc) %ebx) <span id="L164" class="LineNr">164 </span> (<a href='../065write-buffered.subx.html#L8'>write-buffered</a> *(ebp+0xc) <span class="Constant">":"</span>) <span id="L165" class="LineNr">165 </span> <span class="subxComment"># push(label-stack, next-label-id)</span> <span id="L166" class="LineNr">166 </span> (<a href='../095stack.subx.html#L110'>push</a> %edx %ebx) @@ -236,7 +236,7 @@ if ('onhashchange' in window) { <span id="L177" class="LineNr">177 </span> (<a href='../095stack.subx.html#L230'>pop</a> %edx) <span id="L178" class="LineNr">178 </span> <span class="subxComment"># print(out, "_break" eax ":")</span> <span id="L179" class="LineNr">179 </span> (<a href='../065write-buffered.subx.html#L8'>write-buffered</a> *(ebp+0xc) <span class="Constant">"_break"</span>) -<span id="L180" class="LineNr">180 </span> (<a href='../066print-int.subx.html#L267'>print-int32-buffered</a> *(ebp+0xc) %eax) +<span id="L180" class="LineNr">180 </span> (<a href='../066print-int.subx.html#L265'>print-int32-buffered</a> *(ebp+0xc) %eax) <span id="L181" class="LineNr">181 </span> (<a href='../065write-buffered.subx.html#L8'>write-buffered</a> *(ebp+0xc) <span class="Constant">":"</span>) <span id="L182" class="LineNr">182 </span> <span class="subxComment"># continue</span> <span id="L183" class="LineNr">183 </span> e9/jump $subx-braces:next-line/disp32 @@ -267,7 +267,7 @@ if ('onhashchange' in window) { <span id="L208" class="LineNr">208 </span> (<a href='../095stack.subx.html#L334'>top</a> %edx) <span id="L209" class="LineNr">209 </span> <span class="subxComment"># print(out, "_break" eax)</span> <span id="L210" class="LineNr">210 </span> (<a href='../065write-buffered.subx.html#L8'>write-buffered</a> *(ebp+0xc) <span class="Constant">"_break"</span>) -<span id="L211" class="LineNr">211 </span> (<a href='../066print-int.subx.html#L267'>print-int32-buffered</a> *(ebp+0xc) %eax) +<span id="L211" class="LineNr">211 </span> (<a href='../066print-int.subx.html#L265'>print-int32-buffered</a> *(ebp+0xc) %eax) <span id="L212" class="LineNr">212 </span> <span class="subxComment"># word-slice->start += len("break")</span> <span id="L213" class="LineNr">213 </span> 81 0/subop/add *edi 5/imm32/strlen <span id="L214" class="LineNr">214 </span> <span class="subxComment"># emit rest of word as usual</span> @@ -283,7 +283,7 @@ if ('onhashchange' in window) { <span id="L224" class="LineNr">224 </span> (<a href='../095stack.subx.html#L334'>top</a> %edx) <span id="L225" class="LineNr">225 </span> <span class="subxComment"># print(out, "_loop" eax)</span> <span id="L226" class="LineNr">226 </span> (<a href='../065write-buffered.subx.html#L8'>write-buffered</a> *(ebp+0xc) <span class="Constant">"_loop"</span>) -<span id="L227" class="LineNr">227 </span> (<a href='../066print-int.subx.html#L267'>print-int32-buffered</a> *(ebp+0xc) %eax) +<span id="L227" class="LineNr">227 </span> (<a href='../066print-int.subx.html#L265'>print-int32-buffered</a> *(ebp+0xc) %eax) <span id="L228" class="LineNr">228 </span> <span class="subxComment"># word-slice->start += len("loop")</span> <span id="L229" class="LineNr">229 </span> 81 0/subop/add *edi 4/imm32/strlen <span id="L230" class="LineNr">230 </span> <span class="subxComment"># fall through</span> @@ -299,7 +299,7 @@ if ('onhashchange' in window) { <span id="L240" class="LineNr">240 </span> <span class="subxComment"># loop to next line</span> <span id="L241" class="LineNr">241 </span> e9/jump $subx-braces:line-loop/disp32 <span id="L242" class="LineNr">242 </span><span class="Constant">$subx-braces:break</span>: -<span id="L243" class="LineNr">243 </span> (<a href='../064write-byte.subx.html#L79'>flush</a> *(ebp+0xc)) +<span id="L243" class="LineNr">243 </span> (<a href='../064write-byte.subx.html#L81'>flush</a> *(ebp+0xc)) <span id="L244" class="LineNr">244 </span><span class="Constant">$subx-braces:end</span>: <span id="L245" class="LineNr">245 </span> <span class="subxS1Comment"># . reclaim locals</span> <span id="L246" class="LineNr">246 </span> 81 0/subop/add %esp 0x29c/imm32 @@ -322,107 +322,89 @@ if ('onhashchange' in window) { <span id="L263" class="LineNr">263 </span> <span class="subxComment"># setup</span> <span id="L264" class="LineNr">264 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-input-stream) <span id="L265" class="LineNr">265 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-output-stream) -<span id="L266" class="LineNr">266 </span> <span class="subxS1Comment"># . clear-stream(_test-input-buffered-file+4)</span> -<span id="L267" class="LineNr">267 </span> b8/copy-to-eax <a href='../061read-byte.subx.html#L319'>_test-input-buffered-file</a>/imm32 -<span id="L268" class="LineNr">268 </span> 05/add-to-eax 4/imm32 -<span id="L269" class="LineNr">269 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> %eax) -<span id="L270" class="LineNr">270 </span> <span class="subxS1Comment"># . clear-stream(_test-output-buffered-file+4)</span> -<span id="L271" class="LineNr">271 </span> b8/copy-to-eax <a href='../064write-byte.subx.html#L332'>_test-output-buffered-file</a>/imm32 -<span id="L272" class="LineNr">272 </span> 05/add-to-eax 4/imm32 -<span id="L273" class="LineNr">273 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> %eax) -<span id="L274" class="LineNr">274 </span> <span class="subxComment"># test</span> -<span id="L275" class="LineNr">275 </span> (<a href='../057write.subx.html#L24'>write</a> <a href='../061read-byte.subx.html#L293'>_test-input-stream</a> <span class="Constant">"== abcd 0x1"</span>) -<span id="L276" class="LineNr">276 </span> (<a href='braces.subx.html#L78'>subx-braces</a> <a href='../061read-byte.subx.html#L319'>_test-input-buffered-file</a> _test-output-buffered-file) -<span id="L277" class="LineNr">277 </span> <span class="subxComment"># check that the line just passed through</span> -<span id="L278" class="LineNr">278 </span> (<a href='../064write-byte.subx.html#L79'>flush</a> _test-output-buffered-file) -<span id="L279" class="Folded">279 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream --------------------------------------------------------------------------------------------------------------</span> -<span id="L284" class="LineNr">284 </span> (<a href='../058stream-equal.subx.html#L193'>check-stream-equal</a> <a href='../064write-byte.subx.html#L290'>_test-output-stream</a> <span class="Constant">"== abcd 0x1 \n"</span> <span class="Constant">"F - test-subx-braces-passes-most-words-through"</span>) -<span id="L285" class="LineNr">285 </span> <span class="subxS1Comment"># . epilogue</span> -<span id="L286" class="LineNr">286 </span> 89/<- %esp 5/r32/ebp -<span id="L287" class="LineNr">287 </span> 5d/pop-to-ebp -<span id="L288" class="LineNr">288 </span> c3/return -<span id="L289" class="LineNr">289 </span> -<span id="L290" class="LineNr">290 </span><span class="subxTest">test-subx-braces-1</span>: -<span id="L291" class="LineNr">291 </span> <span class="subxComment"># input:</span> -<span id="L292" class="LineNr">292 </span> <span class="subxComment"># {</span> -<span id="L293" class="LineNr">293 </span> <span class="subxComment"># ab break/imm32</span> -<span id="L294" class="LineNr">294 </span> <span class="subxComment"># cd loop/imm32</span> -<span id="L295" class="LineNr">295 </span> <span class="subxComment"># }</span> +<span id="L266" class="LineNr">266 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-input-buffered-file->buffer) +<span id="L267" class="LineNr">267 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-output-buffered-file->buffer) +<span id="L268" class="LineNr">268 </span> <span class="subxComment"># test</span> +<span id="L269" class="LineNr">269 </span> (<a href='../057write.subx.html#L24'>write</a> <a href='../061read-byte.subx.html#L288'>_test-input-stream</a> <span class="Constant">"== abcd 0x1"</span>) +<span id="L270" class="LineNr">270 </span> (<a href='braces.subx.html#L78'>subx-braces</a> <a href='../061read-byte.subx.html#L314'>_test-input-buffered-file</a> _test-output-buffered-file) +<span id="L271" class="LineNr">271 </span> <span class="subxComment"># check that the line just passed through</span> +<span id="L272" class="LineNr">272 </span> (<a href='../064write-byte.subx.html#L81'>flush</a> _test-output-buffered-file) +<span id="L273" class="Folded">273 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream --------------------------------------------------------------------------------------------------------------</span> +<span id="L278" class="LineNr">278 </span> (<a href='../058stream-equal.subx.html#L193'>check-stream-equal</a> <a href='../064write-byte.subx.html#L286'>_test-output-stream</a> <span class="Constant">"== abcd 0x1 \n"</span> <span class="Constant">"F - test-subx-braces-passes-most-words-through"</span>) +<span id="L279" class="LineNr">279 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L280" class="LineNr">280 </span> 89/<- %esp 5/r32/ebp +<span id="L281" class="LineNr">281 </span> 5d/pop-to-ebp +<span id="L282" class="LineNr">282 </span> c3/return +<span id="L283" class="LineNr">283 </span> +<span id="L284" class="LineNr">284 </span><span class="subxTest">test-subx-braces-1</span>: +<span id="L285" class="LineNr">285 </span> <span class="subxComment"># input:</span> +<span id="L286" class="LineNr">286 </span> <span class="subxComment"># {</span> +<span id="L287" class="LineNr">287 </span> <span class="subxComment"># ab break/imm32</span> +<span id="L288" class="LineNr">288 </span> <span class="subxComment"># cd loop/imm32</span> +<span id="L289" class="LineNr">289 </span> <span class="subxComment"># }</span> +<span id="L290" class="LineNr">290 </span> <span class="subxComment">#</span> +<span id="L291" class="LineNr">291 </span> <span class="subxComment"># output:</span> +<span id="L292" class="LineNr">292 </span> <span class="subxComment"># _loop1:</span> +<span id="L293" class="LineNr">293 </span> <span class="subxComment"># ab _break1/imm32</span> +<span id="L294" class="LineNr">294 </span> <span class="subxComment"># cd _loop1/imm32</span> +<span id="L295" class="LineNr">295 </span> <span class="subxComment"># _break1:</span> <span id="L296" class="LineNr">296 </span> <span class="subxComment">#</span> -<span id="L297" class="LineNr">297 </span> <span class="subxComment"># output:</span> -<span id="L298" class="LineNr">298 </span> <span class="subxComment"># _loop1:</span> -<span id="L299" class="LineNr">299 </span> <span class="subxComment"># ab _break1/imm32</span> -<span id="L300" class="LineNr">300 </span> <span class="subxComment"># cd _loop1/imm32</span> -<span id="L301" class="LineNr">301 </span> <span class="subxComment"># _break1:</span> -<span id="L302" class="LineNr">302 </span> <span class="subxComment">#</span> -<span id="L303" class="LineNr">303 </span> <span class="subxS1Comment"># . prologue</span> -<span id="L304" class="LineNr">304 </span> 55/push-ebp -<span id="L305" class="LineNr">305 </span> 89/<- %ebp 4/r32/esp -<span id="L306" class="LineNr">306 </span> <span class="subxComment"># setup</span> -<span id="L307" class="LineNr">307 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-input-stream) -<span id="L308" class="LineNr">308 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-output-stream) -<span id="L309" class="LineNr">309 </span> <span class="subxS1Comment"># . clear-stream(_test-input-buffered-file+4)</span> -<span id="L310" class="LineNr">310 </span> b8/copy-to-eax <a href='../061read-byte.subx.html#L319'>_test-input-buffered-file</a>/imm32 -<span id="L311" class="LineNr">311 </span> 05/add-to-eax 4/imm32 -<span id="L312" class="LineNr">312 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> %eax) -<span id="L313" class="LineNr">313 </span> <span class="subxS1Comment"># . clear-stream(_test-output-buffered-file+4)</span> -<span id="L314" class="LineNr">314 </span> b8/copy-to-eax <a href='../064write-byte.subx.html#L332'>_test-output-buffered-file</a>/imm32 -<span id="L315" class="LineNr">315 </span> 05/add-to-eax 4/imm32 -<span id="L316" class="LineNr">316 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> %eax) -<span id="L317" class="LineNr">317 </span> <span class="subxComment"># test</span> -<span id="L318" class="LineNr">318 </span> (<a href='../057write.subx.html#L24'>write</a> <a href='../061read-byte.subx.html#L293'>_test-input-stream</a> <span class="Constant">"{\nab break/imm32\ncd loop/imm32\n}"</span>) -<span id="L319" class="LineNr">319 </span> (<a href='braces.subx.html#L78'>subx-braces</a> <a href='../061read-byte.subx.html#L319'>_test-input-buffered-file</a> _test-output-buffered-file) -<span id="L320" class="LineNr">320 </span> <span class="subxComment"># check that the line just passed through</span> -<span id="L321" class="LineNr">321 </span> (<a href='../064write-byte.subx.html#L79'>flush</a> _test-output-buffered-file) -<span id="L322" class="Folded">322 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream --------------------------------------------------------------------------------------------------------------</span> -<span id="L327" class="LineNr">327 </span> (<a href='../058stream-equal.subx.html#L193'>check-stream-equal</a> <a href='../064write-byte.subx.html#L290'>_test-output-stream</a> <span class="Constant">"_loop0x00000001:\nab _break0x00000001/imm32 \ncd _loop0x00000001/imm32 \n_break0x00000001:\n"</span> <span class="Constant">"F - test-subx-braces-1"</span>) -<span id="L328" class="LineNr">328 </span> <span class="subxS1Comment"># . epilogue</span> -<span id="L329" class="LineNr">329 </span> 89/<- %esp 5/r32/ebp -<span id="L330" class="LineNr">330 </span> 5d/pop-to-ebp -<span id="L331" class="LineNr">331 </span> c3/return -<span id="L332" class="LineNr">332 </span> -<span id="L333" class="LineNr">333 </span><span class="subxTest">test-subx-braces-2</span>: -<span id="L334" class="LineNr">334 </span> <span class="subxComment"># input:</span> -<span id="L335" class="LineNr">335 </span> <span class="subxComment"># {</span> -<span id="L336" class="LineNr">336 </span> <span class="subxComment"># {</span> -<span id="L337" class="LineNr">337 </span> <span class="subxComment"># ab break/imm32</span> -<span id="L338" class="LineNr">338 </span> <span class="subxComment"># }</span> -<span id="L339" class="LineNr">339 </span> <span class="subxComment"># cd loop/imm32</span> -<span id="L340" class="LineNr">340 </span> <span class="subxComment"># }</span> -<span id="L341" class="LineNr">341 </span> <span class="subxComment">#</span> -<span id="L342" class="LineNr">342 </span> <span class="subxComment"># output:</span> -<span id="L343" class="LineNr">343 </span> <span class="subxComment"># _loop1:</span> -<span id="L344" class="LineNr">344 </span> <span class="subxComment"># _loop2:</span> -<span id="L345" class="LineNr">345 </span> <span class="subxComment"># ab _break2/imm32</span> -<span id="L346" class="LineNr">346 </span> <span class="subxComment"># _break2:</span> -<span id="L347" class="LineNr">347 </span> <span class="subxComment"># cd _loop1/imm32</span> -<span id="L348" class="LineNr">348 </span> <span class="subxComment"># _break1:</span> -<span id="L349" class="LineNr">349 </span> <span class="subxComment">#</span> -<span id="L350" class="LineNr">350 </span> <span class="subxS1Comment"># . prologue</span> -<span id="L351" class="LineNr">351 </span> 55/push-ebp -<span id="L352" class="LineNr">352 </span> 89/<- %ebp 4/r32/esp -<span id="L353" class="LineNr">353 </span> <span class="subxComment"># setup</span> -<span id="L354" class="LineNr">354 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-input-stream) -<span id="L355" class="LineNr">355 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-output-stream) -<span id="L356" class="LineNr">356 </span> <span class="subxS1Comment"># . clear-stream(_test-input-buffered-file+4)</span> -<span id="L357" class="LineNr">357 </span> b8/copy-to-eax <a href='../061read-byte.subx.html#L319'>_test-input-buffered-file</a>/imm32 -<span id="L358" class="LineNr">358 </span> 05/add-to-eax 4/imm32 -<span id="L359" class="LineNr">359 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> %eax) -<span id="L360" class="LineNr">360 </span> <span class="subxS1Comment"># . clear-stream(_test-output-buffered-file+4)</span> -<span id="L361" class="LineNr">361 </span> b8/copy-to-eax <a href='../064write-byte.subx.html#L332'>_test-output-buffered-file</a>/imm32 -<span id="L362" class="LineNr">362 </span> 05/add-to-eax 4/imm32 -<span id="L363" class="LineNr">363 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> %eax) -<span id="L364" class="LineNr">364 </span> <span class="subxComment"># test</span> -<span id="L365" class="LineNr">365 </span> (<a href='../057write.subx.html#L24'>write</a> <a href='../061read-byte.subx.html#L293'>_test-input-stream</a> <span class="Constant">"{\n{\nab break/imm32\n}\ncd loop/imm32\n}"</span>) -<span id="L366" class="LineNr">366 </span> (<a href='braces.subx.html#L78'>subx-braces</a> <a href='../061read-byte.subx.html#L319'>_test-input-buffered-file</a> _test-output-buffered-file) -<span id="L367" class="LineNr">367 </span> <span class="subxComment"># check that the line just passed through</span> -<span id="L368" class="LineNr">368 </span> (<a href='../064write-byte.subx.html#L79'>flush</a> _test-output-buffered-file) -<span id="L369" class="Folded">369 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream --------------------------------------------------------------------------------------------------------------</span> -<span id="L374" class="LineNr">374 </span> (<a href='../058stream-equal.subx.html#L193'>check-stream-equal</a> <a href='../064write-byte.subx.html#L290'>_test-output-stream</a> <span class="Constant">"_loop0x00000001:\n_loop0x00000002:\nab _break0x00000002/imm32 \n_break0x00000002:\ncd _loop0x00000001/imm32 \n_break0x00000001:\n"</span> <span class="Constant">"F - test-subx-braces-2"</span>) -<span id="L375" class="LineNr">375 </span> <span class="subxS1Comment"># . epilogue</span> -<span id="L376" class="LineNr">376 </span> 89/<- %esp 5/r32/ebp -<span id="L377" class="LineNr">377 </span> 5d/pop-to-ebp -<span id="L378" class="LineNr">378 </span> c3/return +<span id="L297" class="LineNr">297 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L298" class="LineNr">298 </span> 55/push-ebp +<span id="L299" class="LineNr">299 </span> 89/<- %ebp 4/r32/esp +<span id="L300" class="LineNr">300 </span> <span class="subxComment"># setup</span> +<span id="L301" class="LineNr">301 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-input-stream) +<span id="L302" class="LineNr">302 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-output-stream) +<span id="L303" class="LineNr">303 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-input-buffered-file->buffer) +<span id="L304" class="LineNr">304 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-output-buffered-file->buffer) +<span id="L305" class="LineNr">305 </span> <span class="subxComment"># test</span> +<span id="L306" class="LineNr">306 </span> (<a href='../057write.subx.html#L24'>write</a> <a href='../061read-byte.subx.html#L288'>_test-input-stream</a> <span class="Constant">"{\nab break/imm32\ncd loop/imm32\n}"</span>) +<span id="L307" class="LineNr">307 </span> (<a href='braces.subx.html#L78'>subx-braces</a> <a href='../061read-byte.subx.html#L314'>_test-input-buffered-file</a> _test-output-buffered-file) +<span id="L308" class="LineNr">308 </span> <span class="subxComment"># check that the line just passed through</span> +<span id="L309" class="LineNr">309 </span> (<a href='../064write-byte.subx.html#L81'>flush</a> _test-output-buffered-file) +<span id="L310" class="Folded">310 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream --------------------------------------------------------------------------------------------------------------</span> +<span id="L315" class="LineNr">315 </span> (<a href='../058stream-equal.subx.html#L193'>check-stream-equal</a> <a href='../064write-byte.subx.html#L286'>_test-output-stream</a> <span class="Constant">"_loop0x00000001:\nab _break0x00000001/imm32 \ncd _loop0x00000001/imm32 \n_break0x00000001:\n"</span> <span class="Constant">"F - test-subx-braces-1"</span>) +<span id="L316" class="LineNr">316 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L317" class="LineNr">317 </span> 89/<- %esp 5/r32/ebp +<span id="L318" class="LineNr">318 </span> 5d/pop-to-ebp +<span id="L319" class="LineNr">319 </span> c3/return +<span id="L320" class="LineNr">320 </span> +<span id="L321" class="LineNr">321 </span><span class="subxTest">test-subx-braces-2</span>: +<span id="L322" class="LineNr">322 </span> <span class="subxComment"># input:</span> +<span id="L323" class="LineNr">323 </span> <span class="subxComment"># {</span> +<span id="L324" class="LineNr">324 </span> <span class="subxComment"># {</span> +<span id="L325" class="LineNr">325 </span> <span class="subxComment"># ab break/imm32</span> +<span id="L326" class="LineNr">326 </span> <span class="subxComment"># }</span> +<span id="L327" class="LineNr">327 </span> <span class="subxComment"># cd loop/imm32</span> +<span id="L328" class="LineNr">328 </span> <span class="subxComment"># }</span> +<span id="L329" class="LineNr">329 </span> <span class="subxComment">#</span> +<span id="L330" class="LineNr">330 </span> <span class="subxComment"># output:</span> +<span id="L331" class="LineNr">331 </span> <span class="subxComment"># _loop1:</span> +<span id="L332" class="LineNr">332 </span> <span class="subxComment"># _loop2:</span> +<span id="L333" class="LineNr">333 </span> <span class="subxComment"># ab _break2/imm32</span> +<span id="L334" class="LineNr">334 </span> <span class="subxComment"># _break2:</span> +<span id="L335" class="LineNr">335 </span> <span class="subxComment"># cd _loop1/imm32</span> +<span id="L336" class="LineNr">336 </span> <span class="subxComment"># _break1:</span> +<span id="L337" class="LineNr">337 </span> <span class="subxComment">#</span> +<span id="L338" class="LineNr">338 </span> <span class="subxS1Comment"># . prologue</span> +<span id="L339" class="LineNr">339 </span> 55/push-ebp +<span id="L340" class="LineNr">340 </span> 89/<- %ebp 4/r32/esp +<span id="L341" class="LineNr">341 </span> <span class="subxComment"># setup</span> +<span id="L342" class="LineNr">342 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-input-stream) +<span id="L343" class="LineNr">343 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-output-stream) +<span id="L344" class="LineNr">344 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-input-buffered-file->buffer) +<span id="L345" class="LineNr">345 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> _test-output-buffered-file->buffer) +<span id="L346" class="LineNr">346 </span> <span class="subxComment"># test</span> +<span id="L347" class="LineNr">347 </span> (<a href='../057write.subx.html#L24'>write</a> <a href='../061read-byte.subx.html#L288'>_test-input-stream</a> <span class="Constant">"{\n{\nab break/imm32\n}\ncd loop/imm32\n}"</span>) +<span id="L348" class="LineNr">348 </span> (<a href='braces.subx.html#L78'>subx-braces</a> <a href='../061read-byte.subx.html#L314'>_test-input-buffered-file</a> _test-output-buffered-file) +<span id="L349" class="LineNr">349 </span> <span class="subxComment"># check that the line just passed through</span> +<span id="L350" class="LineNr">350 </span> (<a href='../064write-byte.subx.html#L81'>flush</a> _test-output-buffered-file) +<span id="L351" class="Folded">351 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream --------------------------------------------------------------------------------------------------------------</span> +<span id="L356" class="LineNr">356 </span> (<a href='../058stream-equal.subx.html#L193'>check-stream-equal</a> <a href='../064write-byte.subx.html#L286'>_test-output-stream</a> <span class="Constant">"_loop0x00000001:\n_loop0x00000002:\nab _break0x00000002/imm32 \n_break0x00000002:\ncd _loop0x00000001/imm32 \n_break0x00000001:\n"</span> <span class="Constant">"F - test-subx-braces-2"</span>) +<span id="L357" class="LineNr">357 </span> <span class="subxS1Comment"># . epilogue</span> +<span id="L358" class="LineNr">358 </span> 89/<- %esp 5/r32/ebp +<span id="L359" class="LineNr">359 </span> 5d/pop-to-ebp +<span id="L360" class="LineNr">360 </span> c3/return </pre> </body> </html> |