This commit is contained in:
Kartik Agaram 2020-09-07 16:38:14 -07:00
parent a0430d5807
commit 68df24fa77
38 changed files with 16856 additions and 15685 deletions

View File

@ -95,7 +95,7 @@ if ('onhashchange' in window) {
<span id="L33" class="LineNr"> 33 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span>
<span id="L34" class="LineNr"> 34 </span><span class="subxS1Comment"># . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes</span>
<span id="L35" class="LineNr"> 35 </span>
<span id="L36" class="LineNr"> 36 </span><span class="subxComment"># return next byte value in eax, with top 3 bytes cleared.</span>
<span id="L36" class="LineNr"> 36 </span><span class="subxComment"># Return next byte value in eax, with top 3 bytes cleared.</span>
<span id="L37" class="LineNr"> 37 </span><span class="subxComment"># On reaching end of file, return 0xffffffff (Eof).</span>
<span id="L38" class="LineNr"> 38 </span><span class="subxFunction">read-byte-buffered</span>: <span class="subxComment"># f: (addr buffered-file) -&gt; byte-or-Eof/eax: byte</span>
<span id="L39" class="LineNr"> 39 </span> <span class="subxS1Comment"># . prologue</span>
@ -178,7 +178,7 @@ if ('onhashchange' in window) {
<span id="L116" class="LineNr">116 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L117" class="LineNr">117 </span> <span class="subxComment"># read-byte-buffered(_test-buffered-file)</span>
<span id="L118" class="LineNr">118 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L119" class="LineNr">119 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L119" class="LineNr">119 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L120" class="LineNr">120 </span> <span class="subxS2Comment"># . . call</span>
<span id="L121" class="LineNr">121 </span> e8/call <a href='112read-byte.subx.html#L38'>read-byte-buffered</a>/disp32
<span id="L122" class="LineNr">122 </span> <span class="subxS2Comment"># . . discard args</span>
@ -222,14 +222,14 @@ if ('onhashchange' in window) {
<span id="L160" class="LineNr">160 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L161" class="LineNr">161 </span> <span class="subxComment"># read-byte-buffered(_test-buffered-file)</span>
<span id="L162" class="LineNr">162 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L163" class="LineNr">163 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L163" class="LineNr">163 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L164" class="LineNr">164 </span> <span class="subxS2Comment"># . . call</span>
<span id="L165" class="LineNr">165 </span> e8/call <a href='112read-byte.subx.html#L38'>read-byte-buffered</a>/disp32
<span id="L166" class="LineNr">166 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L167" class="LineNr">167 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm32 <span class="subxComment"># add to esp</span>
<span id="L168" class="LineNr">168 </span> <span class="subxComment"># read-byte-buffered(_test-buffered-file)</span>
<span id="L169" class="LineNr">169 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L170" class="LineNr">170 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L170" class="LineNr">170 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L171" class="LineNr">171 </span> <span class="subxS2Comment"># . . call</span>
<span id="L172" class="LineNr">172 </span> e8/call <a href='112read-byte.subx.html#L38'>read-byte-buffered</a>/disp32
<span id="L173" class="LineNr">173 </span> <span class="subxS2Comment"># . . discard args</span>
@ -265,7 +265,7 @@ if ('onhashchange' in window) {
<span id="L203" class="LineNr">203 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm32 <span class="subxComment"># add to esp</span>
<span id="L204" class="LineNr">204 </span> <span class="subxComment"># read-byte-buffered(_test-buffered-file)</span>
<span id="L205" class="LineNr">205 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L206" class="LineNr">206 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L206" class="LineNr">206 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L207" class="LineNr">207 </span> <span class="subxS2Comment"># . . call</span>
<span id="L208" class="LineNr">208 </span> e8/call <a href='112read-byte.subx.html#L38'>read-byte-buffered</a>/disp32
<span id="L209" class="LineNr">209 </span> <span class="subxS2Comment"># . . discard args</span>
@ -309,11 +309,11 @@ if ('onhashchange' in window) {
<span id="L247" class="LineNr">247 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L248" class="LineNr">248 </span> <span class="subxComment"># pretend buffer is full</span>
<span id="L249" class="LineNr">249 </span> <span class="subxS1Comment"># . _test-buffered-file-&gt;read = 6 # &gt;= _test-buffered-file-&gt;size</span>
<span id="L250" class="LineNr">250 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L250" class="LineNr">250 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L251" class="LineNr">251 </span> c7 0/subop/copy 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 6/imm32 <span class="subxComment"># copy to *(eax+8)</span>
<span id="L252" class="LineNr">252 </span> <span class="subxComment"># read-byte-buffered(_test-buffered-file)</span>
<span id="L253" class="LineNr">253 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L254" class="LineNr">254 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L254" class="LineNr">254 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L255" class="LineNr">255 </span> <span class="subxS2Comment"># . . call</span>
<span id="L256" class="LineNr">256 </span> e8/call <a href='112read-byte.subx.html#L38'>read-byte-buffered</a>/disp32
<span id="L257" class="LineNr">257 </span> <span class="subxS2Comment"># . . discard args</span>
@ -330,62 +330,106 @@ if ('onhashchange' in window) {
<span id="L268" class="LineNr">268 </span> <span class="subxS1Comment"># . end</span>
<span id="L269" class="LineNr">269 </span> c3/return
<span id="L270" class="LineNr">270 </span>
<span id="L271" class="LineNr">271 </span>== data
<span id="L272" class="LineNr">272 </span>
<span id="L273" class="LineNr">273 </span><span class="subxComment"># a test buffered file for _test-stream</span>
<span id="L274" class="LineNr">274 </span><span class="subxMinorFunction">_test-buffered-file</span>: <span class="subxComment"># buffered-file</span>
<span id="L275" class="LineNr">275 </span> <span class="subxComment"># file descriptor or (addr stream byte)</span>
<span id="L276" class="LineNr">276 </span> <a href='108write.subx.html#L148'>_test-stream</a>/imm32
<span id="L277" class="LineNr">277 </span><span class="Constant">$_test-buffered-file-&gt;buffer</span>:
<span id="L278" class="LineNr">278 </span> <span class="subxComment"># current write index</span>
<span id="L279" class="LineNr">279 </span> 0/imm32
<span id="L280" class="LineNr">280 </span> <span class="subxComment"># current read index</span>
<span id="L281" class="LineNr">281 </span> 0/imm32
<span id="L282" class="LineNr">282 </span> <span class="subxComment"># size</span>
<span id="L283" class="LineNr">283 </span> 6/imm32
<span id="L284" class="LineNr">284 </span> <span class="subxComment"># data</span>
<span id="L285" class="LineNr">285 </span> 00 00 00 00 00 00 <span class="subxComment"># 6 bytes</span>
<span id="L286" class="LineNr">286 </span>
<span id="L287" class="LineNr">287 </span><span class="subxMinorFunction">_test-input-stream</span>: <span class="subxComment"># (stream byte)</span>
<span id="L288" class="LineNr">288 </span> <span class="subxComment"># current write index</span>
<span id="L289" class="LineNr">289 </span> 0/imm32
<span id="L290" class="LineNr">290 </span> <span class="subxComment"># current read index</span>
<span id="L291" class="LineNr">291 </span> 0/imm32
<span id="L292" class="LineNr">292 </span> <span class="subxComment"># size</span>
<span id="L293" class="LineNr">293 </span> 0x100/imm32 <span class="subxComment"># 256 bytes</span>
<span id="L294" class="LineNr">294 </span> <span class="subxComment"># data (16 lines x 16 bytes/line)</span>
<span id="L295" class="LineNr">295 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L296" class="LineNr">296 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L297" class="LineNr">297 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L298" class="LineNr">298 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L299" class="LineNr">299 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L300" class="LineNr">300 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L301" class="LineNr">301 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L302" class="LineNr">302 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L303" class="LineNr">303 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L304" class="LineNr">304 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L305" class="LineNr">305 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L306" class="LineNr">306 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L307" class="LineNr">307 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L308" class="LineNr">308 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L309" class="LineNr">309 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L310" class="LineNr">310 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L311" class="LineNr">311 </span>
<span id="L312" class="LineNr">312 </span><span class="subxComment"># a test buffered file for _test-input-stream</span>
<span id="L313" class="LineNr">313 </span><span class="subxMinorFunction">_test-input-buffered-file</span>: <span class="subxComment"># buffered-file</span>
<span id="L314" class="LineNr">314 </span> <span class="subxComment"># file descriptor or (addr stream byte)</span>
<span id="L315" class="LineNr">315 </span> <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L316" class="LineNr">316 </span><span class="Constant">$_test-input-buffered-file-&gt;buffer</span>:
<span id="L317" class="LineNr">317 </span> <span class="subxComment"># current write index</span>
<span id="L318" class="LineNr">318 </span> 0/imm32
<span id="L319" class="LineNr">319 </span> <span class="subxComment"># current read index</span>
<span id="L320" class="LineNr">320 </span> 0/imm32
<span id="L321" class="LineNr">321 </span> <span class="subxComment"># size</span>
<span id="L322" class="LineNr">322 </span> 6/imm32
<span id="L323" class="LineNr">323 </span> <span class="subxComment"># data</span>
<span id="L324" class="LineNr">324 </span> 00 00 00 00 00 00 <span class="subxComment"># 6 bytes</span>
<span id="L325" class="LineNr">325 </span>
<span id="L326" class="LineNr">326 </span><span class="subxS2Comment"># . . vim&#0058;nowrap:textwidth=0</span>
<span id="L271" class="LineNr">271 </span><span class="subxComment"># Return next byte value in eax, with top 3 bytes cleared.</span>
<span id="L272" class="LineNr">272 </span><span class="subxComment"># Abort on reaching end of file.</span>
<span id="L273" class="LineNr">273 </span><span class="subxFunction">read-byte</span>: <span class="subxComment"># s: (addr stream byte) -&gt; result/eax: byte</span>
<span id="L274" class="LineNr">274 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L275" class="LineNr">275 </span> 55/push-ebp
<span id="L276" class="LineNr">276 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span>
<span id="L277" class="LineNr">277 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L278" class="LineNr">278 </span> 51/push-ecx
<span id="L279" class="LineNr">279 </span> 56/push-esi
<span id="L280" class="LineNr">280 </span> <span class="subxComment"># esi = s</span>
<span id="L281" class="LineNr">281 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 6/r32/esi 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to esi</span>
<span id="L282" class="LineNr">282 </span> <span class="subxComment"># ecx = s-&gt;read</span>
<span id="L283" class="LineNr">283 </span> 8b/copy 1/mod/*+disp8 6/rm32/esi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(esi+4) to ecx</span>
<span id="L284" class="LineNr">284 </span> <span class="subxComment"># if (f-&gt;read &gt;= f-&gt;write) abort</span>
<span id="L285" class="LineNr">285 </span> 3b/compare 0/mod/indirect 6/rm32/esi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># compare ecx with *esi</span>
<span id="L286" class="LineNr">286 </span> 0f 8d/jump-if-&gt;= $read-byte:abort/disp32
<span id="L287" class="LineNr">287 </span> <span class="subxComment"># result = f-&gt;data[f-&gt;read]</span>
<span id="L288" class="LineNr">288 </span> 31/xor 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># clear eax</span>
<span id="L289" class="LineNr">289 </span> 8a/copy-byte 1/mod/*+disp8 4/rm32/sib 6/base/esi 1/index/ecx <span class="Normal"> . </span> 0/r32/AL 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy byte at *(esi+ecx+12) to AL</span>
<span id="L290" class="LineNr">290 </span> <span class="subxComment"># ++f-&gt;read</span>
<span id="L291" class="LineNr">291 </span> ff 0/subop/increment 1/mod/*+disp8 6/rm32/esi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># increment *(esi+4)</span>
<span id="L292" class="LineNr">292 </span><span class="Constant">$read-byte:end</span>:
<span id="L293" class="LineNr">293 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L294" class="LineNr">294 </span> 5e/pop-to-esi
<span id="L295" class="LineNr">295 </span> 59/pop-to-ecx
<span id="L296" class="LineNr">296 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L297" class="LineNr">297 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span>
<span id="L298" class="LineNr">298 </span> 5d/pop-to-ebp
<span id="L299" class="LineNr">299 </span> c3/return
<span id="L300" class="LineNr">300 </span>
<span id="L301" class="LineNr">301 </span><span class="Constant">$read-byte:abort</span>:
<span id="L302" class="LineNr">302 </span> <span class="subxS1Comment"># . _write(2/stderr, error)</span>
<span id="L303" class="LineNr">303 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L304" class="LineNr">304 </span> 68/push <span class="Constant">&quot;read-byte: empty stream\n&quot;</span>/imm32
<span id="L305" class="LineNr">305 </span> 68/push 2/imm32/stderr
<span id="L306" class="LineNr">306 </span> <span class="subxS2Comment"># . . call</span>
<span id="L307" class="LineNr">307 </span> e8/call <a href='101_write.subx.html#L12'>_write</a>/disp32
<span id="L308" class="LineNr">308 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L309" class="LineNr">309 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L310" class="LineNr">310 </span> <span class="subxS1Comment"># . syscall(exit, 1)</span>
<span id="L311" class="LineNr">311 </span> bb/copy-to-ebx 1/imm32
<span id="L312" class="LineNr">312 </span> e8/call syscall_exit/disp32
<span id="L313" class="LineNr">313 </span> <span class="subxComment"># never gets here</span>
<span id="L314" class="LineNr">314 </span>
<span id="L315" class="LineNr">315 </span>== data
<span id="L316" class="LineNr">316 </span>
<span id="L317" class="LineNr">317 </span><span class="subxComment"># a test buffered file for _test-stream</span>
<span id="L318" class="LineNr">318 </span><span class="subxMinorFunction">_test-buffered-file</span>: <span class="subxComment"># buffered-file</span>
<span id="L319" class="LineNr">319 </span> <span class="subxComment"># file descriptor or (addr stream byte)</span>
<span id="L320" class="LineNr">320 </span> <a href='108write.subx.html#L148'>_test-stream</a>/imm32
<span id="L321" class="LineNr">321 </span><span class="Constant">$_test-buffered-file-&gt;buffer</span>:
<span id="L322" class="LineNr">322 </span> <span class="subxComment"># current write index</span>
<span id="L323" class="LineNr">323 </span> 0/imm32
<span id="L324" class="LineNr">324 </span> <span class="subxComment"># current read index</span>
<span id="L325" class="LineNr">325 </span> 0/imm32
<span id="L326" class="LineNr">326 </span> <span class="subxComment"># size</span>
<span id="L327" class="LineNr">327 </span> 6/imm32
<span id="L328" class="LineNr">328 </span> <span class="subxComment"># data</span>
<span id="L329" class="LineNr">329 </span> 00 00 00 00 00 00 <span class="subxComment"># 6 bytes</span>
<span id="L330" class="LineNr">330 </span>
<span id="L331" class="LineNr">331 </span><span class="subxMinorFunction">_test-input-stream</span>: <span class="subxComment"># (stream byte)</span>
<span id="L332" class="LineNr">332 </span> <span class="subxComment"># current write index</span>
<span id="L333" class="LineNr">333 </span> 0/imm32
<span id="L334" class="LineNr">334 </span> <span class="subxComment"># current read index</span>
<span id="L335" class="LineNr">335 </span> 0/imm32
<span id="L336" class="LineNr">336 </span> <span class="subxComment"># size</span>
<span id="L337" class="LineNr">337 </span> 0x100/imm32 <span class="subxComment"># 256 bytes</span>
<span id="L338" class="LineNr">338 </span> <span class="subxComment"># data (16 lines x 16 bytes/line)</span>
<span id="L339" class="LineNr">339 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L340" class="LineNr">340 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L341" class="LineNr">341 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L342" class="LineNr">342 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L343" class="LineNr">343 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L344" class="LineNr">344 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L345" class="LineNr">345 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L346" class="LineNr">346 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L347" class="LineNr">347 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L348" class="LineNr">348 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L349" class="LineNr">349 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L350" class="LineNr">350 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L351" class="LineNr">351 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L352" class="LineNr">352 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L353" class="LineNr">353 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L354" class="LineNr">354 </span> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<span id="L355" class="LineNr">355 </span>
<span id="L356" class="LineNr">356 </span><span class="subxComment"># a test buffered file for _test-input-stream</span>
<span id="L357" class="LineNr">357 </span><span class="subxMinorFunction">_test-input-buffered-file</span>: <span class="subxComment"># buffered-file</span>
<span id="L358" class="LineNr">358 </span> <span class="subxComment"># file descriptor or (addr stream byte)</span>
<span id="L359" class="LineNr">359 </span> <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L360" class="LineNr">360 </span><span class="Constant">$_test-input-buffered-file-&gt;buffer</span>:
<span id="L361" class="LineNr">361 </span> <span class="subxComment"># current write index</span>
<span id="L362" class="LineNr">362 </span> 0/imm32
<span id="L363" class="LineNr">363 </span> <span class="subxComment"># current read index</span>
<span id="L364" class="LineNr">364 </span> 0/imm32
<span id="L365" class="LineNr">365 </span> <span class="subxComment"># size</span>
<span id="L366" class="LineNr">366 </span> 6/imm32
<span id="L367" class="LineNr">367 </span> <span class="subxComment"># data</span>
<span id="L368" class="LineNr">368 </span> 00 00 00 00 00 00 <span class="subxComment"># 6 bytes</span>
<span id="L369" class="LineNr">369 </span>
<span id="L370" class="LineNr">370 </span><span class="subxS2Comment"># . . vim&#0058;nowrap:textwidth=0</span>
</pre>
</body>
</html>

View File

@ -187,14 +187,14 @@ if ('onhashchange' in window) {
<span id="L125" class="LineNr">125 </span> <span class="subxComment"># write-byte-buffered(_test-buffered-file, 'A')</span>
<span id="L126" class="LineNr">126 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L127" class="LineNr">127 </span> 68/push 0x41/imm32
<span id="L128" class="LineNr">128 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L128" class="LineNr">128 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L129" class="LineNr">129 </span> <span class="subxS2Comment"># . . call</span>
<span id="L130" class="LineNr">130 </span> e8/call <a href='115write-byte.subx.html#L33'>write-byte-buffered</a>/disp32
<span id="L131" class="LineNr">131 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L132" class="LineNr">132 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L133" class="LineNr">133 </span> <span class="subxComment"># flush(_test-buffered-file)</span>
<span id="L134" class="LineNr">134 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L135" class="LineNr">135 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L135" class="LineNr">135 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L136" class="LineNr">136 </span> <span class="subxS2Comment"># . . call</span>
<span id="L137" class="LineNr">137 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32
<span id="L138" class="LineNr">138 </span> <span class="subxS2Comment"># . . discard args</span>
@ -240,14 +240,14 @@ if ('onhashchange' in window) {
<span id="L178" class="LineNr">178 </span> <span class="subxComment"># write-byte-buffered(_test-buffered-file, 'g')</span>
<span id="L179" class="LineNr">179 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L180" class="LineNr">180 </span> 68/push 0x67/imm32
<span id="L181" class="LineNr">181 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L181" class="LineNr">181 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L182" class="LineNr">182 </span> <span class="subxS2Comment"># . . call</span>
<span id="L183" class="LineNr">183 </span> e8/call <a href='115write-byte.subx.html#L33'>write-byte-buffered</a>/disp32
<span id="L184" class="LineNr">184 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L185" class="LineNr">185 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L186" class="LineNr">186 </span> <span class="subxComment"># flush(_test-buffered-file)</span>
<span id="L187" class="LineNr">187 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L188" class="LineNr">188 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L188" class="LineNr">188 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L189" class="LineNr">189 </span> <span class="subxS2Comment"># . . call</span>
<span id="L190" class="LineNr">190 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32
<span id="L191" class="LineNr">191 </span> <span class="subxS2Comment"># . . discard args</span>

View File

@ -185,14 +185,14 @@ if ('onhashchange' in window) {
<span id="L124" class="LineNr">124 </span> <span class="subxComment"># write-buffered(_test-buffered-file, &quot;Abc&quot;)</span>
<span id="L125" class="LineNr">125 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L126" class="LineNr">126 </span> 68/push <span class="Constant">&quot;Abc&quot;</span>/imm32
<span id="L127" class="LineNr">127 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L127" class="LineNr">127 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L128" class="LineNr">128 </span> <span class="subxS2Comment"># . . call</span>
<span id="L129" class="LineNr">129 </span> e8/call <a href='116write-buffered.subx.html#L8'>write-buffered</a>/disp32
<span id="L130" class="LineNr">130 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L131" class="LineNr">131 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L132" class="LineNr">132 </span> <span class="subxComment"># flush(_test-buffered-file)</span>
<span id="L133" class="LineNr">133 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L134" class="LineNr">134 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L134" class="LineNr">134 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L135" class="LineNr">135 </span> <span class="subxS2Comment"># . . call</span>
<span id="L136" class="LineNr">136 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32
<span id="L137" class="LineNr">137 </span> <span class="subxS2Comment"># . . discard args</span>
@ -231,7 +231,7 @@ if ('onhashchange' in window) {
<span id="L170" class="LineNr">170 </span> <span class="subxS1Comment"># . write-buffered(_test-buffered-file, &quot;Abcdefg&quot;)</span>
<span id="L171" class="LineNr">171 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L172" class="LineNr">172 </span> 68/push <span class="Constant">&quot;Abcdefg&quot;</span>/imm32
<span id="L173" class="LineNr">173 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L173" class="LineNr">173 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L174" class="LineNr">174 </span> <span class="subxS2Comment"># . . call</span>
<span id="L175" class="LineNr">175 </span> e8/call <a href='116write-buffered.subx.html#L8'>write-buffered</a>/disp32
<span id="L176" class="LineNr">176 </span> <span class="subxS2Comment"># . . discard args</span>
@ -255,7 +255,7 @@ if ('onhashchange' in window) {
<span id="L194" class="LineNr">194 </span> 68/push <span class="Constant">&quot;F - <a href='116write-buffered.subx.html#L151'>test-write-buffered-with-intermediate-flush</a>: unflushed bytes&quot;</span>/imm32
<span id="L195" class="LineNr">195 </span> 68/push 1/imm32
<span id="L196" class="LineNr">196 </span> <span class="subxS2Comment"># . . push *_test-buffered-file-&gt;write</span>
<span id="L197" class="LineNr">197 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L197" class="LineNr">197 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L198" class="LineNr">198 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L199" class="LineNr">199 </span> <span class="subxS2Comment"># . . call</span>
<span id="L200" class="LineNr">200 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32

View File

@ -212,14 +212,14 @@ if ('onhashchange' in window) {
<span id="L151" class="LineNr">151 </span> <span class="subxComment"># write-byte-hex-buffered(_test-buffered-file, 0xa) # exercises digit, non-digit as well as leading zero</span>
<span id="L152" class="LineNr">152 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L153" class="LineNr">153 </span> 68/push 0xa/imm32
<span id="L154" class="LineNr">154 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L154" class="LineNr">154 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L155" class="LineNr">155 </span> <span class="subxS2Comment"># . . call</span>
<span id="L156" class="LineNr">156 </span> e8/call <a href='117write-int-hex.subx.html#L93'>write-byte-hex-buffered</a>/disp32
<span id="L157" class="LineNr">157 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L158" class="LineNr">158 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L159" class="LineNr">159 </span> <span class="subxComment"># flush(_test-buffered-file)</span>
<span id="L160" class="LineNr">160 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L161" class="LineNr">161 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L161" class="LineNr">161 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L162" class="LineNr">162 </span> <span class="subxS2Comment"># . . call</span>
<span id="L163" class="LineNr">163 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32
<span id="L164" class="LineNr">164 </span> <span class="subxS2Comment"># . . discard args</span>
@ -402,14 +402,14 @@ if ('onhashchange' in window) {
<span id="L341" class="LineNr">341 </span> <span class="subxComment"># write-int32-hex-buffered(_test-buffered-file, 0x8899aa)</span>
<span id="L342" class="LineNr">342 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L343" class="LineNr">343 </span> 68/push 0x8899aa/imm32
<span id="L344" class="LineNr">344 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L344" class="LineNr">344 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L345" class="LineNr">345 </span> <span class="subxS2Comment"># . . call</span>
<span id="L346" class="LineNr">346 </span> e8/call <a href='117write-int-hex.subx.html#L266'>write-int32-hex-buffered</a>/disp32
<span id="L347" class="LineNr">347 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L348" class="LineNr">348 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L349" class="LineNr">349 </span> <span class="subxComment"># flush(_test-buffered-file)</span>
<span id="L350" class="LineNr">350 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L351" class="LineNr">351 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L351" class="LineNr">351 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L352" class="LineNr">352 </span> <span class="subxS2Comment"># . . call</span>
<span id="L353" class="LineNr">353 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32
<span id="L354" class="LineNr">354 </span> <span class="subxS2Comment"># . . discard args</span>

View File

@ -940,7 +940,7 @@ if ('onhashchange' in window) {
<span id="L879" class="LineNr">879 </span> <span class="subxComment"># curr/esi = start</span>
<span id="L880" class="LineNr">880 </span> <span class="subxComment"># i/ecx = 0</span>
<span id="L881" class="LineNr">881 </span> <span class="subxComment"># while true</span>
<span id="L882" class="LineNr">882 </span> <span class="subxComment"># if (i &gt;= len) break</span>
<span id="L882" class="LineNr">882 </span> <span class="subxComment"># if (i &gt;= size) break</span>
<span id="L883" class="LineNr">883 </span> <span class="subxComment"># *curr = 0</span>
<span id="L884" class="LineNr">884 </span> <span class="subxComment"># ++curr</span>
<span id="L885" class="LineNr">885 </span> <span class="subxComment"># ++i</span>
@ -957,10 +957,10 @@ if ('onhashchange' in window) {
<span id="L896" class="LineNr">896 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 6/r32/esi 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to esi</span>
<span id="L897" class="LineNr">897 </span> <span class="subxComment"># var i/ecx: int = 0</span>
<span id="L898" class="LineNr">898 </span> 31/xor 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># clear ecx</span>
<span id="L899" class="LineNr">899 </span> <span class="subxComment"># edx = len</span>
<span id="L899" class="LineNr">899 </span> <span class="subxComment"># edx = size</span>
<span id="L900" class="LineNr">900 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+12) to edx</span>
<span id="L901" class="LineNr">901 </span><span class="Constant">$zero-out:loop</span>:
<span id="L902" class="LineNr">902 </span> <span class="subxComment"># if (i &gt;= len) break</span>
<span id="L902" class="LineNr">902 </span> <span class="subxComment"># if (i &gt;= size) break</span>
<span id="L903" class="LineNr">903 </span> 39/compare 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># compare ecx with edx</span>
<span id="L904" class="LineNr">904 </span> 7d/jump-if-&gt;= $zero-out:end/disp8
<span id="L905" class="LineNr">905 </span> <span class="subxComment"># *curr = 0</span>
@ -990,7 +990,7 @@ if ('onhashchange' in window) {
<span id="L929" class="LineNr">929 </span> 89/copy 3/mod/direct 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ecx</span>
<span id="L930" class="LineNr">930 </span> <span class="subxComment"># zero-out(ecx, 3)</span>
<span id="L931" class="LineNr">931 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L932" class="LineNr">932 </span> 68/push 3/imm32/len
<span id="L932" class="LineNr">932 </span> 68/push 3/imm32/size
<span id="L933" class="LineNr">933 </span> 51/push-ecx
<span id="L934" class="LineNr">934 </span> <span class="subxS2Comment"># . . call</span>
<span id="L935" class="LineNr">935 </span> e8/call <a href='120allocate.subx.html#L877'>zero-out</a>/disp32

View File

@ -76,7 +76,7 @@ if ('onhashchange' in window) {
<span id="L17" class="LineNr"> 17 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+16) to eax</span>
<span id="L18" class="LineNr"> 18 </span> <span class="subxS1Comment"># . eax *= length</span>
<span id="L19" class="LineNr"> 19 </span> 31/xor 3/mod/direct 2/rm32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># clear edx</span>
<span id="L20" class="LineNr"> 20 </span> f7 4/subop/multiply 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># multiply *(ebp+12) into eax</span>
<span id="L20" class="LineNr"> 20 </span> f7 4/subop/multiply 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># multiply *(ebp+12) into edx:eax</span>
<span id="L21" class="LineNr"> 21 </span> <span class="subxS1Comment"># . if overflow abort</span>
<span id="L22" class="LineNr"> 22 </span> 81 7/subop/compare 3/mod/direct 2/rm32/edx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># compare edx</span>
<span id="L23" class="LineNr"> 23 </span> 75/jump-if-!= $new-stream:abort/disp8

View File

@ -203,7 +203,7 @@ if ('onhashchange' in window) {
<span id="L143" class="LineNr">143 </span> <span class="subxS1Comment"># . eax = read-line-buffered(_test-buffered-file, _test-tmp-stream)</span>
<span id="L144" class="LineNr">144 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L145" class="LineNr">145 </span> 68/push <a href='111read.subx.html#L428'>_test-tmp-stream</a>/imm32
<span id="L146" class="LineNr">146 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L146" class="LineNr">146 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L147" class="LineNr">147 </span> <span class="subxS2Comment"># . . call</span>
<span id="L148" class="LineNr">148 </span> e8/call <a href='122read-line.subx.html#L9'>read-line-buffered</a>/disp32
<span id="L149" class="LineNr">149 </span> <span class="subxS2Comment"># . . discard args</span>
@ -255,7 +255,7 @@ if ('onhashchange' in window) {
<span id="L195" class="LineNr">195 </span> <span class="subxS1Comment"># . eax = read-line-buffered(_test-buffered-file, _test-tmp-stream)</span>
<span id="L196" class="LineNr">196 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L197" class="LineNr">197 </span> 68/push <a href='111read.subx.html#L428'>_test-tmp-stream</a>/imm32
<span id="L198" class="LineNr">198 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L198" class="LineNr">198 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L199" class="LineNr">199 </span> <span class="subxS2Comment"># . . call</span>
<span id="L200" class="LineNr">200 </span> e8/call <a href='122read-line.subx.html#L9'>read-line-buffered</a>/disp32
<span id="L201" class="LineNr">201 </span> <span class="subxS2Comment"># . . discard args</span>

View File

@ -1074,14 +1074,14 @@ if ('onhashchange' in window) {
<span id="L1013" class="LineNr">1013 </span> <span class="subxComment"># write-slice-buffered(_test-buffered-file, slice)</span>
<span id="L1014" class="LineNr">1014 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1015" class="LineNr">1015 </span> 51/push-ecx
<span id="L1016" class="LineNr">1016 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L1016" class="LineNr">1016 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L1017" class="LineNr">1017 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1018" class="LineNr">1018 </span> e8/call <a href='123slice.subx.html#L908'>write-slice-buffered</a>/disp32
<span id="L1019" class="LineNr">1019 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L1020" class="LineNr">1020 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L1021" class="LineNr">1021 </span> <span class="subxComment"># flush(_test-buffered-file)</span>
<span id="L1022" class="LineNr">1022 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1023" class="LineNr">1023 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L1023" class="LineNr">1023 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L1024" class="LineNr">1024 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1025" class="LineNr">1025 </span> e8/call <a href='115write-byte.subx.html#L81'>flush</a>/disp32
<span id="L1026" class="LineNr">1026 </span> <span class="subxS2Comment"># . . discard args</span>

View File

@ -1271,7 +1271,7 @@ if ('onhashchange' in window) {
<span id="L1212" class="LineNr">1212 </span> <span class="subxComment"># setup</span>
<span id="L1213" class="LineNr">1213 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1214" class="LineNr">1214 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1215" class="LineNr">1215 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1215" class="LineNr">1215 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1216" class="LineNr">1216 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1217" class="LineNr">1217 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1218" class="LineNr">1218 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1280,7 +1280,7 @@ if ('onhashchange' in window) {
<span id="L1221" class="LineNr">1221 </span> <span class="subxS1Comment"># . indices: 0123 45</span>
<span id="L1222" class="LineNr">1222 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1223" class="LineNr">1223 </span> 68/push <span class="Constant">&quot;\&quot;</span>abc\<span class="Constant">&quot; def&quot;</span>/imm32
<span id="L1224" class="LineNr">1224 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1224" class="LineNr">1224 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1225" class="LineNr">1225 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1226" class="LineNr">1226 </span> e8/call <a href='108write.subx.html#L24'>write</a>/disp32
<span id="L1227" class="LineNr">1227 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1289,7 +1289,7 @@ if ('onhashchange' in window) {
<span id="L1230" class="LineNr">1230 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1231" class="LineNr">1231 </span> 68/push <span class="Constant">&quot;F - <a href='124next-token.subx.html#L1208'>test-skip-string</a>/precondition&quot;</span>/imm32
<span id="L1232" class="LineNr">1232 </span> 68/push 0/imm32
<span id="L1233" class="LineNr">1233 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1233" class="LineNr">1233 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1234" class="LineNr">1234 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1235" class="LineNr">1235 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1236" class="LineNr">1236 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1297,7 +1297,7 @@ if ('onhashchange' in window) {
<span id="L1238" class="LineNr">1238 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/imm32 <span class="subxComment"># add to esp</span>
<span id="L1239" class="LineNr">1239 </span> <span class="subxComment"># skip-string(_test-input-stream)</span>
<span id="L1240" class="LineNr">1240 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1241" class="LineNr">1241 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1241" class="LineNr">1241 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1242" class="LineNr">1242 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1243" class="LineNr">1243 </span> e8/call <a href='124next-token.subx.html#L1171'>skip-string</a>/disp32
<span id="L1244" class="LineNr">1244 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1306,7 +1306,7 @@ if ('onhashchange' in window) {
<span id="L1247" class="LineNr">1247 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1248" class="LineNr">1248 </span> 68/push <span class="Constant">&quot;F - test-skip-string&quot;</span>/imm32
<span id="L1249" class="LineNr">1249 </span> 68/push 5/imm32
<span id="L1250" class="LineNr">1250 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1250" class="LineNr">1250 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1251" class="LineNr">1251 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1252" class="LineNr">1252 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1253" class="LineNr">1253 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1324,7 +1324,7 @@ if ('onhashchange' in window) {
<span id="L1265" class="LineNr">1265 </span> <span class="subxComment"># setup</span>
<span id="L1266" class="LineNr">1266 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1267" class="LineNr">1267 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1268" class="LineNr">1268 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1268" class="LineNr">1268 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1269" class="LineNr">1269 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1270" class="LineNr">1270 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1271" class="LineNr">1271 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1333,7 +1333,7 @@ if ('onhashchange' in window) {
<span id="L1274" class="LineNr">1274 </span> <span class="subxS1Comment"># . indices: 0123 45</span>
<span id="L1275" class="LineNr">1275 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1276" class="LineNr">1276 </span> 68/push <span class="Constant">&quot;\&quot;</span>a b\<span class="Constant">&quot;/yz&quot;</span>/imm32
<span id="L1277" class="LineNr">1277 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1277" class="LineNr">1277 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1278" class="LineNr">1278 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1279" class="LineNr">1279 </span> e8/call <a href='108write.subx.html#L24'>write</a>/disp32
<span id="L1280" class="LineNr">1280 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1342,7 +1342,7 @@ if ('onhashchange' in window) {
<span id="L1283" class="LineNr">1283 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1284" class="LineNr">1284 </span> 68/push <span class="Constant">&quot;F - <a href='124next-token.subx.html#L1261'>test-skip-string-ignores-spaces</a>/precondition&quot;</span>/imm32
<span id="L1285" class="LineNr">1285 </span> 68/push 0/imm32
<span id="L1286" class="LineNr">1286 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1286" class="LineNr">1286 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1287" class="LineNr">1287 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1288" class="LineNr">1288 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1289" class="LineNr">1289 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1350,7 +1350,7 @@ if ('onhashchange' in window) {
<span id="L1291" class="LineNr">1291 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/imm32 <span class="subxComment"># add to esp</span>
<span id="L1292" class="LineNr">1292 </span> <span class="subxComment"># skip-string(_test-input-stream)</span>
<span id="L1293" class="LineNr">1293 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1294" class="LineNr">1294 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1294" class="LineNr">1294 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1295" class="LineNr">1295 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1296" class="LineNr">1296 </span> e8/call <a href='124next-token.subx.html#L1171'>skip-string</a>/disp32
<span id="L1297" class="LineNr">1297 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1359,7 +1359,7 @@ if ('onhashchange' in window) {
<span id="L1300" class="LineNr">1300 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1301" class="LineNr">1301 </span> 68/push <span class="Constant">&quot;F - test-skip-string-ignores-spaces&quot;</span>/imm32
<span id="L1302" class="LineNr">1302 </span> 68/push 5/imm32
<span id="L1303" class="LineNr">1303 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1303" class="LineNr">1303 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1304" class="LineNr">1304 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1305" class="LineNr">1305 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1306" class="LineNr">1306 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1377,7 +1377,7 @@ if ('onhashchange' in window) {
<span id="L1318" class="LineNr">1318 </span> <span class="subxComment"># setup</span>
<span id="L1319" class="LineNr">1319 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1320" class="LineNr">1320 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1321" class="LineNr">1321 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1321" class="LineNr">1321 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1322" class="LineNr">1322 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1323" class="LineNr">1323 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1324" class="LineNr">1324 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1386,7 +1386,7 @@ if ('onhashchange' in window) {
<span id="L1327" class="LineNr">1327 </span> <span class="subxS1Comment"># . indices: 01 2 34 56</span>
<span id="L1328" class="LineNr">1328 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1329" class="LineNr">1329 </span> 68/push <span class="Constant">&quot;\&quot;</span>a\\\<span class="Constant">&quot;b\&quot;</span>/yz&quot;/imm32
<span id="L1330" class="LineNr">1330 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1330" class="LineNr">1330 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1331" class="LineNr">1331 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1332" class="LineNr">1332 </span> e8/call <a href='108write.subx.html#L24'>write</a>/disp32
<span id="L1333" class="LineNr">1333 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1395,7 +1395,7 @@ if ('onhashchange' in window) {
<span id="L1336" class="LineNr">1336 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1337" class="LineNr">1337 </span> 68/push <span class="Constant">&quot;F - <a href='124next-token.subx.html#L1314'>test-skip-string-ignores-escapes</a>/precondition&quot;</span>/imm32
<span id="L1338" class="LineNr">1338 </span> 68/push 0/imm32
<span id="L1339" class="LineNr">1339 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1339" class="LineNr">1339 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1340" class="LineNr">1340 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1341" class="LineNr">1341 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1342" class="LineNr">1342 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1403,7 +1403,7 @@ if ('onhashchange' in window) {
<span id="L1344" class="LineNr">1344 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/imm32 <span class="subxComment"># add to esp</span>
<span id="L1345" class="LineNr">1345 </span> <span class="subxComment"># skip-string(_test-input-stream)</span>
<span id="L1346" class="LineNr">1346 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1347" class="LineNr">1347 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1347" class="LineNr">1347 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1348" class="LineNr">1348 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1349" class="LineNr">1349 </span> e8/call <a href='124next-token.subx.html#L1171'>skip-string</a>/disp32
<span id="L1350" class="LineNr">1350 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1412,7 +1412,7 @@ if ('onhashchange' in window) {
<span id="L1353" class="LineNr">1353 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1354" class="LineNr">1354 </span> 68/push <span class="Constant">&quot;F - test-skip-string-ignores-escapes&quot;</span>/imm32
<span id="L1355" class="LineNr">1355 </span> 68/push 6/imm32
<span id="L1356" class="LineNr">1356 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1356" class="LineNr">1356 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1357" class="LineNr">1357 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1358" class="LineNr">1358 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1359" class="LineNr">1359 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1430,7 +1430,7 @@ if ('onhashchange' in window) {
<span id="L1371" class="LineNr">1371 </span> <span class="subxComment"># setup</span>
<span id="L1372" class="LineNr">1372 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1373" class="LineNr">1373 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1374" class="LineNr">1374 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1374" class="LineNr">1374 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1375" class="LineNr">1375 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1376" class="LineNr">1376 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1377" class="LineNr">1377 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1439,17 +1439,17 @@ if ('onhashchange' in window) {
<span id="L1380" class="LineNr">1380 </span> <span class="subxS1Comment"># . indices: 01 2 34 56</span>
<span id="L1381" class="LineNr">1381 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1382" class="LineNr">1382 </span> 68/push <span class="Constant">&quot;0 \&quot;</span>a\\\<span class="Constant">&quot;b\&quot;</span>/yz&quot;/imm32
<span id="L1383" class="LineNr">1383 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1383" class="LineNr">1383 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1384" class="LineNr">1384 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1385" class="LineNr">1385 </span> e8/call <a href='108write.subx.html#L24'>write</a>/disp32
<span id="L1386" class="LineNr">1386 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L1387" class="LineNr">1387 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L1388" class="LineNr">1388 </span> <span class="subxComment"># precondition: line-&gt;read == 2</span>
<span id="L1389" class="LineNr">1389 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1389" class="LineNr">1389 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1390" class="LineNr">1390 </span> c7 0/subop/copy 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 2/imm32 <span class="subxComment"># copy to *(eax+4)</span>
<span id="L1391" class="LineNr">1391 </span> <span class="subxComment"># skip-string(_test-input-stream)</span>
<span id="L1392" class="LineNr">1392 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1393" class="LineNr">1393 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1393" class="LineNr">1393 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1394" class="LineNr">1394 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1395" class="LineNr">1395 </span> e8/call <a href='124next-token.subx.html#L1171'>skip-string</a>/disp32
<span id="L1396" class="LineNr">1396 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1458,7 +1458,7 @@ if ('onhashchange' in window) {
<span id="L1399" class="LineNr">1399 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1400" class="LineNr">1400 </span> 68/push <span class="Constant">&quot;F - test-skip-string-works-from-mid-stream&quot;</span>/imm32
<span id="L1401" class="LineNr">1401 </span> 68/push 8/imm32
<span id="L1402" class="LineNr">1402 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1402" class="LineNr">1402 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1403" class="LineNr">1403 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1404" class="LineNr">1404 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1405" class="LineNr">1405 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1699,7 +1699,7 @@ if ('onhashchange' in window) {
<span id="L1640" class="LineNr">1640 </span> <span class="subxComment"># setup</span>
<span id="L1641" class="LineNr">1641 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1642" class="LineNr">1642 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1643" class="LineNr">1643 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1643" class="LineNr">1643 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1644" class="LineNr">1644 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1645" class="LineNr">1645 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1646" class="LineNr">1646 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1708,7 +1708,7 @@ if ('onhashchange' in window) {
<span id="L1649" class="LineNr">1649 </span> <span class="subxS1Comment"># . indices: 0123 45</span>
<span id="L1650" class="LineNr">1650 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1651" class="LineNr">1651 </span> 68/push <span class="Constant">&quot;*(abc) def&quot;</span>/imm32
<span id="L1652" class="LineNr">1652 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1652" class="LineNr">1652 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1653" class="LineNr">1653 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1654" class="LineNr">1654 </span> e8/call <a href='108write.subx.html#L24'>write</a>/disp32
<span id="L1655" class="LineNr">1655 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1717,7 +1717,7 @@ if ('onhashchange' in window) {
<span id="L1658" class="LineNr">1658 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1659" class="LineNr">1659 </span> 68/push <span class="Constant">&quot;F - <a href='124next-token.subx.html#L1636'>test-skip-until-close-paren</a>/precondition&quot;</span>/imm32
<span id="L1660" class="LineNr">1660 </span> 68/push 0/imm32
<span id="L1661" class="LineNr">1661 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1661" class="LineNr">1661 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1662" class="LineNr">1662 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1663" class="LineNr">1663 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1664" class="LineNr">1664 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1725,7 +1725,7 @@ if ('onhashchange' in window) {
<span id="L1666" class="LineNr">1666 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/imm32 <span class="subxComment"># add to esp</span>
<span id="L1667" class="LineNr">1667 </span> <span class="subxComment"># skip-until-close-paren(_test-input-stream)</span>
<span id="L1668" class="LineNr">1668 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1669" class="LineNr">1669 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1669" class="LineNr">1669 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1670" class="LineNr">1670 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1671" class="LineNr">1671 </span> e8/call <a href='124next-token.subx.html#L1599'>skip-until-close-paren</a>/disp32
<span id="L1672" class="LineNr">1672 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1734,7 +1734,7 @@ if ('onhashchange' in window) {
<span id="L1675" class="LineNr">1675 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1676" class="LineNr">1676 </span> 68/push <span class="Constant">&quot;F - test-skip-until-close-paren&quot;</span>/imm32
<span id="L1677" class="LineNr">1677 </span> 68/push 5/imm32
<span id="L1678" class="LineNr">1678 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1678" class="LineNr">1678 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1679" class="LineNr">1679 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1680" class="LineNr">1680 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1681" class="LineNr">1681 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1752,7 +1752,7 @@ if ('onhashchange' in window) {
<span id="L1693" class="LineNr">1693 </span> <span class="subxComment"># setup</span>
<span id="L1694" class="LineNr">1694 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1695" class="LineNr">1695 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1696" class="LineNr">1696 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1696" class="LineNr">1696 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1697" class="LineNr">1697 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1698" class="LineNr">1698 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1699" class="LineNr">1699 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1760,7 +1760,7 @@ if ('onhashchange' in window) {
<span id="L1701" class="LineNr">1701 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;*(a b)/yz&quot;)</span>
<span id="L1702" class="LineNr">1702 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1703" class="LineNr">1703 </span> 68/push <span class="Constant">&quot;*(a b)/yz&quot;</span>/imm32
<span id="L1704" class="LineNr">1704 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1704" class="LineNr">1704 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1705" class="LineNr">1705 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1706" class="LineNr">1706 </span> e8/call <a href='108write.subx.html#L24'>write</a>/disp32
<span id="L1707" class="LineNr">1707 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1769,7 +1769,7 @@ if ('onhashchange' in window) {
<span id="L1710" class="LineNr">1710 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1711" class="LineNr">1711 </span> 68/push <span class="Constant">&quot;F - <a href='124next-token.subx.html#L1689'>test-skip-until-close-paren-ignores-spaces</a>/precondition&quot;</span>/imm32
<span id="L1712" class="LineNr">1712 </span> 68/push 0/imm32
<span id="L1713" class="LineNr">1713 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1713" class="LineNr">1713 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1714" class="LineNr">1714 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1715" class="LineNr">1715 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1716" class="LineNr">1716 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1777,7 +1777,7 @@ if ('onhashchange' in window) {
<span id="L1718" class="LineNr">1718 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xc/imm32 <span class="subxComment"># add to esp</span>
<span id="L1719" class="LineNr">1719 </span> <span class="subxComment"># skip-until-close-paren(_test-input-stream)</span>
<span id="L1720" class="LineNr">1720 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1721" class="LineNr">1721 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1721" class="LineNr">1721 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1722" class="LineNr">1722 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1723" class="LineNr">1723 </span> e8/call <a href='124next-token.subx.html#L1599'>skip-until-close-paren</a>/disp32
<span id="L1724" class="LineNr">1724 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1786,7 +1786,7 @@ if ('onhashchange' in window) {
<span id="L1727" class="LineNr">1727 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1728" class="LineNr">1728 </span> 68/push <span class="Constant">&quot;F - test-skip-until-close-paren-ignores-spaces&quot;</span>/imm32
<span id="L1729" class="LineNr">1729 </span> 68/push 5/imm32
<span id="L1730" class="LineNr">1730 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1730" class="LineNr">1730 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1731" class="LineNr">1731 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1732" class="LineNr">1732 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1733" class="LineNr">1733 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1804,7 +1804,7 @@ if ('onhashchange' in window) {
<span id="L1745" class="LineNr">1745 </span> <span class="subxComment"># setup</span>
<span id="L1746" class="LineNr">1746 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1747" class="LineNr">1747 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1748" class="LineNr">1748 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1748" class="LineNr">1748 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1749" class="LineNr">1749 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1750" class="LineNr">1750 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1751" class="LineNr">1751 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1812,17 +1812,17 @@ if ('onhashchange' in window) {
<span id="L1753" class="LineNr">1753 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;0 *(a b)/yz&quot;)</span>
<span id="L1754" class="LineNr">1754 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1755" class="LineNr">1755 </span> 68/push <span class="Constant">&quot;0 *(a b)/yz&quot;</span>/imm32
<span id="L1756" class="LineNr">1756 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1756" class="LineNr">1756 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1757" class="LineNr">1757 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1758" class="LineNr">1758 </span> e8/call <a href='108write.subx.html#L24'>write</a>/disp32
<span id="L1759" class="LineNr">1759 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L1760" class="LineNr">1760 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L1761" class="LineNr">1761 </span> <span class="subxComment"># precondition: _test-input-stream-&gt;read == 2</span>
<span id="L1762" class="LineNr">1762 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1762" class="LineNr">1762 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1763" class="LineNr">1763 </span> c7 0/subop/copy 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 2/imm32 <span class="subxComment"># copy to *(eax+4)</span>
<span id="L1764" class="LineNr">1764 </span> <span class="subxComment"># skip-until-close-paren(_test-input-stream)</span>
<span id="L1765" class="LineNr">1765 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1766" class="LineNr">1766 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1766" class="LineNr">1766 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1767" class="LineNr">1767 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1768" class="LineNr">1768 </span> e8/call <a href='124next-token.subx.html#L1599'>skip-until-close-paren</a>/disp32
<span id="L1769" class="LineNr">1769 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1831,7 +1831,7 @@ if ('onhashchange' in window) {
<span id="L1772" class="LineNr">1772 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1773" class="LineNr">1773 </span> 68/push <span class="Constant">&quot;F - test-skip-until-close-paren-works-from-mid-stream&quot;</span>/imm32
<span id="L1774" class="LineNr">1774 </span> 68/push 7/imm32
<span id="L1775" class="LineNr">1775 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1775" class="LineNr">1775 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1776" class="LineNr">1776 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1777" class="LineNr">1777 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1778" class="LineNr">1778 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32

View File

@ -128,7 +128,7 @@ if ('onhashchange' in window) {
<span id="L69" class="LineNr"> 69 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm32 <span class="subxComment"># add to esp</span>
<span id="L70" class="LineNr"> 70 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L71" class="LineNr"> 71 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L72" class="LineNr"> 72 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L72" class="LineNr"> 72 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L73" class="LineNr"> 73 </span> <span class="subxS2Comment"># . . call</span>
<span id="L74" class="LineNr"> 74 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L75" class="LineNr"> 75 </span> <span class="subxS2Comment"># . . discard args</span>
@ -137,14 +137,14 @@ if ('onhashchange' in window) {
<span id="L78" class="LineNr"> 78 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;abcd&quot;)</span>
<span id="L79" class="LineNr"> 79 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L80" class="LineNr"> 80 </span> 68/push <span class="Constant">&quot;abcd&quot;</span>/imm32
<span id="L81" class="LineNr"> 81 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L81" class="LineNr"> 81 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L82" class="LineNr"> 82 </span> <span class="subxS2Comment"># . . call</span>
<span id="L83" class="LineNr"> 83 </span> e8/call <a href='108write.subx.html#L24'>write</a>/disp32
<span id="L84" class="LineNr"> 84 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L85" class="LineNr"> 85 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L86" class="LineNr"> 86 </span> <span class="subxComment"># write-stream-data(_test-output-buffered-file, _test-input-stream)</span>
<span id="L87" class="LineNr"> 87 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L88" class="LineNr"> 88 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L88" class="LineNr"> 88 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L89" class="LineNr"> 89 </span> 68/push <a href='115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L90" class="LineNr"> 90 </span> <span class="subxS2Comment"># . . call</span>
<span id="L91" class="LineNr"> 91 </span> e8/call <a href='125write-stream-data.subx.html#L11'>write-stream-data</a>/disp32

View File

@ -197,7 +197,7 @@ if ('onhashchange' in window) {
<span id="L138" class="LineNr">138 </span> <span class="subxS1Comment"># . eax = slurp(_test-buffered-file, _test-tmp-stream)</span>
<span id="L139" class="LineNr">139 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L140" class="LineNr">140 </span> 68/push <a href='111read.subx.html#L428'>_test-tmp-stream</a>/imm32
<span id="L141" class="LineNr">141 </span> 68/push <a href='112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L141" class="LineNr">141 </span> 68/push <a href='112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L142" class="LineNr">142 </span> <span class="subxS2Comment"># . . call</span>
<span id="L143" class="LineNr">143 </span> e8/call <a href='132slurp.subx.html#L8'>slurp</a>/disp32
<span id="L144" class="LineNr">144 </span> <span class="subxS2Comment"># . . discard args</span>

View File

@ -165,7 +165,7 @@ if ('onhashchange' in window) {
<span id="L106" class="LineNr">106 </span> <span class="subxComment"># setup</span>
<span id="L107" class="LineNr">107 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L108" class="LineNr">108 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L109" class="LineNr">109 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L109" class="LineNr">109 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L110" class="LineNr">110 </span> <span class="subxS2Comment"># . . call</span>
<span id="L111" class="LineNr">111 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L112" class="LineNr">112 </span> <span class="subxS2Comment"># . . discard args</span>
@ -177,7 +177,7 @@ if ('onhashchange' in window) {
<span id="L118" class="LineNr">118 </span> <span class="subxComment"># write(_test-input-stream, &quot; ab&quot;)</span>
<span id="L119" class="LineNr">119 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L120" class="LineNr">120 </span> 68/push <span class="Constant">&quot; ab&quot;</span>/imm32
<span id="L121" class="LineNr">121 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L121" class="LineNr">121 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L122" class="LineNr">122 </span> <span class="subxS2Comment"># . . call</span>
<span id="L123" class="LineNr">123 </span> e8/call <a href='108write.subx.html#L24'>write</a>/disp32
<span id="L124" class="LineNr">124 </span> <span class="subxS2Comment"># . . discard args</span>
@ -185,7 +185,7 @@ if ('onhashchange' in window) {
<span id="L126" class="LineNr">126 </span> <span class="subxComment"># next-word-or-string(_test-input-stream, slice)</span>
<span id="L127" class="LineNr">127 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L128" class="LineNr">128 </span> 51/push-ecx
<span id="L129" class="LineNr">129 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L129" class="LineNr">129 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L130" class="LineNr">130 </span> <span class="subxS2Comment"># . . call</span>
<span id="L131" class="LineNr">131 </span> e8/call <a href='135next-word-or-string.subx.html#L8'>next-word-or-string</a>/disp32
<span id="L132" class="LineNr">132 </span> <span class="subxS2Comment"># . . discard args</span>
@ -194,7 +194,7 @@ if ('onhashchange' in window) {
<span id="L135" class="LineNr">135 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L136" class="LineNr">136 </span> 68/push <span class="Constant">&quot;F - <a href='135next-word-or-string.subx.html#L102'>test-next-word-or-string</a>/updates-stream-read-correctly&quot;</span>/imm32
<span id="L137" class="LineNr">137 </span> 68/push 4/imm32
<span id="L138" class="LineNr">138 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L138" class="LineNr">138 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L139" class="LineNr">139 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L140" class="LineNr">140 </span> <span class="subxS2Comment"># . . call</span>
<span id="L141" class="LineNr">141 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -207,7 +207,7 @@ if ('onhashchange' in window) {
<span id="L148" class="LineNr">148 </span> 68/push 0xe/imm32
<span id="L149" class="LineNr">149 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L150" class="LineNr">150 </span> 8b/copy 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to eax</span>
<span id="L151" class="LineNr">151 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L151" class="LineNr">151 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L152" class="LineNr">152 </span> 50/push-eax
<span id="L153" class="LineNr">153 </span> <span class="subxS2Comment"># . . call</span>
<span id="L154" class="LineNr">154 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -220,7 +220,7 @@ if ('onhashchange' in window) {
<span id="L161" class="LineNr">161 </span> 68/push 0x10/imm32
<span id="L162" class="LineNr">162 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L163" class="LineNr">163 </span> 8b/copy 1/mod/*+disp8 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ecx+4) to eax</span>
<span id="L164" class="LineNr">164 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L164" class="LineNr">164 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L165" class="LineNr">165 </span> 50/push-eax
<span id="L166" class="LineNr">166 </span> <span class="subxS2Comment"># . . call</span>
<span id="L167" class="LineNr">167 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -238,7 +238,7 @@ if ('onhashchange' in window) {
<span id="L179" class="LineNr">179 </span> <span class="subxComment"># setup</span>
<span id="L180" class="LineNr">180 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L181" class="LineNr">181 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L182" class="LineNr">182 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L182" class="LineNr">182 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L183" class="LineNr">183 </span> <span class="subxS2Comment"># . . call</span>
<span id="L184" class="LineNr">184 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L185" class="LineNr">185 </span> <span class="subxS2Comment"># . . discard args</span>
@ -250,7 +250,7 @@ if ('onhashchange' in window) {
<span id="L191" class="LineNr">191 </span> <span class="subxComment"># write(_test-input-stream, &quot; # a&quot;)</span>
<span id="L192" class="LineNr">192 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L193" class="LineNr">193 </span> 68/push <span class="Constant">&quot; # a&quot;</span>/imm32
<span id="L194" class="LineNr">194 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L194" class="LineNr">194 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L195" class="LineNr">195 </span> <span class="subxS2Comment"># . . call</span>
<span id="L196" class="LineNr">196 </span> e8/call <a href='108write.subx.html#L24'>write</a>/disp32
<span id="L197" class="LineNr">197 </span> <span class="subxS2Comment"># . . discard args</span>
@ -258,7 +258,7 @@ if ('onhashchange' in window) {
<span id="L199" class="LineNr">199 </span> <span class="subxComment"># next-word-or-string(_test-input-stream, slice)</span>
<span id="L200" class="LineNr">200 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L201" class="LineNr">201 </span> 51/push-ecx
<span id="L202" class="LineNr">202 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L202" class="LineNr">202 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L203" class="LineNr">203 </span> <span class="subxS2Comment"># . . call</span>
<span id="L204" class="LineNr">204 </span> e8/call <a href='135next-word-or-string.subx.html#L8'>next-word-or-string</a>/disp32
<span id="L205" class="LineNr">205 </span> <span class="subxS2Comment"># . . discard args</span>
@ -267,7 +267,7 @@ if ('onhashchange' in window) {
<span id="L208" class="LineNr">208 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L209" class="LineNr">209 </span> 68/push <span class="Constant">&quot;F - <a href='135next-word-or-string.subx.html#L175'>test-next-word-or-string-returns-whole-comment</a>/updates-stream-read-correctly&quot;</span>/imm32
<span id="L210" class="LineNr">210 </span> 68/push 5/imm32
<span id="L211" class="LineNr">211 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L211" class="LineNr">211 </span> b8/copy-to-eax <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L212" class="LineNr">212 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L213" class="LineNr">213 </span> <span class="subxS2Comment"># . . call</span>
<span id="L214" class="LineNr">214 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -280,7 +280,7 @@ if ('onhashchange' in window) {
<span id="L221" class="LineNr">221 </span> 68/push 0xe/imm32
<span id="L222" class="LineNr">222 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L223" class="LineNr">223 </span> 8b/copy 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to eax</span>
<span id="L224" class="LineNr">224 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L224" class="LineNr">224 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L225" class="LineNr">225 </span> 50/push-eax
<span id="L226" class="LineNr">226 </span> <span class="subxS2Comment"># . . call</span>
<span id="L227" class="LineNr">227 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -293,7 +293,7 @@ if ('onhashchange' in window) {
<span id="L234" class="LineNr">234 </span> 68/push 0x11/imm32
<span id="L235" class="LineNr">235 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L236" class="LineNr">236 </span> 8b/copy 1/mod/*+disp8 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ecx+4) to eax</span>
<span id="L237" class="LineNr">237 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L237" class="LineNr">237 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L238" class="LineNr">238 </span> 50/push-eax
<span id="L239" class="LineNr">239 </span> <span class="subxS2Comment"># . . call</span>
<span id="L240" class="LineNr">240 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -311,7 +311,7 @@ if ('onhashchange' in window) {
<span id="L252" class="LineNr">252 </span> <span class="subxComment"># setup</span>
<span id="L253" class="LineNr">253 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L254" class="LineNr">254 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L255" class="LineNr">255 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L255" class="LineNr">255 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L256" class="LineNr">256 </span> <span class="subxS2Comment"># . . call</span>
<span id="L257" class="LineNr">257 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L258" class="LineNr">258 </span> <span class="subxS2Comment"># . . discard args</span>
@ -324,7 +324,7 @@ if ('onhashchange' in window) {
<span id="L265" class="LineNr">265 </span> <span class="subxComment"># next-word-or-string(_test-input-stream, slice)</span>
<span id="L266" class="LineNr">266 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L267" class="LineNr">267 </span> 51/push-ecx
<span id="L268" class="LineNr">268 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L268" class="LineNr">268 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L269" class="LineNr">269 </span> <span class="subxS2Comment"># . . call</span>
<span id="L270" class="LineNr">270 </span> e8/call <a href='135next-word-or-string.subx.html#L8'>next-word-or-string</a>/disp32
<span id="L271" class="LineNr">271 </span> <span class="subxS2Comment"># . . discard args</span>
@ -353,7 +353,7 @@ if ('onhashchange' in window) {
<span id="L294" class="LineNr">294 </span> <span class="subxComment"># setup</span>
<span id="L295" class="LineNr">295 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L296" class="LineNr">296 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L297" class="LineNr">297 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L297" class="LineNr">297 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L298" class="LineNr">298 </span> <span class="subxS2Comment"># . . call</span>
<span id="L299" class="LineNr">299 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L300" class="LineNr">300 </span> <span class="subxS2Comment"># . . discard args</span>
@ -365,7 +365,7 @@ if ('onhashchange' in window) {
<span id="L306" class="LineNr">306 </span> <span class="subxComment"># write(_test-input-stream, &quot; \&quot;a b\&quot;/imm32 &quot;)</span>
<span id="L307" class="LineNr">307 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L308" class="LineNr">308 </span> 68/push <span class="Constant">&quot; \&quot;</span>a b\<span class="Constant">&quot;/imm32 &quot;</span>/imm32
<span id="L309" class="LineNr">309 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L309" class="LineNr">309 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L310" class="LineNr">310 </span> <span class="subxS2Comment"># . . call</span>
<span id="L311" class="LineNr">311 </span> e8/call <a href='108write.subx.html#L24'>write</a>/disp32
<span id="L312" class="LineNr">312 </span> <span class="subxS2Comment"># . . discard args</span>
@ -373,7 +373,7 @@ if ('onhashchange' in window) {
<span id="L314" class="LineNr">314 </span> <span class="subxComment"># next-word-or-string(_test-input-stream, slice)</span>
<span id="L315" class="LineNr">315 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L316" class="LineNr">316 </span> 51/push-ecx
<span id="L317" class="LineNr">317 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L317" class="LineNr">317 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L318" class="LineNr">318 </span> <span class="subxS2Comment"># . . call</span>
<span id="L319" class="LineNr">319 </span> e8/call <a href='135next-word-or-string.subx.html#L8'>next-word-or-string</a>/disp32
<span id="L320" class="LineNr">320 </span> <span class="subxS2Comment"># . . discard args</span>
@ -385,7 +385,7 @@ if ('onhashchange' in window) {
<span id="L326" class="LineNr">326 </span> 68/push 0xd/imm32
<span id="L327" class="LineNr">327 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L328" class="LineNr">328 </span> 8b/copy 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to eax</span>
<span id="L329" class="LineNr">329 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L329" class="LineNr">329 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L330" class="LineNr">330 </span> 50/push-eax
<span id="L331" class="LineNr">331 </span> <span class="subxS2Comment"># . . call</span>
<span id="L332" class="LineNr">332 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -398,7 +398,7 @@ if ('onhashchange' in window) {
<span id="L339" class="LineNr">339 </span> 68/push 0x18/imm32
<span id="L340" class="LineNr">340 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L341" class="LineNr">341 </span> 8b/copy 1/mod/*+disp8 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ecx+4) to eax</span>
<span id="L342" class="LineNr">342 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L342" class="LineNr">342 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L343" class="LineNr">343 </span> 50/push-eax
<span id="L344" class="LineNr">344 </span> <span class="subxS2Comment"># . . call</span>
<span id="L345" class="LineNr">345 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -416,7 +416,7 @@ if ('onhashchange' in window) {
<span id="L357" class="LineNr">357 </span> <span class="subxComment"># setup</span>
<span id="L358" class="LineNr">358 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L359" class="LineNr">359 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L360" class="LineNr">360 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L360" class="LineNr">360 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L361" class="LineNr">361 </span> <span class="subxS2Comment"># . . call</span>
<span id="L362" class="LineNr">362 </span> e8/call <a href='106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L363" class="LineNr">363 </span> <span class="subxS2Comment"># . . discard args</span>
@ -428,7 +428,7 @@ if ('onhashchange' in window) {
<span id="L369" class="LineNr">369 </span> <span class="subxComment"># write(_test-input-stream, &quot; \&quot;a\\\&quot;b\&quot;/x&quot;)</span>
<span id="L370" class="LineNr">370 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L371" class="LineNr">371 </span> 68/push <span class="Constant">&quot; \&quot;</span>a\\\<span class="Constant">&quot;b\&quot;</span>/x&quot;/imm32
<span id="L372" class="LineNr">372 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L372" class="LineNr">372 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L373" class="LineNr">373 </span> <span class="subxS2Comment"># . . call</span>
<span id="L374" class="LineNr">374 </span> e8/call <a href='108write.subx.html#L24'>write</a>/disp32
<span id="L375" class="LineNr">375 </span> <span class="subxS2Comment"># . . discard args</span>
@ -436,7 +436,7 @@ if ('onhashchange' in window) {
<span id="L377" class="LineNr">377 </span> <span class="subxComment"># next-word-or-string(_test-input-stream, slice)</span>
<span id="L378" class="LineNr">378 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L379" class="LineNr">379 </span> 51/push-ecx
<span id="L380" class="LineNr">380 </span> 68/push <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L380" class="LineNr">380 </span> 68/push <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L381" class="LineNr">381 </span> <span class="subxS2Comment"># . . call</span>
<span id="L382" class="LineNr">382 </span> e8/call <a href='135next-word-or-string.subx.html#L8'>next-word-or-string</a>/disp32
<span id="L383" class="LineNr">383 </span> <span class="subxS2Comment"># . . discard args</span>
@ -448,7 +448,7 @@ if ('onhashchange' in window) {
<span id="L389" class="LineNr">389 </span> 68/push 0xd/imm32
<span id="L390" class="LineNr">390 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L391" class="LineNr">391 </span> 8b/copy 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to eax</span>
<span id="L392" class="LineNr">392 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L392" class="LineNr">392 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L393" class="LineNr">393 </span> 50/push-eax
<span id="L394" class="LineNr">394 </span> <span class="subxS2Comment"># . . call</span>
<span id="L395" class="LineNr">395 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -461,7 +461,7 @@ if ('onhashchange' in window) {
<span id="L402" class="LineNr">402 </span> 68/push 0x15/imm32
<span id="L403" class="LineNr">403 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L404" class="LineNr">404 </span> 8b/copy 1/mod/*+disp8 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ecx+4) to eax</span>
<span id="L405" class="LineNr">405 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L405" class="LineNr">405 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L406" class="LineNr">406 </span> 50/push-eax
<span id="L407" class="LineNr">407 </span> <span class="subxS2Comment"># . . call</span>
<span id="L408" class="LineNr">408 </span> e8/call <a href='102test.subx.html#L23'>check-ints-equal</a>/disp32

View File

@ -56,23 +56,28 @@ if ('onhashchange' in window) {
<pre id='vimCodeElement'>
<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># 2-arg version of allocate-array.</span>
<span id="L2" class="LineNr"> 2 </span>
<span id="L3" class="LineNr"> 3 </span><span class="subxFunction">allocate-array2</span>: <span class="subxComment"># ad: (addr allocation-descriptor), array-len: int, elem-size: int, out: (addr handle array _)</span>
<span id="L4" class="LineNr"> 4 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L5" class="LineNr"> 5 </span> 55/push-ebp
<span id="L6" class="LineNr"> 6 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L7" class="LineNr"> 7 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L8" class="LineNr"> 8 </span> 50/push-eax
<span id="L9" class="LineNr"> 9 </span> <span class="subxComment">#</span>
<span id="L10" class="LineNr">10 </span> 8b/-&gt; *(ebp+0xc) 0/r32/eax
<span id="L11" class="LineNr">11 </span> f7 4/subop/multiply-into 0/r32/eax *(ebp+0x10)
<span id="L12" class="LineNr">12 </span> (<a href='120allocate.subx.html#L576'>allocate-array</a> *(ebp+8) %eax *(ebp+0x14))
<span id="L13" class="LineNr">13 </span><span class="Constant">$allocate-array2:end</span>:
<span id="L14" class="LineNr">14 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L15" class="LineNr">15 </span> 58/pop-to-eax
<span id="L16" class="LineNr">16 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L17" class="LineNr">17 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L18" class="LineNr">18 </span> 5d/pop-to-ebp
<span id="L19" class="LineNr">19 </span> c3/return
<span id="L3" class="LineNr"> 3 </span>== code
<span id="L4" class="LineNr"> 4 </span>
<span id="L5" class="LineNr"> 5 </span><span class="subxFunction">allocate-array2</span>: <span class="subxComment"># ad: (addr allocation-descriptor), array-len: int, elem-size: int, out: (addr handle array _)</span>
<span id="L6" class="LineNr"> 6 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L7" class="LineNr"> 7 </span> 55/push-ebp
<span id="L8" class="LineNr"> 8 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L9" class="LineNr"> 9 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L10" class="LineNr">10 </span> 50/push-eax
<span id="L11" class="LineNr">11 </span> 52/push-edx
<span id="L12" class="LineNr">12 </span> <span class="subxComment">#</span>
<span id="L13" class="LineNr">13 </span> 8b/-&gt; *(ebp+0xc) 0/r32/eax
<span id="L14" class="LineNr">14 </span> f7 4/subop/multiply-into-eax-edx *(ebp+0x10)
<span id="L15" class="LineNr">15 </span> <span class="subxComment"># TODO: check edx for overflow</span>
<span id="L16" class="LineNr">16 </span> (<a href='120allocate.subx.html#L576'>allocate-array</a> *(ebp+8) %eax *(ebp+0x14))
<span id="L17" class="LineNr">17 </span><span class="Constant">$allocate-array2:end</span>:
<span id="L18" class="LineNr">18 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L19" class="LineNr">19 </span> 5a/pop-to-edx
<span id="L20" class="LineNr">20 </span> 58/pop-to-eax
<span id="L21" class="LineNr">21 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L22" class="LineNr">22 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L23" class="LineNr">23 </span> 5d/pop-to-ebp
<span id="L24" class="LineNr">24 </span> c3/return
</pre>
</body>
</html>

308
html/309stream.subx.html generated
View File

@ -58,159 +58,161 @@ if ('onhashchange' in window) {
<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Some unsafe methods not intended to be used directly in SubX, only through</span>
<span id="L2" class="LineNr"> 2 </span><span class="subxComment"># Mu after proper type-checking.</span>
<span id="L3" class="LineNr"> 3 </span>
<span id="L4" class="LineNr"> 4 </span><span class="subxFunction">stream-empty?</span>: <span class="subxComment"># s: (addr stream _) -&gt; result/eax: boolean</span>
<span id="L5" class="LineNr"> 5 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L6" class="LineNr"> 6 </span> 55/push-ebp
<span id="L7" class="LineNr"> 7 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L8" class="LineNr"> 8 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L9" class="LineNr"> 9 </span> 51/push-ecx
<span id="L10" class="LineNr"> 10 </span> 56/push-esi
<span id="L11" class="LineNr"> 11 </span> <span class="subxComment"># result = false</span>
<span id="L12" class="LineNr"> 12 </span> b8/copy-to-eax 0/imm32/false
<span id="L13" class="LineNr"> 13 </span> <span class="subxComment"># esi = s</span>
<span id="L14" class="LineNr"> 14 </span> 8b/-&gt; *(ebp+8) 6/r32/esi
<span id="L15" class="LineNr"> 15 </span> <span class="subxComment"># return s-&gt;read &gt;= s-&gt;write</span>
<span id="L16" class="LineNr"> 16 </span> 8b/-&gt; *esi 1/r32/ecx
<span id="L17" class="LineNr"> 17 </span> 39/compare-with *(esi+4) 1/r32/ecx
<span id="L18" class="LineNr"> 18 </span> 0f 9d/set-if-&gt;= %al
<span id="L19" class="LineNr"> 19 </span><span class="Constant">$stream-empty?:end</span>:
<span id="L20" class="LineNr"> 20 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L21" class="LineNr"> 21 </span> 5e/pop-to-esi
<span id="L22" class="LineNr"> 22 </span> 59/pop-to-ecx
<span id="L23" class="LineNr"> 23 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L24" class="LineNr"> 24 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L25" class="LineNr"> 25 </span> 5d/pop-to-ebp
<span id="L26" class="LineNr"> 26 </span> c3/return
<span id="L27" class="LineNr"> 27 </span>
<span id="L28" class="LineNr"> 28 </span><span class="subxFunction">stream-full?</span>: <span class="subxComment"># s: (addr stream _) -&gt; result/eax: boolean</span>
<span id="L29" class="LineNr"> 29 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L30" class="LineNr"> 30 </span> 55/push-ebp
<span id="L31" class="LineNr"> 31 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L32" class="LineNr"> 32 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L33" class="LineNr"> 33 </span> 51/push-ecx
<span id="L34" class="LineNr"> 34 </span> 56/push-esi
<span id="L35" class="LineNr"> 35 </span> <span class="subxComment"># result = false</span>
<span id="L36" class="LineNr"> 36 </span> b8/copy-to-eax 0/imm32/false
<span id="L37" class="LineNr"> 37 </span> <span class="subxComment"># esi = s</span>
<span id="L38" class="LineNr"> 38 </span> 8b/-&gt; *(ebp+8) 6/r32/esi
<span id="L39" class="LineNr"> 39 </span> <span class="subxComment"># return s-&gt;write &gt;= s-&gt;size</span>
<span id="L40" class="LineNr"> 40 </span> 8b/-&gt; *(esi+8) 1/r32/ecx
<span id="L41" class="LineNr"> 41 </span> 39/compare-with *esi 1/r32/ecx
<span id="L42" class="LineNr"> 42 </span> 0f 9d/set-if-&gt;= %al
<span id="L43" class="LineNr"> 43 </span><span class="Constant">$stream-full?:end</span>:
<span id="L44" class="LineNr"> 44 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L45" class="LineNr"> 45 </span> 5e/pop-to-esi
<span id="L46" class="LineNr"> 46 </span> 59/pop-to-ecx
<span id="L47" class="LineNr"> 47 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L48" class="LineNr"> 48 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L49" class="LineNr"> 49 </span> 5d/pop-to-ebp
<span id="L50" class="LineNr"> 50 </span> c3/return
<span id="L51" class="LineNr"> 51 </span>
<span id="L52" class="LineNr"> 52 </span><span class="subxFunction">write-to-stream</span>: <span class="subxComment"># s: (addr stream _), in: (addr byte), n: int</span>
<span id="L53" class="LineNr"> 53 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L54" class="LineNr"> 54 </span> 55/push-ebp
<span id="L55" class="LineNr"> 55 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L56" class="LineNr"> 56 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L57" class="LineNr"> 57 </span> 50/push-eax
<span id="L58" class="LineNr"> 58 </span> 51/push-ecx
<span id="L59" class="LineNr"> 59 </span> 52/push-edx
<span id="L60" class="LineNr"> 60 </span> 53/push-ebx
<span id="L61" class="LineNr"> 61 </span> 57/push-edi
<span id="L62" class="LineNr"> 62 </span> <span class="subxComment"># edi = s</span>
<span id="L63" class="LineNr"> 63 </span> 8b/-&gt; *(ebp+8) 7/r32/edi
<span id="L64" class="LineNr"> 64 </span> <span class="subxComment"># var swrite/edx: int = s-&gt;write</span>
<span id="L65" class="LineNr"> 65 </span> 8b/-&gt; *edi 2/r32/edx
<span id="L66" class="LineNr"> 66 </span> <span class="subxComment"># if (swrite + n &gt; s-&gt;size) abort</span>
<span id="L67" class="LineNr"> 67 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L68" class="LineNr"> 68 </span> 01/add-to %ecx 2/r32/edx
<span id="L69" class="LineNr"> 69 </span> 3b/compare 1/r32/ecx *(edi+8)
<span id="L70" class="LineNr"> 70 </span> 0f 8f/jump-if-&gt; $write-to-stream:abort/disp32
<span id="L71" class="LineNr"> 71 </span> <span class="subxComment"># var out/edx: (addr byte) = s-&gt;data + s-&gt;write</span>
<span id="L72" class="LineNr"> 72 </span> 8d/copy-address *(edi+edx+0xc) 2/r32/edx
<span id="L73" class="LineNr"> 73 </span> <span class="subxComment"># var outend/ebx: (addr byte) = out + n</span>
<span id="L74" class="LineNr"> 74 </span> 8b/-&gt; *(ebp+0x10) 3/r32/ebx
<span id="L75" class="LineNr"> 75 </span> 8d/copy-address *(edx+ebx) 3/r32/ebx
<span id="L76" class="LineNr"> 76 </span> <span class="subxComment"># eax = in</span>
<span id="L77" class="LineNr"> 77 </span> 8b/-&gt; *(ebp+0xc) 0/r32/eax
<span id="L78" class="LineNr"> 78 </span> <span class="subxComment"># var inend/ecx: (addr byte) = in + n</span>
<span id="L79" class="LineNr"> 79 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L80" class="LineNr"> 80 </span> 8d/copy-address *(eax+ecx) 1/r32/ecx
<span id="L81" class="LineNr"> 81 </span> <span class="subxComment">#</span>
<span id="L82" class="LineNr"> 82 </span> (<a href='107trace.subx.html#L897'>_append-4</a> %edx %ebx %eax %ecx) <span class="subxComment"># =&gt; eax</span>
<span id="L83" class="LineNr"> 83 </span> <span class="subxComment"># s-&gt;write += n</span>
<span id="L84" class="LineNr"> 84 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L85" class="LineNr"> 85 </span> 01/add-to *edi 1/r32/ecx
<span id="L86" class="LineNr"> 86 </span><span class="Constant">$write-to-stream:end</span>:
<span id="L87" class="LineNr"> 87 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L88" class="LineNr"> 88 </span> 5f/pop-to-edi
<span id="L89" class="LineNr"> 89 </span> 5b/pop-to-ebx
<span id="L90" class="LineNr"> 90 </span> 5a/pop-to-edx
<span id="L91" class="LineNr"> 91 </span> 59/pop-to-ecx
<span id="L92" class="LineNr"> 92 </span> 58/pop-to-eax
<span id="L93" class="LineNr"> 93 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L94" class="LineNr"> 94 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L95" class="LineNr"> 95 </span> 5d/pop-to-ebp
<span id="L96" class="LineNr"> 96 </span> c3/return
<span id="L97" class="LineNr"> 97 </span>
<span id="L98" class="LineNr"> 98 </span><span class="Constant">$write-to-stream:abort</span>:
<span id="L99" class="LineNr"> 99 </span> (<a href='116write-buffered.subx.html#L8'>write-buffered</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> <span class="Constant">&quot;write-to-stream: stream full\n&quot;</span>)
<span id="L100" class="LineNr">100 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span>)
<span id="L101" class="LineNr">101 </span> bb/copy-to-ebx 1/imm32
<span id="L102" class="LineNr">102 </span> (syscall_exit)
<span id="L103" class="LineNr">103 </span> <span class="subxComment"># never gets here</span>
<span id="L104" class="LineNr">104 </span>
<span id="L105" class="LineNr">105 </span><span class="subxFunction">read-from-stream</span>: <span class="subxComment"># s: (addr stream _), out: (addr byte), n: int</span>
<span id="L106" class="LineNr">106 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L107" class="LineNr">107 </span> 55/push-ebp
<span id="L108" class="LineNr">108 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L109" class="LineNr">109 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L110" class="LineNr">110 </span> 50/push-eax
<span id="L111" class="LineNr">111 </span> 51/push-ecx
<span id="L112" class="LineNr">112 </span> 52/push-edx
<span id="L113" class="LineNr">113 </span> 53/push-ebx
<span id="L114" class="LineNr">114 </span> 56/push-esi
<span id="L115" class="LineNr">115 </span> <span class="subxComment"># esi = s</span>
<span id="L116" class="LineNr">116 </span> 8b/-&gt; *(ebp+8) 6/r32/esi
<span id="L117" class="LineNr">117 </span> <span class="subxComment"># var sread/edx: int = s-&gt;read</span>
<span id="L118" class="LineNr">118 </span> 8b/-&gt; *(esi+4) 2/r32/edx
<span id="L119" class="LineNr">119 </span> <span class="subxComment"># if (sread + n &gt; s-&gt;write) abort</span>
<span id="L120" class="LineNr">120 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L121" class="LineNr">121 </span> 01/add-to %ecx 2/r32/edx
<span id="L122" class="LineNr">122 </span> 3b/compare 1/r32/ecx *esi
<span id="L123" class="LineNr">123 </span> 0f 8f/jump-if-&gt; $read-from-stream:abort/disp32
<span id="L124" class="LineNr">124 </span> <span class="subxComment"># var in/edx: (addr byte) = s-&gt;data + s-&gt;read</span>
<span id="L125" class="LineNr">125 </span> 8d/copy-address *(esi+edx+0xc) 2/r32/edx
<span id="L126" class="LineNr">126 </span> <span class="subxComment"># var inend/ebx: (addr byte) = in + n</span>
<span id="L127" class="LineNr">127 </span> 8b/-&gt; *(ebp+0x10) 3/r32/ebx
<span id="L128" class="LineNr">128 </span> 8d/copy-address *(edx+ebx) 3/r32/ebx
<span id="L129" class="LineNr">129 </span> <span class="subxComment"># eax = out</span>
<span id="L130" class="LineNr">130 </span> 8b/-&gt; *(ebp+0xc) 0/r32/eax
<span id="L131" class="LineNr">131 </span> <span class="subxComment"># var outend/ecx: (addr byte) = out + n</span>
<span id="L132" class="LineNr">132 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L133" class="LineNr">133 </span> 8d/copy-address *(eax+ecx) 1/r32/ecx
<span id="L134" class="LineNr">134 </span> <span class="subxComment">#</span>
<span id="L135" class="LineNr">135 </span> (<a href='107trace.subx.html#L897'>_append-4</a> %eax %ecx %edx %ebx) <span class="subxComment"># =&gt; eax</span>
<span id="L136" class="LineNr">136 </span> <span class="subxComment"># s-&gt;read += n</span>
<span id="L137" class="LineNr">137 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L138" class="LineNr">138 </span> 01/add-to *(esi+4) 1/r32/ecx
<span id="L139" class="LineNr">139 </span><span class="Constant">$read-from-stream:end</span>:
<span id="L140" class="LineNr">140 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L141" class="LineNr">141 </span> 5e/pop-to-esi
<span id="L142" class="LineNr">142 </span> 5b/pop-to-ebx
<span id="L143" class="LineNr">143 </span> 5a/pop-to-edx
<span id="L144" class="LineNr">144 </span> 59/pop-to-ecx
<span id="L145" class="LineNr">145 </span> 58/pop-to-eax
<span id="L146" class="LineNr">146 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L147" class="LineNr">147 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L148" class="LineNr">148 </span> 5d/pop-to-ebp
<span id="L149" class="LineNr">149 </span> c3/return
<span id="L150" class="LineNr">150 </span>
<span id="L151" class="LineNr">151 </span><span class="Constant">$read-from-stream:abort</span>:
<span id="L152" class="LineNr">152 </span> (<a href='116write-buffered.subx.html#L8'>write-buffered</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> <span class="Constant">&quot;read-from-stream: stream empty\n&quot;</span>)
<span id="L153" class="LineNr">153 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span>)
<span id="L154" class="LineNr">154 </span> bb/copy-to-ebx 1/imm32
<span id="L155" class="LineNr">155 </span> (syscall_exit)
<span id="L156" class="LineNr">156 </span> <span class="subxComment"># never gets here</span>
<span id="L4" class="LineNr"> 4 </span>== code
<span id="L5" class="LineNr"> 5 </span>
<span id="L6" class="LineNr"> 6 </span><span class="subxFunction">stream-empty?</span>: <span class="subxComment"># s: (addr stream _) -&gt; result/eax: boolean</span>
<span id="L7" class="LineNr"> 7 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L8" class="LineNr"> 8 </span> 55/push-ebp
<span id="L9" class="LineNr"> 9 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L10" class="LineNr"> 10 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L11" class="LineNr"> 11 </span> 51/push-ecx
<span id="L12" class="LineNr"> 12 </span> 56/push-esi
<span id="L13" class="LineNr"> 13 </span> <span class="subxComment"># result = false</span>
<span id="L14" class="LineNr"> 14 </span> b8/copy-to-eax 0/imm32/false
<span id="L15" class="LineNr"> 15 </span> <span class="subxComment"># esi = s</span>
<span id="L16" class="LineNr"> 16 </span> 8b/-&gt; *(ebp+8) 6/r32/esi
<span id="L17" class="LineNr"> 17 </span> <span class="subxComment"># return s-&gt;read &gt;= s-&gt;write</span>
<span id="L18" class="LineNr"> 18 </span> 8b/-&gt; *esi 1/r32/ecx
<span id="L19" class="LineNr"> 19 </span> 39/compare-with *(esi+4) 1/r32/ecx
<span id="L20" class="LineNr"> 20 </span> 0f 9d/set-if-&gt;= %al
<span id="L21" class="LineNr"> 21 </span><span class="Constant">$stream-empty?:end</span>:
<span id="L22" class="LineNr"> 22 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L23" class="LineNr"> 23 </span> 5e/pop-to-esi
<span id="L24" class="LineNr"> 24 </span> 59/pop-to-ecx
<span id="L25" class="LineNr"> 25 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L26" class="LineNr"> 26 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L27" class="LineNr"> 27 </span> 5d/pop-to-ebp
<span id="L28" class="LineNr"> 28 </span> c3/return
<span id="L29" class="LineNr"> 29 </span>
<span id="L30" class="LineNr"> 30 </span><span class="subxFunction">stream-full?</span>: <span class="subxComment"># s: (addr stream _) -&gt; result/eax: boolean</span>
<span id="L31" class="LineNr"> 31 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L32" class="LineNr"> 32 </span> 55/push-ebp
<span id="L33" class="LineNr"> 33 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L34" class="LineNr"> 34 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L35" class="LineNr"> 35 </span> 51/push-ecx
<span id="L36" class="LineNr"> 36 </span> 56/push-esi
<span id="L37" class="LineNr"> 37 </span> <span class="subxComment"># result = false</span>
<span id="L38" class="LineNr"> 38 </span> b8/copy-to-eax 0/imm32/false
<span id="L39" class="LineNr"> 39 </span> <span class="subxComment"># esi = s</span>
<span id="L40" class="LineNr"> 40 </span> 8b/-&gt; *(ebp+8) 6/r32/esi
<span id="L41" class="LineNr"> 41 </span> <span class="subxComment"># return s-&gt;write &gt;= s-&gt;size</span>
<span id="L42" class="LineNr"> 42 </span> 8b/-&gt; *(esi+8) 1/r32/ecx
<span id="L43" class="LineNr"> 43 </span> 39/compare-with *esi 1/r32/ecx
<span id="L44" class="LineNr"> 44 </span> 0f 9d/set-if-&gt;= %al
<span id="L45" class="LineNr"> 45 </span><span class="Constant">$stream-full?:end</span>:
<span id="L46" class="LineNr"> 46 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L47" class="LineNr"> 47 </span> 5e/pop-to-esi
<span id="L48" class="LineNr"> 48 </span> 59/pop-to-ecx
<span id="L49" class="LineNr"> 49 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L50" class="LineNr"> 50 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L51" class="LineNr"> 51 </span> 5d/pop-to-ebp
<span id="L52" class="LineNr"> 52 </span> c3/return
<span id="L53" class="LineNr"> 53 </span>
<span id="L54" class="LineNr"> 54 </span><span class="subxFunction">write-to-stream</span>: <span class="subxComment"># s: (addr stream _), in: (addr byte), n: int</span>
<span id="L55" class="LineNr"> 55 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L56" class="LineNr"> 56 </span> 55/push-ebp
<span id="L57" class="LineNr"> 57 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L58" class="LineNr"> 58 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L59" class="LineNr"> 59 </span> 50/push-eax
<span id="L60" class="LineNr"> 60 </span> 51/push-ecx
<span id="L61" class="LineNr"> 61 </span> 52/push-edx
<span id="L62" class="LineNr"> 62 </span> 53/push-ebx
<span id="L63" class="LineNr"> 63 </span> 57/push-edi
<span id="L64" class="LineNr"> 64 </span> <span class="subxComment"># edi = s</span>
<span id="L65" class="LineNr"> 65 </span> 8b/-&gt; *(ebp+8) 7/r32/edi
<span id="L66" class="LineNr"> 66 </span> <span class="subxComment"># var swrite/edx: int = s-&gt;write</span>
<span id="L67" class="LineNr"> 67 </span> 8b/-&gt; *edi 2/r32/edx
<span id="L68" class="LineNr"> 68 </span> <span class="subxComment"># if (swrite + n &gt; s-&gt;size) abort</span>
<span id="L69" class="LineNr"> 69 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L70" class="LineNr"> 70 </span> 01/add-to %ecx 2/r32/edx
<span id="L71" class="LineNr"> 71 </span> 3b/compare 1/r32/ecx *(edi+8)
<span id="L72" class="LineNr"> 72 </span> 0f 8f/jump-if-&gt; $write-to-stream:abort/disp32
<span id="L73" class="LineNr"> 73 </span> <span class="subxComment"># var out/edx: (addr byte) = s-&gt;data + s-&gt;write</span>
<span id="L74" class="LineNr"> 74 </span> 8d/copy-address *(edi+edx+0xc) 2/r32/edx
<span id="L75" class="LineNr"> 75 </span> <span class="subxComment"># var outend/ebx: (addr byte) = out + n</span>
<span id="L76" class="LineNr"> 76 </span> 8b/-&gt; *(ebp+0x10) 3/r32/ebx
<span id="L77" class="LineNr"> 77 </span> 8d/copy-address *(edx+ebx) 3/r32/ebx
<span id="L78" class="LineNr"> 78 </span> <span class="subxComment"># eax = in</span>
<span id="L79" class="LineNr"> 79 </span> 8b/-&gt; *(ebp+0xc) 0/r32/eax
<span id="L80" class="LineNr"> 80 </span> <span class="subxComment"># var inend/ecx: (addr byte) = in + n</span>
<span id="L81" class="LineNr"> 81 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L82" class="LineNr"> 82 </span> 8d/copy-address *(eax+ecx) 1/r32/ecx
<span id="L83" class="LineNr"> 83 </span> <span class="subxComment">#</span>
<span id="L84" class="LineNr"> 84 </span> (<a href='107trace.subx.html#L897'>_append-4</a> %edx %ebx %eax %ecx) <span class="subxComment"># =&gt; eax</span>
<span id="L85" class="LineNr"> 85 </span> <span class="subxComment"># s-&gt;write += n</span>
<span id="L86" class="LineNr"> 86 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L87" class="LineNr"> 87 </span> 01/add-to *edi 1/r32/ecx
<span id="L88" class="LineNr"> 88 </span><span class="Constant">$write-to-stream:end</span>:
<span id="L89" class="LineNr"> 89 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L90" class="LineNr"> 90 </span> 5f/pop-to-edi
<span id="L91" class="LineNr"> 91 </span> 5b/pop-to-ebx
<span id="L92" class="LineNr"> 92 </span> 5a/pop-to-edx
<span id="L93" class="LineNr"> 93 </span> 59/pop-to-ecx
<span id="L94" class="LineNr"> 94 </span> 58/pop-to-eax
<span id="L95" class="LineNr"> 95 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L96" class="LineNr"> 96 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L97" class="LineNr"> 97 </span> 5d/pop-to-ebp
<span id="L98" class="LineNr"> 98 </span> c3/return
<span id="L99" class="LineNr"> 99 </span>
<span id="L100" class="LineNr">100 </span><span class="Constant">$write-to-stream:abort</span>:
<span id="L101" class="LineNr">101 </span> (<a href='116write-buffered.subx.html#L8'>write-buffered</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> <span class="Constant">&quot;write-to-stream: stream full\n&quot;</span>)
<span id="L102" class="LineNr">102 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span>)
<span id="L103" class="LineNr">103 </span> bb/copy-to-ebx 1/imm32
<span id="L104" class="LineNr">104 </span> (syscall_exit)
<span id="L105" class="LineNr">105 </span> <span class="subxComment"># never gets here</span>
<span id="L106" class="LineNr">106 </span>
<span id="L107" class="LineNr">107 </span><span class="subxFunction">read-from-stream</span>: <span class="subxComment"># s: (addr stream _), out: (addr byte), n: int</span>
<span id="L108" class="LineNr">108 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L109" class="LineNr">109 </span> 55/push-ebp
<span id="L110" class="LineNr">110 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L111" class="LineNr">111 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L112" class="LineNr">112 </span> 50/push-eax
<span id="L113" class="LineNr">113 </span> 51/push-ecx
<span id="L114" class="LineNr">114 </span> 52/push-edx
<span id="L115" class="LineNr">115 </span> 53/push-ebx
<span id="L116" class="LineNr">116 </span> 56/push-esi
<span id="L117" class="LineNr">117 </span> <span class="subxComment"># esi = s</span>
<span id="L118" class="LineNr">118 </span> 8b/-&gt; *(ebp+8) 6/r32/esi
<span id="L119" class="LineNr">119 </span> <span class="subxComment"># var sread/edx: int = s-&gt;read</span>
<span id="L120" class="LineNr">120 </span> 8b/-&gt; *(esi+4) 2/r32/edx
<span id="L121" class="LineNr">121 </span> <span class="subxComment"># if (sread + n &gt; s-&gt;write) abort</span>
<span id="L122" class="LineNr">122 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L123" class="LineNr">123 </span> 01/add-to %ecx 2/r32/edx
<span id="L124" class="LineNr">124 </span> 3b/compare 1/r32/ecx *esi
<span id="L125" class="LineNr">125 </span> 0f 8f/jump-if-&gt; $read-from-stream:abort/disp32
<span id="L126" class="LineNr">126 </span> <span class="subxComment"># var in/edx: (addr byte) = s-&gt;data + s-&gt;read</span>
<span id="L127" class="LineNr">127 </span> 8d/copy-address *(esi+edx+0xc) 2/r32/edx
<span id="L128" class="LineNr">128 </span> <span class="subxComment"># var inend/ebx: (addr byte) = in + n</span>
<span id="L129" class="LineNr">129 </span> 8b/-&gt; *(ebp+0x10) 3/r32/ebx
<span id="L130" class="LineNr">130 </span> 8d/copy-address *(edx+ebx) 3/r32/ebx
<span id="L131" class="LineNr">131 </span> <span class="subxComment"># eax = out</span>
<span id="L132" class="LineNr">132 </span> 8b/-&gt; *(ebp+0xc) 0/r32/eax
<span id="L133" class="LineNr">133 </span> <span class="subxComment"># var outend/ecx: (addr byte) = out + n</span>
<span id="L134" class="LineNr">134 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L135" class="LineNr">135 </span> 8d/copy-address *(eax+ecx) 1/r32/ecx
<span id="L136" class="LineNr">136 </span> <span class="subxComment">#</span>
<span id="L137" class="LineNr">137 </span> (<a href='107trace.subx.html#L897'>_append-4</a> %eax %ecx %edx %ebx) <span class="subxComment"># =&gt; eax</span>
<span id="L138" class="LineNr">138 </span> <span class="subxComment"># s-&gt;read += n</span>
<span id="L139" class="LineNr">139 </span> 8b/-&gt; *(ebp+0x10) 1/r32/ecx
<span id="L140" class="LineNr">140 </span> 01/add-to *(esi+4) 1/r32/ecx
<span id="L141" class="LineNr">141 </span><span class="Constant">$read-from-stream:end</span>:
<span id="L142" class="LineNr">142 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L143" class="LineNr">143 </span> 5e/pop-to-esi
<span id="L144" class="LineNr">144 </span> 5b/pop-to-ebx
<span id="L145" class="LineNr">145 </span> 5a/pop-to-edx
<span id="L146" class="LineNr">146 </span> 59/pop-to-ecx
<span id="L147" class="LineNr">147 </span> 58/pop-to-eax
<span id="L148" class="LineNr">148 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L149" class="LineNr">149 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L150" class="LineNr">150 </span> 5d/pop-to-ebp
<span id="L151" class="LineNr">151 </span> c3/return
<span id="L152" class="LineNr">152 </span>
<span id="L153" class="LineNr">153 </span><span class="Constant">$read-from-stream:abort</span>:
<span id="L154" class="LineNr">154 </span> (<a href='116write-buffered.subx.html#L8'>write-buffered</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span> <span class="Constant">&quot;read-from-stream: stream empty\n&quot;</span>)
<span id="L155" class="LineNr">155 </span> (<a href='115write-byte.subx.html#L81'>flush</a> <span class="SpecialChar"><a href='116write-buffered.subx.html#L209'>Stderr</a></span>)
<span id="L156" class="LineNr">156 </span> bb/copy-to-ebx 1/imm32
<span id="L157" class="LineNr">157 </span> (syscall_exit)
<span id="L158" class="LineNr">158 </span> <span class="subxComment"># never gets here</span>
</pre>
</body>
</html>

117
html/310copy-bytes.subx.html generated Normal file
View File

@ -0,0 +1,117 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Mu - 310copy-bytes.subx</title>
<meta name="Generator" content="Vim/8.1">
<meta name="plugin-version" content="vim8.1_v1">
<meta name="syntax" content="none">
<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
<meta name="colorscheme" content="minimal-light">
<style type="text/css">
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #c6c6c6; }
body { font-size:12pt; font-family: monospace; color: #000000; background-color: #c6c6c6; }
a { color:inherit; }
* { font-size:12pt; font-size: 1em; }
.subxComment { color: #005faf; }
.subxFunction { color: #af5f00; text-decoration: underline; }
.LineNr { }
.subxS1Comment { color: #0000af; }
.Constant { color: #008787; }
-->
</style>
<script type='text/javascript'>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
function JumpToLine()
{
var lineNum;
lineNum = window.location.hash;
lineNum = lineNum.substr(1); /* strip off '#' */
if (lineNum.indexOf('L') == -1) {
lineNum = 'L'+lineNum;
}
var lineElem = document.getElementById(lineNum);
/* Always jump to new location even if the line was hidden inside a fold, or
* we corrected the raw number to a line ID.
*/
if (lineElem) {
lineElem.scrollIntoView(true);
}
return true;
}
if ('onhashchange' in window) {
window.onhashchange = JumpToLine;
}
-->
</script>
</head>
<body onload='JumpToLine();'>
<a href='https://github.com/akkartik/mu/blob/master/310copy-bytes.subx'>https://github.com/akkartik/mu/blob/master/310copy-bytes.subx</a>
<pre id='vimCodeElement'>
<span id="L1" class="LineNr"> 1 </span><span class="subxComment"># Fill a region of memory with zeroes.</span>
<span id="L2" class="LineNr"> 2 </span>
<span id="L3" class="LineNr"> 3 </span>== code
<span id="L4" class="LineNr"> 4 </span>
<span id="L5" class="LineNr"> 5 </span><span class="subxFunction">copy-bytes</span>: <span class="subxComment"># src: (addr byte), dest: (addr byte), size: int</span>
<span id="L6" class="LineNr"> 6 </span> <span class="subxComment"># pseudocode:</span>
<span id="L7" class="LineNr"> 7 </span> <span class="subxComment"># curr-src/esi = src</span>
<span id="L8" class="LineNr"> 8 </span> <span class="subxComment"># curr-dest/edi = dest</span>
<span id="L9" class="LineNr"> 9 </span> <span class="subxComment"># i/ecx = 0</span>
<span id="L10" class="LineNr">10 </span> <span class="subxComment"># while true</span>
<span id="L11" class="LineNr">11 </span> <span class="subxComment"># if (i &gt;= size) break</span>
<span id="L12" class="LineNr">12 </span> <span class="subxComment"># *curr-dest = *curr-src</span>
<span id="L13" class="LineNr">13 </span> <span class="subxComment"># ++curr-src</span>
<span id="L14" class="LineNr">14 </span> <span class="subxComment"># ++curr-dest</span>
<span id="L15" class="LineNr">15 </span> <span class="subxComment"># ++i</span>
<span id="L16" class="LineNr">16 </span> <span class="subxComment">#</span>
<span id="L17" class="LineNr">17 </span> <span class="subxS1Comment"># . prologue</span>
<span id="L18" class="LineNr">18 </span> 55/push-ebp
<span id="L19" class="LineNr">19 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L20" class="LineNr">20 </span> <span class="subxS1Comment"># . save registers</span>
<span id="L21" class="LineNr">21 </span> 50/push-eax
<span id="L22" class="LineNr">22 </span> 51/push-ecx
<span id="L23" class="LineNr">23 </span> 52/push-edx
<span id="L24" class="LineNr">24 </span> 56/push-esi
<span id="L25" class="LineNr">25 </span> 57/push-edi
<span id="L26" class="LineNr">26 </span> <span class="subxComment"># curr-src/esi = src</span>
<span id="L27" class="LineNr">27 </span> 8b/-&gt; *(ebp+8) 6/r32/esi
<span id="L28" class="LineNr">28 </span> <span class="subxComment"># curr-dest/edi = dest</span>
<span id="L29" class="LineNr">29 </span> 8b/-&gt; *(ebp+0xc) 7/r32/edi
<span id="L30" class="LineNr">30 </span> <span class="subxComment"># var i/ecx: int = 0</span>
<span id="L31" class="LineNr">31 </span> b9/copy-to-ecx 0/imm32
<span id="L32" class="LineNr">32 </span> <span class="subxComment"># edx = size</span>
<span id="L33" class="LineNr">33 </span> 8b/-&gt; *(ebp+0x10) 2/r32/edx
<span id="L34" class="LineNr">34 </span> {
<span id="L35" class="LineNr">35 </span> <span class="subxComment"># if (i &gt;= size) break</span>
<span id="L36" class="LineNr">36 </span> 39/compare %ecx 2/r32/edx
<span id="L37" class="LineNr">37 </span> 7d/jump-if-&gt;= <span class="Constant">break</span>/disp8
<span id="L38" class="LineNr">38 </span> <span class="subxComment"># *curr-dest = *curr-src</span>
<span id="L39" class="LineNr">39 </span> 8a/byte-&gt; *esi 0/r32/AL
<span id="L40" class="LineNr">40 </span> 88/byte&lt;- *edi 0/r32/AL
<span id="L41" class="LineNr">41 </span> <span class="subxComment"># update</span>
<span id="L42" class="LineNr">42 </span> 46/increment-esi
<span id="L43" class="LineNr">43 </span> 47/increment-edi
<span id="L44" class="LineNr">44 </span> 41/increment-ecx
<span id="L45" class="LineNr">45 </span> eb/jump <span class="Constant">loop</span>/disp8
<span id="L46" class="LineNr">46 </span> }
<span id="L47" class="LineNr">47 </span><span class="Constant">$copy-bytes:end</span>:
<span id="L48" class="LineNr">48 </span> <span class="subxS1Comment"># . restore registers</span>
<span id="L49" class="LineNr">49 </span> 5f/pop-to-edi
<span id="L50" class="LineNr">50 </span> 5e/pop-to-esi
<span id="L51" class="LineNr">51 </span> 5a/pop-to-edx
<span id="L52" class="LineNr">52 </span> 59/pop-to-ecx
<span id="L53" class="LineNr">53 </span> 58/pop-to-eax
<span id="L54" class="LineNr">54 </span> <span class="subxS1Comment"># . epilogue</span>
<span id="L55" class="LineNr">55 </span> 89/&lt;- %esp 5/r32/ebp
<span id="L56" class="LineNr">56 </span> 5d/pop-to-ebp
<span id="L57" class="LineNr">57 </span> c3/return
</pre>
</body>
</html>
<!-- vim: set foldmethod=manual : -->

227
html/400.mu.html generated
View File

@ -80,7 +80,7 @@ if ('onhashchange' in window) {
<span id="L25" class="LineNr"> 25 </span><span class="Comment"># grep -h '^[a-z]' [0-9]*.subx |grep -v '^test-'</span>
<span id="L26" class="LineNr"> 26 </span><span class="Comment"># Functions we don't want to make accessible from Mu are commented out.</span>
<span id="L27" class="LineNr"> 27 </span><span class="Comment"># Many functions here may not be usable yet because of missing features</span>
<span id="L28" class="LineNr"> 28 </span><span class="Comment"># (global variable support, type definitions for stuff like `stream`)</span>
<span id="L28" class="LineNr"> 28 </span><span class="Comment"># (global variable support, etc.)</span>
<span id="L29" class="LineNr"> 29 </span><span class="PreProc">sig</span> <a href='102test.subx.html#L23'>check-ints-equal</a> a: int, b: int, msg: (addr array byte)
<span id="L30" class="LineNr"> 30 </span><span class="PreProc">sig</span> <a href='103kernel-string-equal.subx.html#L31'>kernel-string-equal?</a> s: (addr kernel-string), benchmark: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L31" class="LineNr"> 31 </span><span class="PreProc">sig</span> <a href='104new-segment.subx.html#L40'>new-segment</a> len: int, ad: (addr allocation-descriptor)
@ -97,7 +97,7 @@ if ('onhashchange' in window) {
<span id="L42" class="LineNr"> 42 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L561'>next-line-matches?</a> t: (addr stream byte), line: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L43" class="LineNr"> 43 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L737'>skip-next-line</a> t: (addr stream byte)
<span id="L44" class="LineNr"> 44 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L845'>clear-trace-stream</a>
<span id="L45" class="LineNr"> 45 </span><span class="Comment">#sig write f: fd or (addr stream byte), s: (addr array byte)</span>
<span id="L45" class="LineNr"> 45 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L24'>write</a> f: (addr stream byte), s: (addr array byte) <span class="Comment"># writing to file descriptor not supported; use buffered-file</span>
<span id="L46" class="LineNr"> 46 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L9'>stream-data-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L47" class="LineNr"> 47 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L194'>check-stream-equal</a> f: (addr stream byte), s: (addr array byte), msg: (addr array byte)
<span id="L48" class="LineNr"> 48 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L230'>next-stream-line-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
@ -106,116 +106,119 @@ if ('onhashchange' in window) {
<span id="L51" class="LineNr"> 51 </span><span class="PreProc">sig</span> <a href='110stop.subx.html#L92'>stop</a> ed: (addr exit-descriptor), value: int
<span id="L52" class="LineNr"> 52 </span><span class="Comment">#sig read f: fd or (addr stream byte), s: (addr stream byte) -&gt; num-bytes-read/eax: int</span>
<span id="L53" class="LineNr"> 53 </span><span class="PreProc">sig</span> <a href='112read-byte.subx.html#L38'>read-byte-buffered</a> f: (addr buffered-file)<span class="PreProc"> -&gt; </span>byte-or-Eof/<span class="Constant">eax</span>: byte
<span id="L54" class="LineNr"> 54 </span><span class="Comment">#sig write-stream f: fd or (addr stream byte), s: (addr stream byte)</span>
<span id="L55" class="LineNr"> 55 </span><span class="Comment">#sig error ed: (addr exit-descriptor), out: fd or (addr stream byte), msg: (addr array byte)</span>
<span id="L56" class="LineNr"> 56 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L33'>write-byte-buffered</a> f: (addr buffered-file), n: int
<span id="L57" class="LineNr"> 57 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L81'>flush</a> f: (addr buffered-file)
<span id="L58" class="LineNr"> 58 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L208'>append-byte</a> f: (addr stream byte), n: int
<span id="L59" class="LineNr"> 59 </span><span class="PreProc">sig</span> <a href='116write-buffered.subx.html#L8'>write-buffered</a> f: (addr buffered-file), msg: (addr array byte)
<span id="L60" class="LineNr"> 60 </span><span class="Comment">#sig to-hex-char in/eax: int -&gt; out/eax: int</span>
<span id="L61" class="LineNr"> 61 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L21'>append-byte-hex</a> f: (addr stream byte), n: int
<span id="L62" class="LineNr"> 62 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L93'>write-byte-hex-buffered</a> f: (addr buffered-file), n: int
<span id="L63" class="LineNr"> 63 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L178'>write-int32-hex</a> f: (addr stream byte), n: int
<span id="L64" class="LineNr"> 64 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L266'>write-int32-hex-buffered</a> f: (addr buffered-file), n: int
<span id="L65" class="LineNr"> 65 </span><span class="PreProc">sig</span> <a href='118parse-hex.subx.html#L9'>is-hex-int?</a> in: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L66" class="LineNr"> 66 </span><span class="PreProc">sig</span> <a href='118parse-hex.subx.html#L354'>parse-hex-int</a> in: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L67" class="LineNr"> 67 </span><span class="PreProc">sig</span> <a href='118parse-hex.subx.html#L387'>parse-hex-int-from-slice</a> in: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L68" class="LineNr"> 68 </span><span class="Comment">#sig parse-hex-int-helper start: (addr byte), end: (addr byte) -&gt; result/eax: int</span>
<span id="L69" class="LineNr"> 69 </span><span class="PreProc">sig</span> <a href='118parse-hex.subx.html#L701'>is-hex-digit?</a> c: byte<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L70" class="LineNr"> 70 </span><span class="Comment">#sig from-hex-char in/eax: byte -&gt; out/eax: nibble</span>
<span id="L71" class="LineNr"> 71 </span><span class="PreProc">sig</span> <a href='119error-byte.subx.html#L26'>error-byte</a> ed: (addr exit-descriptor), out: (addr buffered-file), msg: (addr array byte), n: byte
<span id="L72" class="LineNr"> 72 </span><span class="Comment">#sig allocate ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span>
<span id="L73" class="LineNr"> 73 </span><span class="Comment">#sig allocate-raw ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span>
<span id="L74" class="LineNr"> 74 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L256'>lookup</a> h: (handle _T)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: (addr _T)
<span id="L75" class="LineNr"> 75 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L458'>handle-equal?</a> a: (handle _T), b: (handle _T)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L76" class="LineNr"> 76 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L489'>copy-handle</a> src: (handle _T), dest: (addr handle _T)
<span id="L77" class="LineNr"> 77 </span><span class="Comment">#sig allocate-region ad: (addr allocation-descriptor), n: int, out: (addr handle allocation-descriptor)</span>
<span id="L78" class="LineNr"> 78 </span><span class="Comment">#sig allocate-array ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span>
<span id="L79" class="LineNr"> 79 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L710'>copy-array</a> ad: (addr allocation-descriptor), src: (addr array _T), out: (addr handle array _T)
<span id="L80" class="LineNr"> 80 </span><span class="Comment">#sig zero-out start: (addr byte), size: int</span>
<span id="L81" class="LineNr"> 81 </span><span class="Comment">#sig new-stream ad: (addr allocation-descriptor), length: int, elemsize: int, out: (addr handle stream _)</span>
<span id="L82" class="LineNr"> 82 </span><span class="PreProc">sig</span> <a href='122read-line.subx.html#L9'>read-line-buffered</a> f: (addr buffered-file), s: (addr stream byte)
<span id="L83" class="LineNr"> 83 </span><span class="PreProc">sig</span> <a href='122read-line.subx.html#L218'>read-line</a> f: (addr stream byte), s: (addr stream byte)
<span id="L84" class="LineNr"> 84 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L9'>slice-empty?</a> s: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L85" class="LineNr"> 85 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L120'>slice-equal?</a> s: (addr slice), p: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L86" class="LineNr"> 86 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L487'>slice-starts-with?</a> s: (addr slice), head: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L87" class="LineNr"> 87 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L793'>write-slice</a> out: (addr stream byte), s: (addr slice)
<span id="L88" class="LineNr"> 88 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L908'>write-slice-buffered</a> out: (addr buffered-file), s: (addr slice)
<span id="L89" class="LineNr"> 89 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L1043'>slice-to-string</a> ad: (addr allocation-descriptor), in: (addr slice), out: (addr handle array byte)
<span id="L90" class="LineNr"> 90 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L10'>next-token</a> in: (addr stream byte), delimiter: byte, out: (addr slice)
<span id="L91" class="LineNr"> 91 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L163'>next-token-from-slice</a> start: (addr byte), end: (addr byte), delimiter: byte, out: (addr slice)
<span id="L92" class="LineNr"> 92 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L341'>skip-chars-matching</a> in: (addr stream byte), delimiter: byte
<span id="L93" class="LineNr"> 93 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> in: (addr stream byte)
<span id="L94" class="LineNr"> 94 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L554'>skip-chars-not-matching</a> in: (addr stream byte), delimiter: byte
<span id="L95" class="LineNr"> 95 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L716'>skip-chars-not-matching-whitespace</a> in: (addr stream byte)
<span id="L96" class="LineNr"> 96 </span><span class="Comment">#sig skip-chars-matching-in-slice curr: (addr byte), end: (addr byte), delimiter: byte -&gt; curr/eax: (addr byte)</span>
<span id="L97" class="LineNr"> 97 </span><span class="Comment">#sig skip-chars-matching-whitespace-in-slice curr: (addr byte), end: (addr byte) -&gt; curr/eax: (addr byte)</span>
<span id="L98" class="LineNr"> 98 </span><span class="Comment">#sig skip-chars-not-matching-in-slice curr: (addr byte), end: (addr byte), delimiter: byte -&gt; curr/eax: (addr byte)</span>
<span id="L99" class="LineNr"> 99 </span><span class="Comment">#sig skip-chars-not-matching-whitespace-in-slice curr: (addr byte), end: (addr byte) -&gt; curr/eax: (addr byte)</span>
<span id="L100" class="LineNr">100 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L1171'>skip-string</a> line: (addr stream byte)
<span id="L101" class="LineNr">101 </span><span class="Comment">#sig skip-string-in-slice curr: (addr byte), end: (addr byte) -&gt; curr/eax: (addr byte)</span>
<span id="L102" class="LineNr">102 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L1599'>skip-until-close-paren</a> line: (addr stream byte)
<span id="L103" class="LineNr">103 </span><span class="Comment">#sig skip-until-close-paren-in-slice curr: (addr byte), end: (addr byte) -&gt; curr/eax: (addr byte)</span>
<span id="L104" class="LineNr">104 </span><span class="PreProc">sig</span> <a href='125write-stream-data.subx.html#L11'>write-stream-data</a> f: (addr buffered-file), s: (addr stream byte)
<span id="L105" class="LineNr">105 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> out: (addr stream byte), n: int32
<span id="L106" class="LineNr">106 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L306'>is-decimal-digit?</a> c: byte<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L107" class="LineNr">107 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> in: byte<span class="PreProc"> -&gt; </span>out/<span class="Constant">eax</span>: int
<span id="L108" class="LineNr">108 </span><span class="PreProc">sig</span> <a href='127next-word.subx.html#L10'>next-word</a> line: (addr stream byte), out: (addr slice)
<span id="L109" class="LineNr">109 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L8'>has-metadata?</a> word: (addr slice), s: (addr string)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L110" class="LineNr">110 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L278'>is-valid-name?</a> in: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L111" class="LineNr">111 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L535'>is-label?</a> word: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L112" class="LineNr">112 </span><span class="PreProc">sig</span> <a href='129emit-hex.subx.html#L7'>emit-hex</a> out: (addr buffered-file), n: int, width: int
<span id="L113" class="LineNr">113 </span><span class="PreProc">sig</span> <a href='130emit.subx.html#L10'>emit</a> out: (addr buffered-file), word: (addr slice), width: int
<span id="L114" class="LineNr">114 </span><span class="Comment">#sig get table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int, abort-message-prefix: (addr array byte) -&gt; result/eax: (addr T)</span>
<span id="L115" class="LineNr">115 </span><span class="Comment">#sig get-slice table: (addr stream {(handle array byte), T}), key: (addr slice), row-size: int, abort-message-prefix: (addr array byte) -&gt; result/eax: (addr T)</span>
<span id="L116" class="LineNr">116 </span><span class="Comment">#sig get-or-insert table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int, ad: (addr allocation-descriptor) -&gt; result/eax: (addr T)</span>
<span id="L117" class="LineNr">117 </span><span class="Comment">#sig get-or-insert-handle table: (addr stream {(handle array byte), T}), key: (handle array byte), row-size: int -&gt; result/eax: (addr T)</span>
<span id="L118" class="LineNr">118 </span><span class="Comment">#sig get-or-insert-slice table: (addr stream {(handle array byte), T}), key: (addr slice), row-size: int, ad: (addr allocation-descriptor) -&gt; result/eax: (addr T)</span>
<span id="L119" class="LineNr">119 </span><span class="Comment">#sig get-or-stop table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int</span>
<span id="L120" class="LineNr">120 </span><span class="Comment">#sig get-slice-or-stop table: (addr stream {(handle array byte), _}), key: (addr slice), row-size: int</span>
<span id="L121" class="LineNr">121 </span><span class="Comment">#sig maybe-get table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int -&gt; result/eax: (addr T)</span>
<span id="L122" class="LineNr">122 </span><span class="Comment">#sig maybe-get-slice table: (addr stream {(handle array byte), T}), key: (addr slice), row-size: int -&gt; result/eax: (addr T)</span>
<span id="L123" class="LineNr">123 </span><span class="PreProc">sig</span> <a href='132slurp.subx.html#L8'>slurp</a> f: (addr buffered-file), s: (addr stream byte)
<span id="L124" class="LineNr">124 </span><span class="PreProc">sig</span> <a href='133subx-widths.subx.html#L11'>compute-width</a> word: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L125" class="LineNr">125 </span><span class="PreProc">sig</span> <a href='133subx-widths.subx.html#L45'>compute-width-of-slice</a> s: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L126" class="LineNr">126 </span><span class="PreProc">sig</span> <a href='134emit-hex-array.subx.html#L7'>emit-hex-array</a> out: (addr buffered-file), arr: (addr array byte)
<span id="L127" class="LineNr">127 </span><span class="PreProc">sig</span> <a href='135next-word-or-string.subx.html#L8'>next-word-or-string</a> line: (addr stream byte), out: (addr slice)
<span id="L128" class="LineNr">128 </span><span class="PreProc">sig</span> <a href='202write-int.subx.html#L8'>write-int</a> out: (addr stream byte), n: int
<span id="L129" class="LineNr">129 </span><span class="PreProc">sig</span> <a href='203stack.subx.html#L13'>clear-stack</a> s: (addr stack)
<span id="L130" class="LineNr">130 </span><span class="PreProc">sig</span> <a href='203stack.subx.html#L114'>push</a> s: (addr stack), n: int
<span id="L131" class="LineNr">131 </span><span class="PreProc">sig</span> <a href='203stack.subx.html#L234'>pop</a> s: (addr stack)<span class="PreProc"> -&gt; </span>n/<span class="Constant">eax</span>: int
<span id="L132" class="LineNr">132 </span><span class="PreProc">sig</span> <a href='203stack.subx.html#L338'>top</a> s: (addr stack)<span class="PreProc"> -&gt; </span>n/<span class="Constant">eax</span>: int
<span id="L133" class="LineNr">133 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L5'>array-equal?</a> a: (addr array int), b: (addr array int)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L134" class="LineNr">134 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L174'>parse-array-of-ints</a> ad: (addr allocation-descriptor), s: (addr string), out: (addr handle array int)
<span id="L135" class="LineNr">135 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L370'>check-array-equal</a> a: (addr array int), expected: (addr string), msg: (addr string)
<span id="L136" class="LineNr">136 </span><span class="Comment">#sig push-n-zero-bytes n: int</span>
<span id="L137" class="LineNr">137 </span><span class="PreProc">sig</span> <a href='303kernel-string.subx.html#L7'>kernel-string-to-string</a> ad: (addr allocation-descriptor), in: (addr kernel-string), out: (addr handle array byte)
<span id="L138" class="LineNr">138 </span><span class="PreProc">sig</span> <a href='303kernel-string.subx.html#L57'>kernel-string-length</a> in: (addr kernel-string)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L139" class="LineNr">139 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L6'>enable-screen-grid-mode</a>
<span id="L140" class="LineNr">140 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L24'>enable-screen-type-mode</a>
<span id="L141" class="LineNr">141 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L37'>real-screen-size</a><span class="PreProc"> -&gt; </span>nrows/<span class="Constant">eax</span>: int, ncols/<span class="Constant">ecx</span>: int
<span id="L142" class="LineNr">142 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L75'>clear-real-screen</a>
<span id="L143" class="LineNr">143 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L91'>move-cursor-on-real-screen</a> row: int, column: int
<span id="L144" class="LineNr">144 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> s: (addr array byte)
<span id="L145" class="LineNr">145 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L134'>print-stream-to-real-screen</a> s: (addr stream byte)
<span id="L146" class="LineNr">146 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L148'>print-grapheme-to-real-screen</a> c: grapheme
<span id="L147" class="LineNr">147 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L213'>print-int32-hex-to-real-screen</a> n: int
<span id="L148" class="LineNr">148 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L226'>reset-formatting-on-real-screen</a>
<span id="L149" class="LineNr">149 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L241'>start-color-on-real-screen</a> fg: int, bg: int
<span id="L150" class="LineNr">150 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L276'>start-bold-on-real-screen</a>
<span id="L151" class="LineNr">151 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L289'>start-underline-on-real-screen</a>
<span id="L152" class="LineNr">152 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L302'>start-reverse-video-on-real-screen</a>
<span id="L153" class="LineNr">153 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L316'>start-blinking-on-real-screen</a>
<span id="L154" class="LineNr">154 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L329'>hide-cursor-on-real-screen</a>
<span id="L155" class="LineNr">155 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L342'>show-cursor-on-real-screen</a>
<span id="L156" class="LineNr">156 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L6'>enable-keyboard-immediate-mode</a>
<span id="L157" class="LineNr">157 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L72'>enable-keyboard-type-mode</a>
<span id="L158" class="LineNr">158 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L122'>read-key</a><span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: byte
<span id="L159" class="LineNr">159 </span><span class="PreProc">sig</span> <a href='306files.subx.html#L3'>open</a> filename: (addr array byte), write?: boolean, out: (addr handle buffered-file)
<span id="L160" class="LineNr">160 </span><span class="Comment">#sig size in: (addr array _) -&gt; result/eax: int</span>
<span id="L161" class="LineNr">161 </span>
<span id="L162" class="LineNr">162 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L4'>stream-empty?</a> s: (addr stream _)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L163" class="LineNr">163 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L28'>stream-full?</a> s: (addr stream _)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L54" class="LineNr"> 54 </span><span class="PreProc">sig</span> <a href='112read-byte.subx.html#L273'>read-byte</a> s: (addr stream byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: byte
<span id="L55" class="LineNr"> 55 </span><span class="Comment">#sig write-stream f: fd or (addr stream byte), s: (addr stream byte)</span>
<span id="L56" class="LineNr"> 56 </span><span class="Comment">#sig error ed: (addr exit-descriptor), out: fd or (addr stream byte), msg: (addr array byte)</span>
<span id="L57" class="LineNr"> 57 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L33'>write-byte-buffered</a> f: (addr buffered-file), n: int
<span id="L58" class="LineNr"> 58 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L81'>flush</a> f: (addr buffered-file)
<span id="L59" class="LineNr"> 59 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L208'>append-byte</a> f: (addr stream byte), n: int
<span id="L60" class="LineNr"> 60 </span><span class="PreProc">sig</span> <a href='116write-buffered.subx.html#L8'>write-buffered</a> f: (addr buffered-file), msg: (addr array byte)
<span id="L61" class="LineNr"> 61 </span><span class="Comment">#sig to-hex-char in/eax: int -&gt; out/eax: int</span>
<span id="L62" class="LineNr"> 62 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L21'>append-byte-hex</a> f: (addr stream byte), n: int
<span id="L63" class="LineNr"> 63 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L93'>write-byte-hex-buffered</a> f: (addr buffered-file), n: int
<span id="L64" class="LineNr"> 64 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L178'>write-int32-hex</a> f: (addr stream byte), n: int
<span id="L65" class="LineNr"> 65 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L266'>write-int32-hex-buffered</a> f: (addr buffered-file), n: int
<span id="L66" class="LineNr"> 66 </span><span class="PreProc">sig</span> <a href='118parse-hex.subx.html#L9'>is-hex-int?</a> in: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L67" class="LineNr"> 67 </span><span class="PreProc">sig</span> <a href='118parse-hex.subx.html#L354'>parse-hex-int</a> in: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L68" class="LineNr"> 68 </span><span class="PreProc">sig</span> <a href='118parse-hex.subx.html#L387'>parse-hex-int-from-slice</a> in: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L69" class="LineNr"> 69 </span><span class="Comment">#sig parse-hex-int-helper start: (addr byte), end: (addr byte) -&gt; result/eax: int</span>
<span id="L70" class="LineNr"> 70 </span><span class="PreProc">sig</span> <a href='118parse-hex.subx.html#L701'>is-hex-digit?</a> c: byte<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L71" class="LineNr"> 71 </span><span class="Comment">#sig from-hex-char in/eax: byte -&gt; out/eax: nibble</span>
<span id="L72" class="LineNr"> 72 </span><span class="PreProc">sig</span> <a href='119error-byte.subx.html#L26'>error-byte</a> ed: (addr exit-descriptor), out: (addr buffered-file), msg: (addr array byte), n: byte
<span id="L73" class="LineNr"> 73 </span><span class="Comment">#sig allocate ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span>
<span id="L74" class="LineNr"> 74 </span><span class="Comment">#sig allocate-raw ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span>
<span id="L75" class="LineNr"> 75 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L256'>lookup</a> h: (handle _T)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: (addr _T)
<span id="L76" class="LineNr"> 76 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L458'>handle-equal?</a> a: (handle _T), b: (handle _T)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L77" class="LineNr"> 77 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L489'>copy-handle</a> src: (handle _T), dest: (addr handle _T)
<span id="L78" class="LineNr"> 78 </span><span class="Comment">#sig allocate-region ad: (addr allocation-descriptor), n: int, out: (addr handle allocation-descriptor)</span>
<span id="L79" class="LineNr"> 79 </span><span class="Comment">#sig allocate-array ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span>
<span id="L80" class="LineNr"> 80 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L710'>copy-array</a> ad: (addr allocation-descriptor), src: (addr array _T), out: (addr handle array _T)
<span id="L81" class="LineNr"> 81 </span><span class="Comment">#sig zero-out start: (addr byte), size: int</span>
<span id="L82" class="LineNr"> 82 </span><span class="Comment">#sig new-stream ad: (addr allocation-descriptor), length: int, elemsize: int, out: (addr handle stream _)</span>
<span id="L83" class="LineNr"> 83 </span><span class="PreProc">sig</span> <a href='122read-line.subx.html#L9'>read-line-buffered</a> f: (addr buffered-file), s: (addr stream byte)
<span id="L84" class="LineNr"> 84 </span><span class="PreProc">sig</span> <a href='122read-line.subx.html#L218'>read-line</a> f: (addr stream byte), s: (addr stream byte)
<span id="L85" class="LineNr"> 85 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L9'>slice-empty?</a> s: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L86" class="LineNr"> 86 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L120'>slice-equal?</a> s: (addr slice), p: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L87" class="LineNr"> 87 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L487'>slice-starts-with?</a> s: (addr slice), head: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L88" class="LineNr"> 88 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L793'>write-slice</a> out: (addr stream byte), s: (addr slice)
<span id="L89" class="LineNr"> 89 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L908'>write-slice-buffered</a> out: (addr buffered-file), s: (addr slice)
<span id="L90" class="LineNr"> 90 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L1043'>slice-to-string</a> ad: (addr allocation-descriptor), in: (addr slice), out: (addr handle array byte)
<span id="L91" class="LineNr"> 91 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L10'>next-token</a> in: (addr stream byte), delimiter: byte, out: (addr slice)
<span id="L92" class="LineNr"> 92 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L163'>next-token-from-slice</a> start: (addr byte), end: (addr byte), delimiter: byte, out: (addr slice)
<span id="L93" class="LineNr"> 93 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L341'>skip-chars-matching</a> in: (addr stream byte), delimiter: byte
<span id="L94" class="LineNr"> 94 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> in: (addr stream byte)
<span id="L95" class="LineNr"> 95 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L554'>skip-chars-not-matching</a> in: (addr stream byte), delimiter: byte
<span id="L96" class="LineNr"> 96 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L716'>skip-chars-not-matching-whitespace</a> in: (addr stream byte)
<span id="L97" class="LineNr"> 97 </span><span class="Comment">#sig skip-chars-matching-in-slice curr: (addr byte), end: (addr byte), delimiter: byte -&gt; curr/eax: (addr byte)</span>
<span id="L98" class="LineNr"> 98 </span><span class="Comment">#sig skip-chars-matching-whitespace-in-slice curr: (addr byte), end: (addr byte) -&gt; curr/eax: (addr byte)</span>
<span id="L99" class="LineNr"> 99 </span><span class="Comment">#sig skip-chars-not-matching-in-slice curr: (addr byte), end: (addr byte), delimiter: byte -&gt; curr/eax: (addr byte)</span>
<span id="L100" class="LineNr">100 </span><span class="Comment">#sig skip-chars-not-matching-whitespace-in-slice curr: (addr byte), end: (addr byte) -&gt; curr/eax: (addr byte)</span>
<span id="L101" class="LineNr">101 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L1171'>skip-string</a> line: (addr stream byte)
<span id="L102" class="LineNr">102 </span><span class="Comment">#sig skip-string-in-slice curr: (addr byte), end: (addr byte) -&gt; curr/eax: (addr byte)</span>
<span id="L103" class="LineNr">103 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L1599'>skip-until-close-paren</a> line: (addr stream byte)
<span id="L104" class="LineNr">104 </span><span class="Comment">#sig skip-until-close-paren-in-slice curr: (addr byte), end: (addr byte) -&gt; curr/eax: (addr byte)</span>
<span id="L105" class="LineNr">105 </span><span class="PreProc">sig</span> <a href='125write-stream-data.subx.html#L11'>write-stream-data</a> f: (addr buffered-file), s: (addr stream byte)
<span id="L106" class="LineNr">106 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> out: (addr stream byte), n: int32
<span id="L107" class="LineNr">107 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L306'>is-decimal-digit?</a> c: byte<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L108" class="LineNr">108 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> in: byte<span class="PreProc"> -&gt; </span>out/<span class="Constant">eax</span>: int
<span id="L109" class="LineNr">109 </span><span class="PreProc">sig</span> <a href='127next-word.subx.html#L10'>next-word</a> line: (addr stream byte), out: (addr slice)
<span id="L110" class="LineNr">110 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L8'>has-metadata?</a> word: (addr slice), s: (addr string)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L111" class="LineNr">111 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L278'>is-valid-name?</a> in: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L112" class="LineNr">112 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L535'>is-label?</a> word: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L113" class="LineNr">113 </span><span class="PreProc">sig</span> <a href='129emit-hex.subx.html#L7'>emit-hex</a> out: (addr buffered-file), n: int, width: int
<span id="L114" class="LineNr">114 </span><span class="PreProc">sig</span> <a href='130emit.subx.html#L10'>emit</a> out: (addr buffered-file), word: (addr slice), width: int
<span id="L115" class="LineNr">115 </span><span class="Comment">#sig get table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int, abort-message-prefix: (addr array byte) -&gt; result/eax: (addr T)</span>
<span id="L116" class="LineNr">116 </span><span class="Comment">#sig get-slice table: (addr stream {(handle array byte), T}), key: (addr slice), row-size: int, abort-message-prefix: (addr array byte) -&gt; result/eax: (addr T)</span>
<span id="L117" class="LineNr">117 </span><span class="Comment">#sig get-or-insert table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int, ad: (addr allocation-descriptor) -&gt; result/eax: (addr T)</span>
<span id="L118" class="LineNr">118 </span><span class="Comment">#sig get-or-insert-handle table: (addr stream {(handle array byte), T}), key: (handle array byte), row-size: int -&gt; result/eax: (addr T)</span>
<span id="L119" class="LineNr">119 </span><span class="Comment">#sig get-or-insert-slice table: (addr stream {(handle array byte), T}), key: (addr slice), row-size: int, ad: (addr allocation-descriptor) -&gt; result/eax: (addr T)</span>
<span id="L120" class="LineNr">120 </span><span class="Comment">#sig get-or-stop table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int</span>
<span id="L121" class="LineNr">121 </span><span class="Comment">#sig get-slice-or-stop table: (addr stream {(handle array byte), _}), key: (addr slice), row-size: int</span>
<span id="L122" class="LineNr">122 </span><span class="Comment">#sig maybe-get table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int -&gt; result/eax: (addr T)</span>
<span id="L123" class="LineNr">123 </span><span class="Comment">#sig maybe-get-slice table: (addr stream {(handle array byte), T}), key: (addr slice), row-size: int -&gt; result/eax: (addr T)</span>
<span id="L124" class="LineNr">124 </span><span class="PreProc">sig</span> <a href='132slurp.subx.html#L8'>slurp</a> f: (addr buffered-file), s: (addr stream byte)
<span id="L125" class="LineNr">125 </span><span class="PreProc">sig</span> <a href='133subx-widths.subx.html#L11'>compute-width</a> word: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L126" class="LineNr">126 </span><span class="PreProc">sig</span> <a href='133subx-widths.subx.html#L45'>compute-width-of-slice</a> s: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L127" class="LineNr">127 </span><span class="PreProc">sig</span> <a href='134emit-hex-array.subx.html#L7'>emit-hex-array</a> out: (addr buffered-file), arr: (addr array byte)
<span id="L128" class="LineNr">128 </span><span class="PreProc">sig</span> <a href='135next-word-or-string.subx.html#L8'>next-word-or-string</a> line: (addr stream byte), out: (addr slice)
<span id="L129" class="LineNr">129 </span><span class="PreProc">sig</span> <a href='202write-int.subx.html#L8'>write-int</a> out: (addr stream byte), n: int
<span id="L130" class="LineNr">130 </span><span class="PreProc">sig</span> <a href='203stack.subx.html#L13'>clear-stack</a> s: (addr stack)
<span id="L131" class="LineNr">131 </span><span class="PreProc">sig</span> <a href='203stack.subx.html#L114'>push</a> s: (addr stack), n: int
<span id="L132" class="LineNr">132 </span><span class="PreProc">sig</span> <a href='203stack.subx.html#L234'>pop</a> s: (addr stack)<span class="PreProc"> -&gt; </span>n/<span class="Constant">eax</span>: int
<span id="L133" class="LineNr">133 </span><span class="PreProc">sig</span> <a href='203stack.subx.html#L338'>top</a> s: (addr stack)<span class="PreProc"> -&gt; </span>n/<span class="Constant">eax</span>: int
<span id="L134" class="LineNr">134 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L5'>array-equal?</a> a: (addr array int), b: (addr array int)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L135" class="LineNr">135 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L174'>parse-array-of-ints</a> ad: (addr allocation-descriptor), s: (addr string), out: (addr handle array int)
<span id="L136" class="LineNr">136 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L370'>check-array-equal</a> a: (addr array int), expected: (addr string), msg: (addr string)
<span id="L137" class="LineNr">137 </span><span class="Comment">#sig push-n-zero-bytes n: int</span>
<span id="L138" class="LineNr">138 </span><span class="PreProc">sig</span> <a href='303kernel-string.subx.html#L7'>kernel-string-to-string</a> ad: (addr allocation-descriptor), in: (addr kernel-string), out: (addr handle array byte)
<span id="L139" class="LineNr">139 </span><span class="PreProc">sig</span> <a href='303kernel-string.subx.html#L57'>kernel-string-length</a> in: (addr kernel-string)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L140" class="LineNr">140 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L6'>enable-screen-grid-mode</a>
<span id="L141" class="LineNr">141 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L24'>enable-screen-type-mode</a>
<span id="L142" class="LineNr">142 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L37'>real-screen-size</a><span class="PreProc"> -&gt; </span>nrows/<span class="Constant">eax</span>: int, ncols/<span class="Constant">ecx</span>: int
<span id="L143" class="LineNr">143 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L75'>clear-real-screen</a>
<span id="L144" class="LineNr">144 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L91'>move-cursor-on-real-screen</a> row: int, column: int
<span id="L145" class="LineNr">145 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> s: (addr array byte)
<span id="L146" class="LineNr">146 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L134'>print-stream-to-real-screen</a> s: (addr stream byte)
<span id="L147" class="LineNr">147 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L148'>print-grapheme-to-real-screen</a> c: grapheme
<span id="L148" class="LineNr">148 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L213'>print-int32-hex-to-real-screen</a> n: int
<span id="L149" class="LineNr">149 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L226'>reset-formatting-on-real-screen</a>
<span id="L150" class="LineNr">150 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L241'>start-color-on-real-screen</a> fg: int, bg: int
<span id="L151" class="LineNr">151 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L276'>start-bold-on-real-screen</a>
<span id="L152" class="LineNr">152 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L289'>start-underline-on-real-screen</a>
<span id="L153" class="LineNr">153 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L302'>start-reverse-video-on-real-screen</a>
<span id="L154" class="LineNr">154 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L316'>start-blinking-on-real-screen</a>
<span id="L155" class="LineNr">155 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L329'>hide-cursor-on-real-screen</a>
<span id="L156" class="LineNr">156 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L342'>show-cursor-on-real-screen</a>
<span id="L157" class="LineNr">157 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L6'>enable-keyboard-immediate-mode</a>
<span id="L158" class="LineNr">158 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L72'>enable-keyboard-type-mode</a>
<span id="L159" class="LineNr">159 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L122'>read-key</a><span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: byte
<span id="L160" class="LineNr">160 </span><span class="PreProc">sig</span> <a href='306files.subx.html#L3'>open</a> filename: (addr array byte), write?: boolean, out: (addr handle buffered-file)
<span id="L161" class="LineNr">161 </span><span class="Comment">#sig size in: (addr array _) -&gt; result/eax: int</span>
<span id="L162" class="LineNr">162 </span>
<span id="L163" class="LineNr">163 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s: (addr stream _)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L164" class="LineNr">164 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L30'>stream-full?</a> s: (addr stream _)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L165" class="LineNr">165 </span>
<span id="L166" class="LineNr">166 </span><span class="PreProc">sig</span> <a href='310copy-bytes.subx.html#L5'>copy-bytes</a> src: (addr byte), dest: (addr byte), n: int
</pre>
</body>
</html>

View File

@ -1,225 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Mu - 403code-point.mu</title>
<meta name="Generator" content="Vim/8.1">
<meta name="plugin-version" content="vim8.1_v1">
<meta name="syntax" content="none">
<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
<meta name="colorscheme" content="minimal-light">
<style type="text/css">
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #c6c6c6; }
body { font-size:12pt; font-family: monospace; color: #000000; background-color: #c6c6c6; }
a { color:inherit; }
* { font-size:12pt; font-size: 1em; }
.muTest { color: #5f8700; }
.LineNr { }
.muFunction { color: #af5f00; text-decoration: underline; }
.SpecialChar { color: #d70000; }
.CommentedCode { color: #8a8a8a; }
.Comment { color: #005faf; }
.Constant { color: #008787; }
.Delimiter { color: #c000c0; }
.PreProc { color: #c000c0; }
-->
</style>
<script type='text/javascript'>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
function JumpToLine()
{
var lineNum;
lineNum = window.location.hash;
lineNum = lineNum.substr(1); /* strip off '#' */
if (lineNum.indexOf('L') == -1) {
lineNum = 'L'+lineNum;
}
var lineElem = document.getElementById(lineNum);
/* Always jump to new location even if the line was hidden inside a fold, or
* we corrected the raw number to a line ID.
*/
if (lineElem) {
lineElem.scrollIntoView(true);
}
return true;
}
if ('onhashchange' in window) {
window.onhashchange = JumpToLine;
}
-->
</script>
</head>
<body onload='JumpToLine();'>
<a href='https://github.com/akkartik/mu/blob/master/403code-point.mu'>https://github.com/akkartik/mu/blob/master/403code-point.mu</a>
<pre id='vimCodeElement'>
<span id="L1" class="LineNr"> 1 </span><span class="Comment"># Helpers for Unicode &quot;code points&quot;.</span>
<span id="L2" class="LineNr"> 2 </span><span class="Comment"># <a href="https://en.wikipedia.org/wiki/Code_point">https://en.wikipedia.org/wiki/Code_point</a></span>
<span id="L3" class="LineNr"> 3 </span><span class="Comment">#</span>
<span id="L4" class="LineNr"> 4 </span><span class="Comment"># Mu has no characters, only code points and graphemes.</span>
<span id="L5" class="LineNr"> 5 </span><span class="Comment"># Code points are the indivisible atoms of text streams.</span>
<span id="L6" class="LineNr"> 6 </span><span class="Comment"># Graphemes are the smallest self-contained unit of text.</span>
<span id="L7" class="LineNr"> 7 </span><span class="Comment"># Graphemes may consist of multiple code points.</span>
<span id="L8" class="LineNr"> 8 </span><span class="Comment">#</span>
<span id="L9" class="LineNr"> 9 </span><span class="Comment"># Mu graphemes are always represented in utf-8, and they are required to fit</span>
<span id="L10" class="LineNr"> 10 </span><span class="Comment"># in 4 bytes.</span>
<span id="L11" class="LineNr"> 11 </span><span class="Comment">#</span>
<span id="L12" class="LineNr"> 12 </span><span class="Comment"># Mu doesn't currently support combining code points, or graphemes made of</span>
<span id="L13" class="LineNr"> 13 </span><span class="Comment"># multiple code points. One day we will.</span>
<span id="L14" class="LineNr"> 14 </span>
<span id="L15" class="LineNr"> 15 </span><span class="Comment"># transliterated from tb_utf8_unicode_to_char in <a href="https://github.com/nsf/termbox">https://github.com/nsf/termbox</a></span>
<span id="L16" class="LineNr"> 16 </span><span class="Comment"># <a href="https://wiki.tcl-lang.org/page/UTF%2D8+bit+by+bit">https://wiki.tcl-lang.org/page/UTF%2D8+bit+by+bit</a> explains the algorithm</span>
<span id="L17" class="LineNr"> 17 </span><span class="Comment">#</span>
<span id="L18" class="LineNr"> 18 </span><span class="Comment"># The day we want to support combining characters, this function will need to</span>
<span id="L19" class="LineNr"> 19 </span><span class="Comment"># take multiple code points. Or something.</span>
<span id="L20" class="LineNr"> 20 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403code-point.mu.html#L20'>to-grapheme</a></span> in: code-point<span class="PreProc"> -&gt; </span>out/<span class="Constant">eax</span>: grapheme <span class="Delimiter">{</span>
<span id="L21" class="LineNr"> 21 </span>$to-grapheme:body: <span class="Delimiter">{</span>
<span id="L22" class="LineNr"> 22 </span> <span class="PreProc">var</span> c/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy in
<span id="L23" class="LineNr"> 23 </span> <span class="PreProc">var</span> num-trailers/<span class="Constant">ecx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> first/<span class="Constant">edx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L25" class="LineNr"> 25 </span> $to-grapheme:compute-length: <span class="Delimiter">{</span>
<span id="L26" class="LineNr"> 26 </span> <span class="Comment"># single byte: just return it</span>
<span id="L27" class="LineNr"> 27 </span> compare c, <span class="Constant">0x7f</span>
<span id="L28" class="LineNr"> 28 </span> <span class="Delimiter">{</span>
<span id="L29" class="LineNr"> 29 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L30" class="LineNr"> 30 </span> out <span class="SpecialChar">&lt;-</span> copy c
<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">break</span> $to-grapheme:body
<span id="L32" class="LineNr"> 32 </span> <span class="Delimiter">}</span>
<span id="L33" class="LineNr"> 33 </span> <span class="Comment"># 2 bytes</span>
<span id="L34" class="LineNr"> 34 </span> compare c, <span class="Constant">0x7ff</span>
<span id="L35" class="LineNr"> 35 </span> <span class="Delimiter">{</span>
<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L37" class="LineNr"> 37 </span> num-trailers <span class="SpecialChar">&lt;-</span> copy <span class="Constant">1</span>
<span id="L38" class="LineNr"> 38 </span> first <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0xc0</span>
<span id="L39" class="LineNr"> 39 </span> <span class="PreProc">break</span> $to-grapheme:compute-length
<span id="L40" class="LineNr"> 40 </span> <span class="Delimiter">}</span>
<span id="L41" class="LineNr"> 41 </span> <span class="Comment"># 3 bytes</span>
<span id="L42" class="LineNr"> 42 </span> compare c, <span class="Constant">0xffff</span>
<span id="L43" class="LineNr"> 43 </span> <span class="Delimiter">{</span>
<span id="L44" class="LineNr"> 44 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L45" class="LineNr"> 45 </span> num-trailers <span class="SpecialChar">&lt;-</span> copy <span class="Constant">2</span>
<span id="L46" class="LineNr"> 46 </span> first <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0xe0</span>
<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">break</span> $to-grapheme:compute-length
<span id="L48" class="LineNr"> 48 </span> <span class="Delimiter">}</span>
<span id="L49" class="LineNr"> 49 </span> <span class="Comment"># 4 bytes</span>
<span id="L50" class="LineNr"> 50 </span> compare c, <span class="Constant">0x1fffff</span>
<span id="L51" class="LineNr"> 51 </span> <span class="Delimiter">{</span>
<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L53" class="LineNr"> 53 </span> num-trailers <span class="SpecialChar">&lt;-</span> copy <span class="Constant">3</span>
<span id="L54" class="LineNr"> 54 </span> first <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0xf0</span>
<span id="L55" class="LineNr"> 55 </span> <span class="PreProc">break</span> $to-grapheme:compute-length
<span id="L56" class="LineNr"> 56 </span> <span class="Delimiter">}</span>
<span id="L57" class="LineNr"> 57 </span> <span class="Comment"># more than 4 bytes: unsupported</span>
<span id="L58" class="LineNr"> 58 </span> compare c, <span class="Constant">0x1fffff</span>
<span id="L59" class="LineNr"> 59 </span> <span class="Delimiter">{</span>
<span id="L60" class="LineNr"> 60 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L61" class="LineNr"> 61 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">&quot;unsupported code point &quot;</span>
<span id="L62" class="LineNr"> 62 </span> <a href='304screen.subx.html#L213'>print-int32-hex-to-real-screen</a> c
<span id="L63" class="LineNr"> 63 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">&quot;\n&quot;</span>
<span id="L64" class="LineNr"> 64 </span> <span class="PreProc">var</span> exit-status/<span class="Constant">ebx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">1</span>
<span id="L65" class="LineNr"> 65 </span> syscall_exit
<span id="L66" class="LineNr"> 66 </span> <span class="Delimiter">}</span>
<span id="L67" class="LineNr"> 67 </span> <span class="Delimiter">}</span>
<span id="L68" class="LineNr"> 68 </span> <span class="Comment"># emit trailer bytes, 6 bits from 'in', first two bits '10'</span>
<span id="L69" class="LineNr"> 69 </span> <span class="PreProc">var</span> result/<span class="Constant">edi</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L70" class="LineNr"> 70 </span> <span class="Delimiter">{</span>
<span id="L71" class="LineNr"> 71 </span> compare num-trailers, <span class="Constant">0</span>
<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">break-if-&lt;=</span>
<span id="L73" class="LineNr"> 73 </span> <span class="PreProc">var</span> tmp/<span class="Constant">esi</span>: int <span class="SpecialChar">&lt;-</span> copy c
<span id="L74" class="LineNr"> 74 </span> tmp <span class="SpecialChar">&lt;-</span> and <span class="Constant">0x3f</span>
<span id="L75" class="LineNr"> 75 </span> tmp <span class="SpecialChar">&lt;-</span> or <span class="Constant">0x80</span>
<span id="L76" class="LineNr"> 76 </span> result <span class="SpecialChar">&lt;-</span> shift-left <span class="Constant">8</span>
<span id="L77" class="LineNr"> 77 </span> result <span class="SpecialChar">&lt;-</span> or tmp
<span id="L78" class="LineNr"> 78 </span> <span class="Comment"># update loop state</span>
<span id="L79" class="LineNr"> 79 </span> c <span class="SpecialChar">&lt;-</span> shift-right <span class="Constant">6</span>
<span id="L80" class="LineNr"> 80 </span> num-trailers <span class="SpecialChar">&lt;-</span> decrement
<span id="L81" class="LineNr"> 81 </span> <span class="PreProc">loop</span>
<span id="L82" class="LineNr"> 82 </span> <span class="Delimiter">}</span>
<span id="L83" class="LineNr"> 83 </span> <span class="Comment"># emit engine</span>
<span id="L84" class="LineNr"> 84 </span> result <span class="SpecialChar">&lt;-</span> shift-left <span class="Constant">8</span>
<span id="L85" class="LineNr"> 85 </span> result <span class="SpecialChar">&lt;-</span> or c
<span id="L86" class="LineNr"> 86 </span> result <span class="SpecialChar">&lt;-</span> or first
<span id="L87" class="LineNr"> 87 </span> <span class="Comment">#</span>
<span id="L88" class="LineNr"> 88 </span> out <span class="SpecialChar">&lt;-</span> copy result
<span id="L89" class="LineNr"> 89 </span><span class="Delimiter">}</span>
<span id="L90" class="LineNr"> 90 </span><span class="Delimiter">}</span>
<span id="L91" class="LineNr"> 91 </span>
<span id="L92" class="LineNr"> 92 </span><span class="Comment"># single-byte code point have identical graphemes</span>
<span id="L93" class="LineNr"> 93 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403code-point.mu.html#L93'>test-to-grapheme-single-byte</a></span> <span class="Delimiter">{</span>
<span id="L94" class="LineNr"> 94 </span> <span class="PreProc">var</span> in-int/<span class="Constant">ecx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L95" class="LineNr"> 95 </span> <span class="Delimiter">{</span>
<span id="L96" class="LineNr"> 96 </span> compare in-int, <span class="Constant">0x7f</span>
<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy in-int
<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403code-point.mu.html#L20'>to-grapheme</a> in
<span id="L100" class="LineNr">100 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L101" class="LineNr">101 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, in-int, <span class="Constant">&quot;F - test-to-grapheme-single-byte&quot;</span>
<span id="L102" class="LineNr">102 </span> in-int <span class="SpecialChar">&lt;-</span> increment
<span id="L103" class="LineNr">103 </span> <span class="PreProc">loop</span>
<span id="L104" class="LineNr">104 </span> <span class="Delimiter">}</span>
<span id="L105" class="LineNr">105 </span><span class="Delimiter">}</span>
<span id="L106" class="LineNr">106 </span>
<span id="L107" class="LineNr">107 </span> <span class="Comment"># byte | byte | byte | byte</span>
<span id="L108" class="LineNr">108 </span><span class="Comment"># smallest 2-byte utf-8</span>
<span id="L109" class="LineNr">109 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403code-point.mu.html#L109'>test-to-grapheme-two-bytes-min</a></span> <span class="Delimiter">{</span>
<span id="L110" class="LineNr">110 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0x80</span> <span class="Comment"># 10 00-0000</span>
<span id="L111" class="LineNr">111 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403code-point.mu.html#L20'>to-grapheme</a> in
<span id="L112" class="LineNr">112 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L113" class="LineNr">113 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0x80c2</span>, <span class="Constant">&quot;F - <a href='403code-point.mu.html#L20'>to-grapheme</a>/2a&quot;</span> <span class="Comment"># 110 0-0010 10 00-0000</span>
<span id="L114" class="LineNr">114 </span><span class="Delimiter">}</span>
<span id="L115" class="LineNr">115 </span>
<span id="L116" class="LineNr">116 </span><span class="Comment"># largest 2-byte utf-8</span>
<span id="L117" class="LineNr">117 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403code-point.mu.html#L117'>test-to-grapheme-two-bytes-max</a></span> <span class="Delimiter">{</span>
<span id="L118" class="LineNr">118 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0x7ff</span> <span class="Comment"># 1-1111 11-1111</span>
<span id="L119" class="LineNr">119 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403code-point.mu.html#L20'>to-grapheme</a> in
<span id="L120" class="LineNr">120 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L121" class="LineNr">121 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0xbfdf</span>, <span class="Constant">&quot;F - <a href='403code-point.mu.html#L20'>to-grapheme</a>/2b&quot;</span> <span class="Comment"># 110 1-1111 10 11-1111</span>
<span id="L122" class="LineNr">122 </span><span class="Delimiter">}</span>
<span id="L123" class="LineNr">123 </span>
<span id="L124" class="LineNr">124 </span><span class="Comment"># smallest 3-byte utf-8</span>
<span id="L125" class="LineNr">125 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403code-point.mu.html#L125'>test-to-grapheme-three-bytes-min</a></span> <span class="Delimiter">{</span>
<span id="L126" class="LineNr">126 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0x800</span> <span class="Comment"># 10-0000 00-0000</span>
<span id="L127" class="LineNr">127 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403code-point.mu.html#L20'>to-grapheme</a> in
<span id="L128" class="LineNr">128 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L129" class="LineNr">129 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0x80a0e0</span>, <span class="Constant">&quot;F - <a href='403code-point.mu.html#L20'>to-grapheme</a>/3a&quot;</span> <span class="Comment"># 1110 0000 10 10-0000 10 00-0000</span>
<span id="L130" class="LineNr">130 </span><span class="Delimiter">}</span>
<span id="L131" class="LineNr">131 </span>
<span id="L132" class="LineNr">132 </span><span class="Comment"># largest 3-byte utf-8</span>
<span id="L133" class="LineNr">133 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403code-point.mu.html#L133'>test-to-grapheme-three-bytes-max</a></span> <span class="Delimiter">{</span>
<span id="L134" class="LineNr">134 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0xffff</span> <span class="Comment"># 1111 11-1111 11-1111</span>
<span id="L135" class="LineNr">135 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403code-point.mu.html#L20'>to-grapheme</a> in
<span id="L136" class="LineNr">136 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L137" class="LineNr">137 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0xbfbfef</span>, <span class="Constant">&quot;F - <a href='403code-point.mu.html#L20'>to-grapheme</a>/3b&quot;</span> <span class="Comment"># 1110 1111 10 11-1111 10 11-1111</span>
<span id="L138" class="LineNr">138 </span><span class="Delimiter">}</span>
<span id="L139" class="LineNr">139 </span>
<span id="L140" class="LineNr">140 </span><span class="Comment"># smallest 4-byte utf-8</span>
<span id="L141" class="LineNr">141 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403code-point.mu.html#L141'>test-to-grapheme-four-bytes-min</a></span> <span class="Delimiter">{</span>
<span id="L142" class="LineNr">142 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0x10000</span> <span class="Comment"># 1-0000 00-0000 00-0000</span>
<span id="L143" class="LineNr">143 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403code-point.mu.html#L20'>to-grapheme</a> in
<span id="L144" class="LineNr">144 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L145" class="LineNr">145 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0x808090f0</span>, <span class="Constant">&quot;F - <a href='403code-point.mu.html#L20'>to-grapheme</a>/4a&quot;</span> <span class="Comment"># 1111-0 000 10 01-0000 10 00-0000 10 00-0000</span>
<span id="L146" class="LineNr">146 </span><span class="Delimiter">}</span>
<span id="L147" class="LineNr">147 </span>
<span id="L148" class="LineNr">148 </span><span class="Comment"># largest 4-byte utf-8</span>
<span id="L149" class="LineNr">149 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403code-point.mu.html#L149'>test-to-grapheme-four-bytes-max</a></span> <span class="Delimiter">{</span>
<span id="L150" class="LineNr">150 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0x1fffff</span> <span class="Comment"># 111 11-1111 11-1111 11-1111</span>
<span id="L151" class="LineNr">151 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403code-point.mu.html#L20'>to-grapheme</a> in
<span id="L152" class="LineNr">152 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L153" class="LineNr">153 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0xbfbfbff7</span>, <span class="Constant">&quot;F - <a href='403code-point.mu.html#L20'>to-grapheme</a>/4b&quot;</span> <span class="Comment"># 1111-0 111 10 11-1111 10 11-1111 10 11-1111</span>
<span id="L154" class="LineNr">154 </span><span class="Delimiter">}</span>
<span id="L155" class="LineNr">155 </span>
<span id="L156" class="LineNr">156 </span><span class="Comment"># To run all tests, uncomment this and run:</span>
<span id="L157" class="LineNr">157 </span><span class="Comment"># $ ./translate_mu '' &amp;&amp; ./a.elf</span>
<span id="L158" class="LineNr">158 </span><span class="CommentedCode">#? fn main -&gt; r/ebx: int {</span>
<span id="L159" class="LineNr">159 </span><span class="CommentedCode">#? run-tests</span>
<span id="L160" class="LineNr">160 </span><span class="CommentedCode">#? r &lt;- copy 0</span>
<span id="L161" class="LineNr">161 </span><span class="CommentedCode">#? }</span>
</pre>
</body>
</html>
<!-- vim: set foldmethod=manual : -->

108
html/403stream.mu.html generated
View File

@ -1,108 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Mu - 403stream.mu</title>
<meta name="Generator" content="Vim/8.1">
<meta name="plugin-version" content="vim8.1_v1">
<meta name="syntax" content="none">
<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
<meta name="colorscheme" content="minimal-light">
<style type="text/css">
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #c6c6c6; }
body { font-size:12pt; font-family: monospace; color: #000000; background-color: #c6c6c6; }
a { color:inherit; }
* { font-size:12pt; font-size: 1em; }
.LineNr { }
.SpecialChar { color: #d70000; }
.muTest { color: #5f8700; }
.Comment { color: #005faf; }
.Delimiter { color: #c000c0; }
.Constant { color: #008787; }
.PreProc { color: #c000c0; }
-->
</style>
<script type='text/javascript'>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
function JumpToLine()
{
var lineNum;
lineNum = window.location.hash;
lineNum = lineNum.substr(1); /* strip off '#' */
if (lineNum.indexOf('L') == -1) {
lineNum = 'L'+lineNum;
}
var lineElem = document.getElementById(lineNum);
/* Always jump to new location even if the line was hidden inside a fold, or
* we corrected the raw number to a line ID.
*/
if (lineElem) {
lineElem.scrollIntoView(true);
}
return true;
}
if ('onhashchange' in window) {
window.onhashchange = JumpToLine;
}
-->
</script>
</head>
<body onload='JumpToLine();'>
<a href='https://github.com/akkartik/mu/blob/master/403stream.mu'>https://github.com/akkartik/mu/blob/master/403stream.mu</a>
<pre id='vimCodeElement'>
<span id="L1" class="LineNr"> 1 </span><span class="Comment"># Tests for Mu's stream primitives.</span>
<span id="L2" class="LineNr"> 2 </span>
<span id="L3" class="LineNr"> 3 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403stream.mu.html#L3'>test-stream</a></span> <span class="Delimiter">{</span>
<span id="L4" class="LineNr"> 4 </span> <span class="Comment"># - write an int to a stream, then read it back</span>
<span id="L5" class="LineNr"> 5 </span> <span class="Comment"># step 1: initialize</span>
<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> s: (stream int <span class="Constant">4</span>)
<span id="L7" class="LineNr"> 7 </span> <span class="PreProc">var</span> s2/<span class="Constant">ecx</span>: (addr stream int <span class="Constant">4</span>) <span class="SpecialChar">&lt;-</span> address s
<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: boolean <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L4'>stream-empty?</a> s2
<span id="L9" class="LineNr"> 9 </span> <a href='401test.mu.html#L3'>check-true</a> tmp, <span class="Constant">&quot;F - <a href='403stream.mu.html#L3'>test-stream</a>/empty?/0&quot;</span>
<span id="L10" class="LineNr">10 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L28'>stream-full?</a> s2
<span id="L11" class="LineNr">11 </span> <a href='401test.mu.html#L8'>check-false</a> tmp, <span class="Constant">&quot;F - <a href='403stream.mu.html#L3'>test-stream</a>/full?/0&quot;</span>
<span id="L12" class="LineNr">12 </span> <span class="Comment"># step 2: write to stream</span>
<span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> x: int
<span id="L14" class="LineNr">14 </span> copy-to x, <span class="Constant">0x34</span>
<span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x2/<span class="Constant">edx</span>: (addr int) <span class="SpecialChar">&lt;-</span> address x
<span id="L16" class="LineNr">16 </span> <a href='309stream.subx.html#L52'>write-to-stream</a> s2, x2
<span id="L17" class="LineNr">17 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L4'>stream-empty?</a> s2
<span id="L18" class="LineNr">18 </span> <a href='401test.mu.html#L8'>check-false</a> tmp, <span class="Constant">&quot;F - <a href='403stream.mu.html#L3'>test-stream</a>/empty?/1&quot;</span>
<span id="L19" class="LineNr">19 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L28'>stream-full?</a> s2
<span id="L20" class="LineNr">20 </span> <a href='401test.mu.html#L8'>check-false</a> tmp, <span class="Constant">&quot;F - <a href='403stream.mu.html#L3'>test-stream</a>/full?/1&quot;</span>
<span id="L21" class="LineNr">21 </span> <span class="Comment"># step 3: modify the value written (should make no difference)</span>
<span id="L22" class="LineNr">22 </span> copy-to x, <span class="Constant">0</span>
<span id="L23" class="LineNr">23 </span> <span class="Comment"># step 4: read back</span>
<span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> y: int
<span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> y2/<span class="Constant">ebx</span>: (addr int) <span class="SpecialChar">&lt;-</span> address y
<span id="L26" class="LineNr">26 </span> <a href='309stream.subx.html#L105'>read-from-stream</a> s2, y2
<span id="L27" class="LineNr">27 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L4'>stream-empty?</a> s2
<span id="L28" class="LineNr">28 </span> <a href='401test.mu.html#L3'>check-true</a> tmp, <span class="Constant">&quot;F - <a href='403stream.mu.html#L3'>test-stream</a>/empty?/2&quot;</span>
<span id="L29" class="LineNr">29 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L28'>stream-full?</a> s2
<span id="L30" class="LineNr">30 </span> <a href='401test.mu.html#L8'>check-false</a> tmp, <span class="Constant">&quot;F - <a href='403stream.mu.html#L3'>test-stream</a>/full?/2&quot;</span>
<span id="L31" class="LineNr">31 </span> <span class="Comment"># we read back what was written</span>
<span id="L32" class="LineNr">32 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> y, <span class="Constant">0x34</span>, <span class="Constant">&quot;F - test-stream&quot;</span>
<span id="L33" class="LineNr">33 </span><span class="Delimiter">}</span>
<span id="L34" class="LineNr">34 </span>
<span id="L35" class="LineNr">35 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403stream.mu.html#L35'>test-stream-full</a></span> <span class="Delimiter">{</span>
<span id="L36" class="LineNr">36 </span> <span class="Comment"># write an int to a stream of capacity 1</span>
<span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> s: (stream int <span class="Constant">1</span>)
<span id="L38" class="LineNr">38 </span> <span class="PreProc">var</span> s2/<span class="Constant">ecx</span>: (addr stream int <span class="Constant">1</span>) <span class="SpecialChar">&lt;-</span> address s
<span id="L39" class="LineNr">39 </span> <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: boolean <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L28'>stream-full?</a> s2
<span id="L40" class="LineNr">40 </span> <a href='401test.mu.html#L8'>check-false</a> tmp, <span class="Constant">&quot;F - test-stream-full?/pre&quot;</span>
<span id="L41" class="LineNr">41 </span> <span class="PreProc">var</span> x: int
<span id="L42" class="LineNr">42 </span> <span class="PreProc">var</span> x2/<span class="Constant">edx</span>: (addr int) <span class="SpecialChar">&lt;-</span> address x
<span id="L43" class="LineNr">43 </span> <a href='309stream.subx.html#L52'>write-to-stream</a> s2, x2
<span id="L44" class="LineNr">44 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L28'>stream-full?</a> s2
<span id="L45" class="LineNr">45 </span> <a href='401test.mu.html#L3'>check-true</a> tmp, <span class="Constant">&quot;F - test-stream-full?&quot;</span>
<span id="L46" class="LineNr">46 </span><span class="Delimiter">}</span>
</pre>
</body>
</html>
<!-- vim: set foldmethod=manual : -->

370
html/403unicode.mu.html generated Normal file
View File

@ -0,0 +1,370 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Mu - 403unicode.mu</title>
<meta name="Generator" content="Vim/8.1">
<meta name="plugin-version" content="vim8.1_v1">
<meta name="syntax" content="none">
<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
<meta name="colorscheme" content="minimal-light">
<style type="text/css">
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #c6c6c6; }
body { font-size:12pt; font-family: monospace; color: #000000; background-color: #c6c6c6; }
a { color:inherit; }
* { font-size:12pt; font-size: 1em; }
.muTest { color: #5f8700; }
.LineNr { }
.muFunction { color: #af5f00; text-decoration: underline; }
.SpecialChar { color: #d70000; }
.CommentedCode { color: #8a8a8a; }
.Comment { color: #005faf; }
.Constant { color: #008787; }
.Delimiter { color: #c000c0; }
.PreProc { color: #c000c0; }
-->
</style>
<script type='text/javascript'>
<!--
/* function to open any folds containing a jumped-to line before jumping to it */
function JumpToLine()
{
var lineNum;
lineNum = window.location.hash;
lineNum = lineNum.substr(1); /* strip off '#' */
if (lineNum.indexOf('L') == -1) {
lineNum = 'L'+lineNum;
}
var lineElem = document.getElementById(lineNum);
/* Always jump to new location even if the line was hidden inside a fold, or
* we corrected the raw number to a line ID.
*/
if (lineElem) {
lineElem.scrollIntoView(true);
}
return true;
}
if ('onhashchange' in window) {
window.onhashchange = JumpToLine;
}
-->
</script>
</head>
<body onload='JumpToLine();'>
<a href='https://github.com/akkartik/mu/blob/master/403unicode.mu'>https://github.com/akkartik/mu/blob/master/403unicode.mu</a>
<pre id='vimCodeElement'>
<span id="L1" class="LineNr"> 1 </span><span class="Comment"># Helpers for Unicode.</span>
<span id="L2" class="LineNr"> 2 </span><span class="Comment">#</span>
<span id="L3" class="LineNr"> 3 </span><span class="Comment"># Mu has no characters, only code points and graphemes.</span>
<span id="L4" class="LineNr"> 4 </span><span class="Comment"># Code points are the indivisible atoms of text streams.</span>
<span id="L5" class="LineNr"> 5 </span><span class="Comment"># <a href="https://en.wikipedia.org/wiki/Code_point">https://en.wikipedia.org/wiki/Code_point</a></span>
<span id="L6" class="LineNr"> 6 </span><span class="Comment"># Graphemes are the smallest self-contained unit of text.</span>
<span id="L7" class="LineNr"> 7 </span><span class="Comment"># Graphemes may consist of multiple code points.</span>
<span id="L8" class="LineNr"> 8 </span><span class="Comment">#</span>
<span id="L9" class="LineNr"> 9 </span><span class="Comment"># Mu graphemes are always represented in utf-8, and they are required to fit</span>
<span id="L10" class="LineNr"> 10 </span><span class="Comment"># in 4 bytes.</span>
<span id="L11" class="LineNr"> 11 </span><span class="Comment">#</span>
<span id="L12" class="LineNr"> 12 </span><span class="Comment"># Mu doesn't currently support combining code points, or graphemes made of</span>
<span id="L13" class="LineNr"> 13 </span><span class="Comment"># multiple code points. One day we will.</span>
<span id="L14" class="LineNr"> 14 </span><span class="Comment"># We also don't currently support code points that translate into multiple</span>
<span id="L15" class="LineNr"> 15 </span><span class="Comment"># or wide graphemes. (In particular, Tab will never be supported.)</span>
<span id="L16" class="LineNr"> 16 </span>
<span id="L17" class="LineNr"> 17 </span><span class="Comment"># transliterated from tb_utf8_unicode_to_char in <a href="https://github.com/nsf/termbox">https://github.com/nsf/termbox</a></span>
<span id="L18" class="LineNr"> 18 </span><span class="Comment"># <a href="https://wiki.tcl-lang.org/page/UTF%2D8+bit+by+bit">https://wiki.tcl-lang.org/page/UTF%2D8+bit+by+bit</a> explains the algorithm</span>
<span id="L19" class="LineNr"> 19 </span><span class="Comment">#</span>
<span id="L20" class="LineNr"> 20 </span><span class="Comment"># The day we want to support combining characters, this function will need to</span>
<span id="L21" class="LineNr"> 21 </span><span class="Comment"># take multiple code points. Or something.</span>
<span id="L22" class="LineNr"> 22 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L22'>to-grapheme</a></span> in: code-point<span class="PreProc"> -&gt; </span>out/<span class="Constant">eax</span>: grapheme <span class="Delimiter">{</span>
<span id="L23" class="LineNr"> 23 </span>$to-grapheme:body: <span class="Delimiter">{</span>
<span id="L24" class="LineNr"> 24 </span> <span class="PreProc">var</span> c/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy in
<span id="L25" class="LineNr"> 25 </span> <span class="PreProc">var</span> num-trailers/<span class="Constant">ecx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L26" class="LineNr"> 26 </span> <span class="PreProc">var</span> first/<span class="Constant">edx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L27" class="LineNr"> 27 </span> $to-grapheme:compute-length: <span class="Delimiter">{</span>
<span id="L28" class="LineNr"> 28 </span> <span class="Comment"># single byte: just return it</span>
<span id="L29" class="LineNr"> 29 </span> compare c, <span class="Constant">0x7f</span>
<span id="L30" class="LineNr"> 30 </span> <span class="Delimiter">{</span>
<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L32" class="LineNr"> 32 </span> out <span class="SpecialChar">&lt;-</span> copy c
<span id="L33" class="LineNr"> 33 </span> <span class="PreProc">break</span> $to-grapheme:body
<span id="L34" class="LineNr"> 34 </span> <span class="Delimiter">}</span>
<span id="L35" class="LineNr"> 35 </span> <span class="Comment"># 2 bytes</span>
<span id="L36" class="LineNr"> 36 </span> compare c, <span class="Constant">0x7ff</span>
<span id="L37" class="LineNr"> 37 </span> <span class="Delimiter">{</span>
<span id="L38" class="LineNr"> 38 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L39" class="LineNr"> 39 </span> num-trailers <span class="SpecialChar">&lt;-</span> copy <span class="Constant">1</span>
<span id="L40" class="LineNr"> 40 </span> first <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0xc0</span>
<span id="L41" class="LineNr"> 41 </span> <span class="PreProc">break</span> $to-grapheme:compute-length
<span id="L42" class="LineNr"> 42 </span> <span class="Delimiter">}</span>
<span id="L43" class="LineNr"> 43 </span> <span class="Comment"># 3 bytes</span>
<span id="L44" class="LineNr"> 44 </span> compare c, <span class="Constant">0xffff</span>
<span id="L45" class="LineNr"> 45 </span> <span class="Delimiter">{</span>
<span id="L46" class="LineNr"> 46 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L47" class="LineNr"> 47 </span> num-trailers <span class="SpecialChar">&lt;-</span> copy <span class="Constant">2</span>
<span id="L48" class="LineNr"> 48 </span> first <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0xe0</span>
<span id="L49" class="LineNr"> 49 </span> <span class="PreProc">break</span> $to-grapheme:compute-length
<span id="L50" class="LineNr"> 50 </span> <span class="Delimiter">}</span>
<span id="L51" class="LineNr"> 51 </span> <span class="Comment"># 4 bytes</span>
<span id="L52" class="LineNr"> 52 </span> compare c, <span class="Constant">0x1fffff</span>
<span id="L53" class="LineNr"> 53 </span> <span class="Delimiter">{</span>
<span id="L54" class="LineNr"> 54 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L55" class="LineNr"> 55 </span> num-trailers <span class="SpecialChar">&lt;-</span> copy <span class="Constant">3</span>
<span id="L56" class="LineNr"> 56 </span> first <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0xf0</span>
<span id="L57" class="LineNr"> 57 </span> <span class="PreProc">break</span> $to-grapheme:compute-length
<span id="L58" class="LineNr"> 58 </span> <span class="Delimiter">}</span>
<span id="L59" class="LineNr"> 59 </span> <span class="Comment"># more than 4 bytes: unsupported</span>
<span id="L60" class="LineNr"> 60 </span> <span class="Comment"># TODO: print to stderr</span>
<span id="L61" class="LineNr"> 61 </span> compare c, <span class="Constant">0x1fffff</span>
<span id="L62" class="LineNr"> 62 </span> <span class="Delimiter">{</span>
<span id="L63" class="LineNr"> 63 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L64" class="LineNr"> 64 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">&quot;unsupported code point &quot;</span>
<span id="L65" class="LineNr"> 65 </span> <a href='304screen.subx.html#L213'>print-int32-hex-to-real-screen</a> c
<span id="L66" class="LineNr"> 66 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">&quot;\n&quot;</span>
<span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> exit-status/<span class="Constant">ebx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">1</span>
<span id="L68" class="LineNr"> 68 </span> syscall_exit
<span id="L69" class="LineNr"> 69 </span> <span class="Delimiter">}</span>
<span id="L70" class="LineNr"> 70 </span> <span class="Delimiter">}</span>
<span id="L71" class="LineNr"> 71 </span> <span class="Comment"># emit trailer bytes, 6 bits from 'in', first two bits '10'</span>
<span id="L72" class="LineNr"> 72 </span> <span class="PreProc">var</span> result/<span class="Constant">edi</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L73" class="LineNr"> 73 </span> <span class="Delimiter">{</span>
<span id="L74" class="LineNr"> 74 </span> compare num-trailers, <span class="Constant">0</span>
<span id="L75" class="LineNr"> 75 </span> <span class="PreProc">break-if-&lt;=</span>
<span id="L76" class="LineNr"> 76 </span> <span class="PreProc">var</span> tmp/<span class="Constant">esi</span>: int <span class="SpecialChar">&lt;-</span> copy c
<span id="L77" class="LineNr"> 77 </span> tmp <span class="SpecialChar">&lt;-</span> and <span class="Constant">0x3f</span>
<span id="L78" class="LineNr"> 78 </span> tmp <span class="SpecialChar">&lt;-</span> or <span class="Constant">0x80</span>
<span id="L79" class="LineNr"> 79 </span> result <span class="SpecialChar">&lt;-</span> shift-left <span class="Constant">8</span>
<span id="L80" class="LineNr"> 80 </span> result <span class="SpecialChar">&lt;-</span> or tmp
<span id="L81" class="LineNr"> 81 </span> <span class="Comment"># update loop state</span>
<span id="L82" class="LineNr"> 82 </span> c <span class="SpecialChar">&lt;-</span> shift-right <span class="Constant">6</span>
<span id="L83" class="LineNr"> 83 </span> num-trailers <span class="SpecialChar">&lt;-</span> decrement
<span id="L84" class="LineNr"> 84 </span> <span class="PreProc">loop</span>
<span id="L85" class="LineNr"> 85 </span> <span class="Delimiter">}</span>
<span id="L86" class="LineNr"> 86 </span> <span class="Comment"># emit engine</span>
<span id="L87" class="LineNr"> 87 </span> result <span class="SpecialChar">&lt;-</span> shift-left <span class="Constant">8</span>
<span id="L88" class="LineNr"> 88 </span> result <span class="SpecialChar">&lt;-</span> or c
<span id="L89" class="LineNr"> 89 </span> result <span class="SpecialChar">&lt;-</span> or first
<span id="L90" class="LineNr"> 90 </span> <span class="Comment">#</span>
<span id="L91" class="LineNr"> 91 </span> out <span class="SpecialChar">&lt;-</span> copy result
<span id="L92" class="LineNr"> 92 </span><span class="Delimiter">}</span>
<span id="L93" class="LineNr"> 93 </span><span class="Delimiter">}</span>
<span id="L94" class="LineNr"> 94 </span>
<span id="L95" class="LineNr"> 95 </span><span class="Comment"># single-byte code point have identical graphemes</span>
<span id="L96" class="LineNr"> 96 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L96'>test-to-grapheme-single-byte</a></span> <span class="Delimiter">{</span>
<span id="L97" class="LineNr"> 97 </span> <span class="PreProc">var</span> in-int/<span class="Constant">ecx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L98" class="LineNr"> 98 </span> <span class="Delimiter">{</span>
<span id="L99" class="LineNr"> 99 </span> compare in-int, <span class="Constant">0x7f</span>
<span id="L100" class="LineNr">100 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L101" class="LineNr">101 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy in-int
<span id="L102" class="LineNr">102 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in
<span id="L103" class="LineNr">103 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L104" class="LineNr">104 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, in-int, <span class="Constant">&quot;F - test-to-grapheme-single-byte&quot;</span>
<span id="L105" class="LineNr">105 </span> in-int <span class="SpecialChar">&lt;-</span> increment
<span id="L106" class="LineNr">106 </span> <span class="PreProc">loop</span>
<span id="L107" class="LineNr">107 </span> <span class="Delimiter">}</span>
<span id="L108" class="LineNr">108 </span><span class="Delimiter">}</span>
<span id="L109" class="LineNr">109 </span>
<span id="L110" class="LineNr">110 </span> <span class="Comment"># byte | byte | byte | byte</span>
<span id="L111" class="LineNr">111 </span><span class="Comment"># smallest 2-byte utf-8</span>
<span id="L112" class="LineNr">112 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L112'>test-to-grapheme-two-bytes-min</a></span> <span class="Delimiter">{</span>
<span id="L113" class="LineNr">113 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0x80</span> <span class="Comment"># 10 00-0000</span>
<span id="L114" class="LineNr">114 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in
<span id="L115" class="LineNr">115 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L116" class="LineNr">116 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0x80c2</span>, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L22'>to-grapheme</a>/2a&quot;</span> <span class="Comment"># 110 0-0010 10 00-0000</span>
<span id="L117" class="LineNr">117 </span><span class="Delimiter">}</span>
<span id="L118" class="LineNr">118 </span>
<span id="L119" class="LineNr">119 </span><span class="Comment"># largest 2-byte utf-8</span>
<span id="L120" class="LineNr">120 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L120'>test-to-grapheme-two-bytes-max</a></span> <span class="Delimiter">{</span>
<span id="L121" class="LineNr">121 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0x7ff</span> <span class="Comment"># 1-1111 11-1111</span>
<span id="L122" class="LineNr">122 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in
<span id="L123" class="LineNr">123 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L124" class="LineNr">124 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0xbfdf</span>, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L22'>to-grapheme</a>/2b&quot;</span> <span class="Comment"># 110 1-1111 10 11-1111</span>
<span id="L125" class="LineNr">125 </span><span class="Delimiter">}</span>
<span id="L126" class="LineNr">126 </span>
<span id="L127" class="LineNr">127 </span><span class="Comment"># smallest 3-byte utf-8</span>
<span id="L128" class="LineNr">128 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L128'>test-to-grapheme-three-bytes-min</a></span> <span class="Delimiter">{</span>
<span id="L129" class="LineNr">129 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0x800</span> <span class="Comment"># 10-0000 00-0000</span>
<span id="L130" class="LineNr">130 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in
<span id="L131" class="LineNr">131 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L132" class="LineNr">132 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0x80a0e0</span>, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L22'>to-grapheme</a>/3a&quot;</span> <span class="Comment"># 1110 0000 10 10-0000 10 00-0000</span>
<span id="L133" class="LineNr">133 </span><span class="Delimiter">}</span>
<span id="L134" class="LineNr">134 </span>
<span id="L135" class="LineNr">135 </span><span class="Comment"># largest 3-byte utf-8</span>
<span id="L136" class="LineNr">136 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L136'>test-to-grapheme-three-bytes-max</a></span> <span class="Delimiter">{</span>
<span id="L137" class="LineNr">137 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0xffff</span> <span class="Comment"># 1111 11-1111 11-1111</span>
<span id="L138" class="LineNr">138 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in
<span id="L139" class="LineNr">139 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L140" class="LineNr">140 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0xbfbfef</span>, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L22'>to-grapheme</a>/3b&quot;</span> <span class="Comment"># 1110 1111 10 11-1111 10 11-1111</span>
<span id="L141" class="LineNr">141 </span><span class="Delimiter">}</span>
<span id="L142" class="LineNr">142 </span>
<span id="L143" class="LineNr">143 </span><span class="Comment"># smallest 4-byte utf-8</span>
<span id="L144" class="LineNr">144 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L144'>test-to-grapheme-four-bytes-min</a></span> <span class="Delimiter">{</span>
<span id="L145" class="LineNr">145 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0x10000</span> <span class="Comment"># 1-0000 00-0000 00-0000</span>
<span id="L146" class="LineNr">146 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in
<span id="L147" class="LineNr">147 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L148" class="LineNr">148 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0x808090f0</span>, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L22'>to-grapheme</a>/4a&quot;</span> <span class="Comment"># 1111-0 000 10 01-0000 10 00-0000 10 00-0000</span>
<span id="L149" class="LineNr">149 </span><span class="Delimiter">}</span>
<span id="L150" class="LineNr">150 </span>
<span id="L151" class="LineNr">151 </span><span class="Comment"># largest 4-byte utf-8</span>
<span id="L152" class="LineNr">152 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L152'>test-to-grapheme-four-bytes-max</a></span> <span class="Delimiter">{</span>
<span id="L153" class="LineNr">153 </span> <span class="PreProc">var</span> in/<span class="Constant">eax</span>: code-point <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0x1fffff</span> <span class="Comment"># 111 11-1111 11-1111 11-1111</span>
<span id="L154" class="LineNr">154 </span> <span class="PreProc">var</span> out/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L22'>to-grapheme</a> in
<span id="L155" class="LineNr">155 </span> <span class="PreProc">var</span> out-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy out
<span id="L156" class="LineNr">156 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> out-int, <span class="Constant">0xbfbfbff7</span>, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L22'>to-grapheme</a>/4b&quot;</span> <span class="Comment"># 1111-0 111 10 11-1111 10 11-1111 10 11-1111</span>
<span id="L157" class="LineNr">157 </span><span class="Delimiter">}</span>
<span id="L158" class="LineNr">158 </span>
<span id="L159" class="LineNr">159 </span><span class="Comment"># read the next grapheme from a stream of bytes</span>
<span id="L160" class="LineNr">160 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L160'>read-grapheme</a></span> in: (addr stream byte)<span class="PreProc"> -&gt; </span>out/<span class="Constant">eax</span>: grapheme <span class="Delimiter">{</span>
<span id="L161" class="LineNr">161 </span>$read-grapheme:body: <span class="Delimiter">{</span>
<span id="L162" class="LineNr">162 </span> <span class="PreProc">var</span> c/<span class="Constant">eax</span>: byte <span class="SpecialChar">&lt;-</span> <a href='112read-byte.subx.html#L273'>read-byte</a> in
<span id="L163" class="LineNr">163 </span> <span class="PreProc">var</span> num-trailers/<span class="Constant">ecx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L164" class="LineNr">164 </span> $read-grapheme:compute-length: <span class="Delimiter">{</span>
<span id="L165" class="LineNr">165 </span> <span class="Comment"># single byte: just return it</span>
<span id="L166" class="LineNr">166 </span> compare c, <span class="Constant">0xc0</span>
<span id="L167" class="LineNr">167 </span> <span class="Delimiter">{</span>
<span id="L168" class="LineNr">168 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L169" class="LineNr">169 </span> out <span class="SpecialChar">&lt;-</span> copy c
<span id="L170" class="LineNr">170 </span> num-trailers <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L171" class="LineNr">171 </span> <span class="PreProc">break</span> $read-grapheme:body
<span id="L172" class="LineNr">172 </span> <span class="Delimiter">}</span>
<span id="L173" class="LineNr">173 </span> compare c, <span class="Constant">0xfe</span>
<span id="L174" class="LineNr">174 </span> <span class="Delimiter">{</span>
<span id="L175" class="LineNr">175 </span> <span class="PreProc">break-if-&lt;</span>
<span id="L176" class="LineNr">176 </span> out <span class="SpecialChar">&lt;-</span> copy c
<span id="L177" class="LineNr">177 </span> <span class="PreProc">break</span> $read-grapheme:body
<span id="L178" class="LineNr">178 </span> <span class="Delimiter">}</span>
<span id="L179" class="LineNr">179 </span> <span class="Comment"># 2 bytes</span>
<span id="L180" class="LineNr">180 </span> compare c, <span class="Constant">0xe0</span>
<span id="L181" class="LineNr">181 </span> <span class="Delimiter">{</span>
<span id="L182" class="LineNr">182 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L183" class="LineNr">183 </span> num-trailers <span class="SpecialChar">&lt;-</span> copy <span class="Constant">1</span>
<span id="L184" class="LineNr">184 </span> <span class="PreProc">break</span> $read-grapheme:compute-length
<span id="L185" class="LineNr">185 </span> <span class="Delimiter">}</span>
<span id="L186" class="LineNr">186 </span> <span class="Comment"># 3 bytes</span>
<span id="L187" class="LineNr">187 </span> compare c, <span class="Constant">0xf0</span>
<span id="L188" class="LineNr">188 </span> <span class="Delimiter">{</span>
<span id="L189" class="LineNr">189 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L190" class="LineNr">190 </span> num-trailers <span class="SpecialChar">&lt;-</span> copy <span class="Constant">2</span>
<span id="L191" class="LineNr">191 </span> <span class="PreProc">break</span> $read-grapheme:compute-length
<span id="L192" class="LineNr">192 </span> <span class="Delimiter">}</span>
<span id="L193" class="LineNr">193 </span> <span class="Comment"># 4 bytes</span>
<span id="L194" class="LineNr">194 </span> compare c, <span class="Constant">0xf8</span>
<span id="L195" class="LineNr">195 </span> <span class="Delimiter">{</span>
<span id="L196" class="LineNr">196 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L197" class="LineNr">197 </span> num-trailers <span class="SpecialChar">&lt;-</span> copy <span class="Constant">3</span>
<span id="L198" class="LineNr">198 </span> <span class="PreProc">break</span> $read-grapheme:compute-length
<span id="L199" class="LineNr">199 </span> <span class="Delimiter">}</span>
<span id="L200" class="LineNr">200 </span>$read-grapheme:abort: <span class="Delimiter">{</span>
<span id="L201" class="LineNr">201 </span> <span class="Comment"># TODO: print to stderr</span>
<span id="L202" class="LineNr">202 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">&quot;utf-8 encodings larger than 4 bytes are not supported. First byte seen: &quot;</span>
<span id="L203" class="LineNr">203 </span> <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy c
<span id="L204" class="LineNr">204 </span> <a href='304screen.subx.html#L213'>print-int32-hex-to-real-screen</a> n
<span id="L205" class="LineNr">205 </span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> <span class="Constant">&quot;\n&quot;</span>
<span id="L206" class="LineNr">206 </span> <span class="PreProc">var</span> exit-status/<span class="Constant">ebx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">1</span>
<span id="L207" class="LineNr">207 </span> syscall_exit
<span id="L208" class="LineNr">208 </span> <span class="Delimiter">}</span>
<span id="L209" class="LineNr">209 </span> <span class="Delimiter">}</span>
<span id="L210" class="LineNr">210 </span> <span class="Comment"># prepend trailer bytes</span>
<span id="L211" class="LineNr">211 </span> <span class="PreProc">var</span> result/<span class="Constant">edi</span>: int <span class="SpecialChar">&lt;-</span> copy c
<span id="L212" class="LineNr">212 </span> <span class="PreProc">var</span> num-byte-shifts/<span class="Constant">edx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">1</span>
<span id="L213" class="LineNr">213 </span> <span class="Delimiter">{</span>
<span id="L214" class="LineNr">214 </span> compare num-trailers, <span class="Constant">0</span>
<span id="L215" class="LineNr">215 </span> <span class="PreProc">break-if-&lt;=</span>
<span id="L216" class="LineNr">216 </span> <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: byte <span class="SpecialChar">&lt;-</span> <a href='112read-byte.subx.html#L273'>read-byte</a> in
<span id="L217" class="LineNr">217 </span> <span class="PreProc">var</span> tmp2/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy tmp
<span id="L218" class="LineNr">218 </span> tmp2 <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L257'>shift-left-bytes</a> tmp2, num-byte-shifts
<span id="L219" class="LineNr">219 </span> result <span class="SpecialChar">&lt;-</span> or tmp2
<span id="L220" class="LineNr">220 </span> <span class="Comment"># update loop state</span>
<span id="L221" class="LineNr">221 </span> num-byte-shifts <span class="SpecialChar">&lt;-</span> increment
<span id="L222" class="LineNr">222 </span> num-trailers <span class="SpecialChar">&lt;-</span> decrement
<span id="L223" class="LineNr">223 </span> <span class="PreProc">loop</span>
<span id="L224" class="LineNr">224 </span> <span class="Delimiter">}</span>
<span id="L225" class="LineNr">225 </span> out <span class="SpecialChar">&lt;-</span> copy result
<span id="L226" class="LineNr">226 </span><span class="Delimiter">}</span>
<span id="L227" class="LineNr">227 </span><span class="Delimiter">}</span>
<span id="L228" class="LineNr">228 </span>
<span id="L229" class="LineNr">229 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L229'>test-read-grapheme</a></span> <span class="Delimiter">{</span>
<span id="L230" class="LineNr">230 </span> <span class="PreProc">var</span> s: (stream byte <span class="Constant">0x30</span>)
<span id="L231" class="LineNr">231 </span> <span class="PreProc">var</span> s2/<span class="Constant">ecx</span>: (addr stream byte) <span class="SpecialChar">&lt;-</span> address s
<span id="L232" class="LineNr">232 </span> <a href='108write.subx.html#L24'>write</a> s2, <span class="Constant">&quot;aΒc世d界e&quot;</span>
<span id="L233" class="LineNr">233 </span> <span class="PreProc">var</span> c/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L160'>read-grapheme</a> s2
<span id="L234" class="LineNr">234 </span> <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy c
<span id="L235" class="LineNr">235 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x61</span>, <span class="Constant">&quot;F - test grapheme/0&quot;</span>
<span id="L236" class="LineNr">236 </span> <span class="PreProc">var</span> c/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L160'>read-grapheme</a> s2
<span id="L237" class="LineNr">237 </span> <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy c
<span id="L238" class="LineNr">238 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x92ce</span>, <span class="Constant">&quot;F - test grapheme/1&quot;</span> <span class="Comment"># greek capital letter beta</span>
<span id="L239" class="LineNr">239 </span> <span class="PreProc">var</span> c/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L160'>read-grapheme</a> s2
<span id="L240" class="LineNr">240 </span> <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy c
<span id="L241" class="LineNr">241 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x63</span>, <span class="Constant">&quot;F - test grapheme/2&quot;</span>
<span id="L242" class="LineNr">242 </span> <span class="PreProc">var</span> c/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L160'>read-grapheme</a> s2
<span id="L243" class="LineNr">243 </span> <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy c
<span id="L244" class="LineNr">244 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x96b8e4</span>, <span class="Constant">&quot;F - test grapheme/3&quot;</span>
<span id="L245" class="LineNr">245 </span> <span class="PreProc">var</span> c/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L160'>read-grapheme</a> s2
<span id="L246" class="LineNr">246 </span> <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy c
<span id="L247" class="LineNr">247 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x64</span>, <span class="Constant">&quot;F - test grapheme/4&quot;</span>
<span id="L248" class="LineNr">248 </span> <span class="PreProc">var</span> c/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L160'>read-grapheme</a> s2
<span id="L249" class="LineNr">249 </span> <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy c
<span id="L250" class="LineNr">250 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x8c95e7</span>, <span class="Constant">&quot;F - test grapheme/5&quot;</span>
<span id="L251" class="LineNr">251 </span> <span class="PreProc">var</span> c/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L160'>read-grapheme</a> s2
<span id="L252" class="LineNr">252 </span> <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy c
<span id="L253" class="LineNr">253 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> n, <span class="Constant">0x65</span>, <span class="Constant">&quot;F - test grapheme/6&quot;</span>
<span id="L254" class="LineNr">254 </span><span class="Delimiter">}</span>
<span id="L255" class="LineNr">255 </span>
<span id="L256" class="LineNr">256 </span><span class="Comment"># needed because available primitives only shift by a literal/constant number of bits</span>
<span id="L257" class="LineNr">257 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='403unicode.mu.html#L257'>shift-left-bytes</a></span> n: int, k: int<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int <span class="Delimiter">{</span>
<span id="L258" class="LineNr">258 </span> <span class="PreProc">var</span> i/<span class="Constant">ecx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L259" class="LineNr">259 </span> result <span class="SpecialChar">&lt;-</span> copy n
<span id="L260" class="LineNr">260 </span> <span class="Delimiter">{</span>
<span id="L261" class="LineNr">261 </span> compare i, k
<span id="L262" class="LineNr">262 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L263" class="LineNr">263 </span> compare i, <span class="Constant">4</span> <span class="Comment"># only 4 bytes in 32 bits</span>
<span id="L264" class="LineNr">264 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L265" class="LineNr">265 </span> result <span class="SpecialChar">&lt;-</span> shift-left <span class="Constant">8</span>
<span id="L266" class="LineNr">266 </span> i <span class="SpecialChar">&lt;-</span> increment
<span id="L267" class="LineNr">267 </span> <span class="PreProc">loop</span>
<span id="L268" class="LineNr">268 </span> <span class="Delimiter">}</span>
<span id="L269" class="LineNr">269 </span><span class="Delimiter">}</span>
<span id="L270" class="LineNr">270 </span>
<span id="L271" class="LineNr">271 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L271'>test-shift-left-bytes-0</a></span> <span class="Delimiter">{</span>
<span id="L272" class="LineNr">272 </span> <span class="PreProc">var</span> result/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L257'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">0</span>
<span id="L273" class="LineNr">273 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">1</span>, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L257'>shift-left-bytes</a> 0&quot;</span>
<span id="L274" class="LineNr">274 </span><span class="Delimiter">}</span>
<span id="L275" class="LineNr">275 </span>
<span id="L276" class="LineNr">276 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L276'>test-shift-left-bytes-1</a></span> <span class="Delimiter">{</span>
<span id="L277" class="LineNr">277 </span> <span class="PreProc">var</span> result/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L257'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">1</span>
<span id="L278" class="LineNr">278 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">0x100</span>, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L257'>shift-left-bytes</a> 1&quot;</span>
<span id="L279" class="LineNr">279 </span><span class="Delimiter">}</span>
<span id="L280" class="LineNr">280 </span>
<span id="L281" class="LineNr">281 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L281'>test-shift-left-bytes-2</a></span> <span class="Delimiter">{</span>
<span id="L282" class="LineNr">282 </span> <span class="PreProc">var</span> result/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L257'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">2</span>
<span id="L283" class="LineNr">283 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">0x10000</span>, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L257'>shift-left-bytes</a> 2&quot;</span>
<span id="L284" class="LineNr">284 </span><span class="Delimiter">}</span>
<span id="L285" class="LineNr">285 </span>
<span id="L286" class="LineNr">286 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L286'>test-shift-left-bytes-3</a></span> <span class="Delimiter">{</span>
<span id="L287" class="LineNr">287 </span> <span class="PreProc">var</span> result/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L257'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">3</span>
<span id="L288" class="LineNr">288 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">0x1000000</span>, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L257'>shift-left-bytes</a> 3&quot;</span>
<span id="L289" class="LineNr">289 </span><span class="Delimiter">}</span>
<span id="L290" class="LineNr">290 </span>
<span id="L291" class="LineNr">291 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L291'>test-shift-left-bytes-4</a></span> <span class="Delimiter">{</span>
<span id="L292" class="LineNr">292 </span> <span class="PreProc">var</span> result/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L257'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">4</span>
<span id="L293" class="LineNr">293 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">0</span>, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L257'>shift-left-bytes</a> 4&quot;</span>
<span id="L294" class="LineNr">294 </span><span class="Delimiter">}</span>
<span id="L295" class="LineNr">295 </span>
<span id="L296" class="LineNr">296 </span><span class="PreProc">fn</span> <span class="muTest"><a href='403unicode.mu.html#L296'>test-shift-left-bytes-5</a></span> <span class="Delimiter">{</span>
<span id="L297" class="LineNr">297 </span> <span class="PreProc">var</span> result/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> <a href='403unicode.mu.html#L257'>shift-left-bytes</a> <span class="Constant">1</span>, <span class="Constant">5</span>
<span id="L298" class="LineNr">298 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> result, <span class="Constant">0</span>, <span class="Constant">&quot;F - <a href='403unicode.mu.html#L257'>shift-left-bytes</a> &gt;4&quot;</span>
<span id="L299" class="LineNr">299 </span><span class="Delimiter">}</span>
<span id="L300" class="LineNr">300 </span>
<span id="L301" class="LineNr">301 </span><span class="Comment"># To run all tests, uncomment this and run:</span>
<span id="L302" class="LineNr">302 </span><span class="Comment"># $ ./translate_mu &amp;&amp; ./a.elf</span>
<span id="L303" class="LineNr">303 </span><span class="CommentedCode">#? fn main -&gt; r/ebx: int {</span>
<span id="L304" class="LineNr">304 </span><span class="CommentedCode">#? run-tests</span>
<span id="L305" class="LineNr">305 </span><span class="CommentedCode">#? r &lt;- copy 0</span>
<span id="L306" class="LineNr">306 </span><span class="CommentedCode">#? }</span>
</pre>
</body>
</html>
<!-- vim: set foldmethod=manual : -->

26
html/404stream.mu.html generated
View File

@ -62,29 +62,29 @@ if ('onhashchange' in window) {
<span id="L4" class="LineNr"> 4 </span> <span class="Comment"># - write an int to a stream, then read it back</span>
<span id="L5" class="LineNr"> 5 </span> <span class="Comment"># step 1: initialize</span>
<span id="L6" class="LineNr"> 6 </span> <span class="PreProc">var</span> s: (stream int <span class="Constant">4</span>)
<span id="L7" class="LineNr"> 7 </span> <span class="PreProc">var</span> s2/<span class="Constant">ecx</span>: (addr stream int <span class="Constant">4</span>) <span class="SpecialChar">&lt;-</span> address s
<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: boolean <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L4'>stream-empty?</a> s2
<span id="L7" class="LineNr"> 7 </span> <span class="PreProc">var</span> s2/<span class="Constant">ecx</span>: (addr stream int) <span class="SpecialChar">&lt;-</span> address s
<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: boolean <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s2
<span id="L9" class="LineNr"> 9 </span> <a href='401test.mu.html#L3'>check-true</a> tmp, <span class="Constant">&quot;F - <a href='404stream.mu.html#L3'>test-stream</a>/empty?/0&quot;</span>
<span id="L10" class="LineNr">10 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L28'>stream-full?</a> s2
<span id="L10" class="LineNr">10 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L30'>stream-full?</a> s2
<span id="L11" class="LineNr">11 </span> <a href='401test.mu.html#L8'>check-false</a> tmp, <span class="Constant">&quot;F - <a href='404stream.mu.html#L3'>test-stream</a>/full?/0&quot;</span>
<span id="L12" class="LineNr">12 </span> <span class="Comment"># step 2: write to stream</span>
<span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> x: int
<span id="L14" class="LineNr">14 </span> copy-to x, <span class="Constant">0x34</span>
<span id="L15" class="LineNr">15 </span> <span class="PreProc">var</span> x2/<span class="Constant">edx</span>: (addr int) <span class="SpecialChar">&lt;-</span> address x
<span id="L16" class="LineNr">16 </span> <a href='309stream.subx.html#L52'>write-to-stream</a> s2, x2
<span id="L17" class="LineNr">17 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L4'>stream-empty?</a> s2
<span id="L16" class="LineNr">16 </span> <a href='309stream.subx.html#L54'>write-to-stream</a> s2, x2
<span id="L17" class="LineNr">17 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s2
<span id="L18" class="LineNr">18 </span> <a href='401test.mu.html#L8'>check-false</a> tmp, <span class="Constant">&quot;F - <a href='404stream.mu.html#L3'>test-stream</a>/empty?/1&quot;</span>
<span id="L19" class="LineNr">19 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L28'>stream-full?</a> s2
<span id="L19" class="LineNr">19 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L30'>stream-full?</a> s2
<span id="L20" class="LineNr">20 </span> <a href='401test.mu.html#L8'>check-false</a> tmp, <span class="Constant">&quot;F - <a href='404stream.mu.html#L3'>test-stream</a>/full?/1&quot;</span>
<span id="L21" class="LineNr">21 </span> <span class="Comment"># step 3: modify the value written (should make no difference)</span>
<span id="L22" class="LineNr">22 </span> copy-to x, <span class="Constant">0</span>
<span id="L23" class="LineNr">23 </span> <span class="Comment"># step 4: read back</span>
<span id="L24" class="LineNr">24 </span> <span class="PreProc">var</span> y: int
<span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> y2/<span class="Constant">ebx</span>: (addr int) <span class="SpecialChar">&lt;-</span> address y
<span id="L26" class="LineNr">26 </span> <a href='309stream.subx.html#L105'>read-from-stream</a> s2, y2
<span id="L27" class="LineNr">27 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L4'>stream-empty?</a> s2
<span id="L26" class="LineNr">26 </span> <a href='309stream.subx.html#L107'>read-from-stream</a> s2, y2
<span id="L27" class="LineNr">27 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s2
<span id="L28" class="LineNr">28 </span> <a href='401test.mu.html#L3'>check-true</a> tmp, <span class="Constant">&quot;F - <a href='404stream.mu.html#L3'>test-stream</a>/empty?/2&quot;</span>
<span id="L29" class="LineNr">29 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L28'>stream-full?</a> s2
<span id="L29" class="LineNr">29 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L30'>stream-full?</a> s2
<span id="L30" class="LineNr">30 </span> <a href='401test.mu.html#L8'>check-false</a> tmp, <span class="Constant">&quot;F - <a href='404stream.mu.html#L3'>test-stream</a>/full?/2&quot;</span>
<span id="L31" class="LineNr">31 </span> <span class="Comment"># we read back what was written</span>
<span id="L32" class="LineNr">32 </span> <a href='102test.subx.html#L23'>check-ints-equal</a> y, <span class="Constant">0x34</span>, <span class="Constant">&quot;F - test-stream&quot;</span>
@ -93,13 +93,13 @@ if ('onhashchange' in window) {
<span id="L35" class="LineNr">35 </span><span class="PreProc">fn</span> <span class="muTest"><a href='404stream.mu.html#L35'>test-stream-full</a></span> <span class="Delimiter">{</span>
<span id="L36" class="LineNr">36 </span> <span class="Comment"># write an int to a stream of capacity 1</span>
<span id="L37" class="LineNr">37 </span> <span class="PreProc">var</span> s: (stream int <span class="Constant">1</span>)
<span id="L38" class="LineNr">38 </span> <span class="PreProc">var</span> s2/<span class="Constant">ecx</span>: (addr stream int <span class="Constant">1</span>) <span class="SpecialChar">&lt;-</span> address s
<span id="L39" class="LineNr">39 </span> <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: boolean <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L28'>stream-full?</a> s2
<span id="L38" class="LineNr">38 </span> <span class="PreProc">var</span> s2/<span class="Constant">ecx</span>: (addr stream int) <span class="SpecialChar">&lt;-</span> address s
<span id="L39" class="LineNr">39 </span> <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: boolean <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L30'>stream-full?</a> s2
<span id="L40" class="LineNr">40 </span> <a href='401test.mu.html#L8'>check-false</a> tmp, <span class="Constant">&quot;F - test-stream-full?/pre&quot;</span>
<span id="L41" class="LineNr">41 </span> <span class="PreProc">var</span> x: int
<span id="L42" class="LineNr">42 </span> <span class="PreProc">var</span> x2/<span class="Constant">edx</span>: (addr int) <span class="SpecialChar">&lt;-</span> address x
<span id="L43" class="LineNr">43 </span> <a href='309stream.subx.html#L52'>write-to-stream</a> s2, x2
<span id="L44" class="LineNr">44 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L28'>stream-full?</a> s2
<span id="L43" class="LineNr">43 </span> <a href='309stream.subx.html#L54'>write-to-stream</a> s2, x2
<span id="L44" class="LineNr">44 </span> tmp <span class="SpecialChar">&lt;-</span> <a href='309stream.subx.html#L30'>stream-full?</a> s2
<span id="L45" class="LineNr">45 </span> <a href='401test.mu.html#L3'>check-true</a> tmp, <span class="Constant">&quot;F - test-stream-full?&quot;</span>
<span id="L46" class="LineNr">46 </span><span class="Delimiter">}</span>
</pre>

1487
html/405screen.mu.html generated

File diff suppressed because it is too large Load Diff

View File

@ -94,19 +94,19 @@ if ('onhashchange' in window) {
<span id="L35" class="LineNr"> 35 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='arith.mu.html#L35'>main</a></span><span class="PreProc"> -&gt; </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span>
<span id="L36" class="LineNr"> 36 </span> <span class="PreProc">var</span> look/<span class="Constant">esi</span>: byte <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span> <span class="Comment"># lookahead</span>
<span id="L37" class="LineNr"> 37 </span> <span class="PreProc">var</span> n/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span> <span class="Comment"># result of each expression</span>
<span id="L38" class="LineNr"> 38 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;press ctrl-c or ctrl-d to exit\n&quot;</span>
<span id="L38" class="LineNr"> 38 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;press ctrl-c or ctrl-d to exit\n&quot;</span>
<span id="L39" class="LineNr"> 39 </span> <span class="Comment"># read-eval-print loop</span>
<span id="L40" class="LineNr"> 40 </span> <span class="Delimiter">{</span>
<span id="L41" class="LineNr"> 41 </span> <span class="Comment"># print prompt</span>
<span id="L42" class="LineNr"> 42 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;&gt; &quot;</span>
<span id="L42" class="LineNr"> 42 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;&gt; &quot;</span>
<span id="L43" class="LineNr"> 43 </span> <span class="Comment"># read and eval</span>
<span id="L44" class="LineNr"> 44 </span> n, look <span class="SpecialChar">&lt;-</span> <a href='arith.mu.html#L57'>simplify</a> <span class="Comment"># we explicitly thread 'look' everywhere</span>
<span id="L45" class="LineNr"> 45 </span> <span class="Comment"># if (look == 0) break</span>
<span id="L46" class="LineNr"> 46 </span> compare look, <span class="Constant">0</span>
<span id="L47" class="LineNr"> 47 </span> <span class="PreProc">break-if-=</span>
<span id="L48" class="LineNr"> 48 </span> <span class="Comment"># print</span>
<span id="L49" class="LineNr"> 49 </span> <a href='../405screen.mu.html#L169'>print-int32-hex</a> <span class="Constant">0</span>, n
<span id="L50" class="LineNr"> 50 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;\n&quot;</span>
<span id="L49" class="LineNr"> 49 </span> <a href='../405screen.mu.html#L427'>print-int32-hex</a> <span class="Constant">0</span>, n
<span id="L50" class="LineNr"> 50 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;\n&quot;</span>
<span id="L51" class="LineNr"> 51 </span> <span class="Comment">#</span>
<span id="L52" class="LineNr"> 52 </span> <span class="PreProc">loop</span>
<span id="L53" class="LineNr"> 53 </span> <span class="Delimiter">}</span>
@ -308,7 +308,7 @@ if ('onhashchange' in window) {
<span id="L249" class="LineNr">249 </span> compare look, <span class="Constant">0</span>
<span id="L250" class="LineNr">250 </span> <span class="Delimiter">{</span>
<span id="L251" class="LineNr">251 </span> <span class="PreProc">break-if-!=</span>
<span id="L252" class="LineNr">252 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;^D\n&quot;</span>
<span id="L252" class="LineNr">252 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;^D\n&quot;</span>
<span id="L253" class="LineNr">253 </span> syscall_exit
<span id="L254" class="LineNr">254 </span> <span class="Delimiter">}</span>
<span id="L255" class="LineNr">255 </span><span class="Delimiter">}</span>

View File

@ -208,7 +208,7 @@ if ('onhashchange' in window) {
<span id="L162" class="LineNr"> 162 </span> <span class="subxComment"># setup</span>
<span id="L163" class="LineNr"> 163 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L164" class="LineNr"> 164 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L165" class="LineNr"> 165 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L165" class="LineNr"> 165 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L166" class="LineNr"> 166 </span> <span class="subxS2Comment"># . . call</span>
<span id="L167" class="LineNr"> 167 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L168" class="LineNr"> 168 </span> <span class="subxS2Comment"># . . discard args</span>
@ -252,7 +252,7 @@ if ('onhashchange' in window) {
<span id="L206" class="LineNr"> 206 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;# comment 1\n&quot;)</span>
<span id="L207" class="LineNr"> 207 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L208" class="LineNr"> 208 </span> 68/push <span class="Constant">&quot;# comment 1\n&quot;</span>/imm32
<span id="L209" class="LineNr"> 209 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L209" class="LineNr"> 209 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L210" class="LineNr"> 210 </span> <span class="subxS2Comment"># . . call</span>
<span id="L211" class="LineNr"> 211 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L212" class="LineNr"> 212 </span> <span class="subxS2Comment"># . . discard args</span>
@ -260,7 +260,7 @@ if ('onhashchange' in window) {
<span id="L214" class="LineNr"> 214 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot; # comment 2 indented\n&quot;)</span>
<span id="L215" class="LineNr"> 215 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L216" class="LineNr"> 216 </span> 68/push <span class="Constant">&quot; # comment 2 indented\n&quot;</span>/imm32
<span id="L217" class="LineNr"> 217 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L217" class="LineNr"> 217 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L218" class="LineNr"> 218 </span> <span class="subxS2Comment"># . . call</span>
<span id="L219" class="LineNr"> 219 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L220" class="LineNr"> 220 </span> <span class="subxS2Comment"># . . discard args</span>
@ -268,7 +268,7 @@ if ('onhashchange' in window) {
<span id="L222" class="LineNr"> 222 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== code 0x09000000\n&quot;)</span>
<span id="L223" class="LineNr"> 223 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L224" class="LineNr"> 224 </span> 68/push <span class="Constant">&quot;== code 0x09000000\n&quot;</span>/imm32
<span id="L225" class="LineNr"> 225 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L225" class="LineNr"> 225 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L226" class="LineNr"> 226 </span> <span class="subxS2Comment"># . . call</span>
<span id="L227" class="LineNr"> 227 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L228" class="LineNr"> 228 </span> <span class="subxS2Comment"># . . discard args</span>
@ -276,7 +276,7 @@ if ('onhashchange' in window) {
<span id="L230" class="LineNr"> 230 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;# comment 3 inside a segment\n&quot;)</span>
<span id="L231" class="LineNr"> 231 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L232" class="LineNr"> 232 </span> 68/push <span class="Constant">&quot;# comment 3 inside a segment\n&quot;</span>/imm32
<span id="L233" class="LineNr"> 233 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L233" class="LineNr"> 233 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L234" class="LineNr"> 234 </span> <span class="subxS2Comment"># . . call</span>
<span id="L235" class="LineNr"> 235 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L236" class="LineNr"> 236 </span> <span class="subxS2Comment"># . . discard args</span>
@ -284,7 +284,7 @@ if ('onhashchange' in window) {
<span id="L238" class="LineNr"> 238 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;1\n&quot;)</span>
<span id="L239" class="LineNr"> 239 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L240" class="LineNr"> 240 </span> 68/push <span class="Constant">&quot;1\n&quot;</span>/imm32
<span id="L241" class="LineNr"> 241 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L241" class="LineNr"> 241 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L242" class="LineNr"> 242 </span> <span class="subxS2Comment"># . . call</span>
<span id="L243" class="LineNr"> 243 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L244" class="LineNr"> 244 </span> <span class="subxS2Comment"># . . discard args</span>
@ -292,7 +292,7 @@ if ('onhashchange' in window) {
<span id="L246" class="LineNr"> 246 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;\n&quot;) # empty line</span>
<span id="L247" class="LineNr"> 247 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L248" class="LineNr"> 248 </span> 68/push <span class="SpecialChar"><a href='../102test.subx.html#L82'>Newline</a></span>/imm32
<span id="L249" class="LineNr"> 249 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L249" class="LineNr"> 249 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L250" class="LineNr"> 250 </span> <span class="subxS2Comment"># . . call</span>
<span id="L251" class="LineNr"> 251 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L252" class="LineNr"> 252 </span> <span class="subxS2Comment"># . . discard args</span>
@ -300,7 +300,7 @@ if ('onhashchange' in window) {
<span id="L254" class="LineNr"> 254 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;2 3 # comment 4 inline with other contents\n&quot;)</span>
<span id="L255" class="LineNr"> 255 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L256" class="LineNr"> 256 </span> 68/push <span class="Constant">&quot;2 3 # comment 4 inline with other contents\n&quot;</span>/imm32
<span id="L257" class="LineNr"> 257 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L257" class="LineNr"> 257 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L258" class="LineNr"> 258 </span> <span class="subxS2Comment"># . . call</span>
<span id="L259" class="LineNr"> 259 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L260" class="LineNr"> 260 </span> <span class="subxS2Comment"># . . discard args</span>
@ -308,7 +308,7 @@ if ('onhashchange' in window) {
<span id="L262" class="LineNr"> 262 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== data 0x0a000000\n&quot;)</span>
<span id="L263" class="LineNr"> 263 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L264" class="LineNr"> 264 </span> 68/push <span class="Constant">&quot;== data 0x0a000000\n&quot;</span>/imm32
<span id="L265" class="LineNr"> 265 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L265" class="LineNr"> 265 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L266" class="LineNr"> 266 </span> <span class="subxS2Comment"># . . call</span>
<span id="L267" class="LineNr"> 267 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L268" class="LineNr"> 268 </span> <span class="subxS2Comment"># . . discard args</span>
@ -316,7 +316,7 @@ if ('onhashchange' in window) {
<span id="L270" class="LineNr"> 270 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;4 5/imm32\n&quot;)</span>
<span id="L271" class="LineNr"> 271 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L272" class="LineNr"> 272 </span> 68/push <span class="Constant">&quot;4 5/imm32\n&quot;</span>/imm32
<span id="L273" class="LineNr"> 273 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L273" class="LineNr"> 273 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L274" class="LineNr"> 274 </span> <span class="subxS2Comment"># . . call</span>
<span id="L275" class="LineNr"> 275 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L276" class="LineNr"> 276 </span> <span class="subxS2Comment"># . . discard args</span>
@ -324,7 +324,7 @@ if ('onhashchange' in window) {
<span id="L278" class="LineNr"> 278 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== code\n&quot;)</span>
<span id="L279" class="LineNr"> 279 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L280" class="LineNr"> 280 </span> 68/push <span class="Constant">&quot;== code\n&quot;</span>/imm32
<span id="L281" class="LineNr"> 281 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L281" class="LineNr"> 281 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L282" class="LineNr"> 282 </span> <span class="subxS2Comment"># . . call</span>
<span id="L283" class="LineNr"> 283 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L284" class="LineNr"> 284 </span> <span class="subxS2Comment"># . . discard args</span>
@ -332,7 +332,7 @@ if ('onhashchange' in window) {
<span id="L286" class="LineNr"> 286 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;6 7\n&quot;)</span>
<span id="L287" class="LineNr"> 287 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L288" class="LineNr"> 288 </span> 68/push <span class="Constant">&quot;6 7\n&quot;</span>/imm32
<span id="L289" class="LineNr"> 289 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L289" class="LineNr"> 289 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L290" class="LineNr"> 290 </span> <span class="subxS2Comment"># . . call</span>
<span id="L291" class="LineNr"> 291 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L292" class="LineNr"> 292 </span> <span class="subxS2Comment"># . . discard args</span>
@ -340,7 +340,7 @@ if ('onhashchange' in window) {
<span id="L294" class="LineNr"> 294 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;8 9\n&quot;)</span>
<span id="L295" class="LineNr"> 295 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L296" class="LineNr"> 296 </span> 68/push <span class="Constant">&quot;8 9\n&quot;</span>/imm32
<span id="L297" class="LineNr"> 297 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L297" class="LineNr"> 297 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L298" class="LineNr"> 298 </span> <span class="subxS2Comment"># . . call</span>
<span id="L299" class="LineNr"> 299 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L300" class="LineNr"> 300 </span> <span class="subxS2Comment"># . . discard args</span>
@ -348,7 +348,7 @@ if ('onhashchange' in window) {
<span id="L302" class="LineNr"> 302 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== code\n&quot;)</span>
<span id="L303" class="LineNr"> 303 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L304" class="LineNr"> 304 </span> 68/push <span class="Constant">&quot;== code\n&quot;</span>/imm32
<span id="L305" class="LineNr"> 305 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L305" class="LineNr"> 305 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L306" class="LineNr"> 306 </span> <span class="subxS2Comment"># . . call</span>
<span id="L307" class="LineNr"> 307 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L308" class="LineNr"> 308 </span> <span class="subxS2Comment"># . . discard args</span>
@ -356,7 +356,7 @@ if ('onhashchange' in window) {
<span id="L310" class="LineNr"> 310 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;10 11\n&quot;)</span>
<span id="L311" class="LineNr"> 311 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L312" class="LineNr"> 312 </span> 68/push <span class="Constant">&quot;10 11\n&quot;</span>/imm32
<span id="L313" class="LineNr"> 313 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L313" class="LineNr"> 313 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L314" class="LineNr"> 314 </span> <span class="subxS2Comment"># . . call</span>
<span id="L315" class="LineNr"> 315 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L316" class="LineNr"> 316 </span> <span class="subxS2Comment"># . . discard args</span>
@ -364,7 +364,7 @@ if ('onhashchange' in window) {
<span id="L318" class="LineNr"> 318 </span> <span class="subxComment"># subx-assort(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L319" class="LineNr"> 319 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L320" class="LineNr"> 320 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L321" class="LineNr"> 321 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L321" class="LineNr"> 321 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L322" class="LineNr"> 322 </span> <span class="subxS2Comment"># . . call</span>
<span id="L323" class="LineNr"> 323 </span> e8/call <a href='assort.subx.html#L88'>subx-assort</a>/disp32
<span id="L324" class="LineNr"> 324 </span> <span class="subxS2Comment"># . . discard args</span>

View File

@ -319,13 +319,13 @@ if ('onhashchange' in window) {
<span id="L260" class="LineNr">260 </span> 55/push-ebp
<span id="L261" class="LineNr">261 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L262" class="LineNr">262 </span> <span class="subxComment"># setup</span>
<span id="L263" class="LineNr">263 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>)
<span id="L263" class="LineNr">263 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>)
<span id="L264" class="LineNr">264 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> <a href='../115write-byte.subx.html#L285'>_test-output-stream</a>)
<span id="L265" class="LineNr">265 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> $_test-input-buffered-file-&gt;buffer)
<span id="L266" class="LineNr">266 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> $_test-output-buffered-file-&gt;buffer)
<span id="L267" class="LineNr">267 </span> <span class="subxComment"># test</span>
<span id="L268" class="LineNr">268 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">&quot;== abcd 0x1&quot;</span>)
<span id="L269" class="LineNr">269 </span> (<a href='braces.subx.html#L77'>subx-braces</a> <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a> <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>)
<span id="L268" class="LineNr">268 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a> <span class="Constant">&quot;== abcd 0x1&quot;</span>)
<span id="L269" class="LineNr">269 </span> (<a href='braces.subx.html#L77'>subx-braces</a> <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a> <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>)
<span id="L270" class="LineNr">270 </span> <span class="subxComment"># check that the line just passed through</span>
<span id="L271" class="LineNr">271 </span> (<a href='../115write-byte.subx.html#L81'>flush</a> <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>)
<span id="L272" class="Folded">272 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span>
@ -352,13 +352,13 @@ if ('onhashchange' in window) {
<span id="L297" class="LineNr">297 </span> 55/push-ebp
<span id="L298" class="LineNr">298 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L299" class="LineNr">299 </span> <span class="subxComment"># setup</span>
<span id="L300" class="LineNr">300 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>)
<span id="L300" class="LineNr">300 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>)
<span id="L301" class="LineNr">301 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> <a href='../115write-byte.subx.html#L285'>_test-output-stream</a>)
<span id="L302" class="LineNr">302 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> $_test-input-buffered-file-&gt;buffer)
<span id="L303" class="LineNr">303 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> $_test-output-buffered-file-&gt;buffer)
<span id="L304" class="LineNr">304 </span> <span class="subxComment"># test</span>
<span id="L305" class="LineNr">305 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">&quot;{\nab break/imm32\ncd loop/imm32\n}&quot;</span>)
<span id="L306" class="LineNr">306 </span> (<a href='braces.subx.html#L77'>subx-braces</a> <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a> <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>)
<span id="L305" class="LineNr">305 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a> <span class="Constant">&quot;{\nab break/imm32\ncd loop/imm32\n}&quot;</span>)
<span id="L306" class="LineNr">306 </span> (<a href='braces.subx.html#L77'>subx-braces</a> <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a> <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>)
<span id="L307" class="LineNr">307 </span> <span class="subxComment"># check that the line just passed through</span>
<span id="L308" class="LineNr">308 </span> (<a href='../115write-byte.subx.html#L81'>flush</a> <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>)
<span id="L309" class="Folded">309 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span>
@ -389,13 +389,13 @@ if ('onhashchange' in window) {
<span id="L338" class="LineNr">338 </span> 55/push-ebp
<span id="L339" class="LineNr">339 </span> 89/&lt;- %ebp 4/r32/esp
<span id="L340" class="LineNr">340 </span> <span class="subxComment"># setup</span>
<span id="L341" class="LineNr">341 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>)
<span id="L341" class="LineNr">341 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>)
<span id="L342" class="LineNr">342 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> <a href='../115write-byte.subx.html#L285'>_test-output-stream</a>)
<span id="L343" class="LineNr">343 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> $_test-input-buffered-file-&gt;buffer)
<span id="L344" class="LineNr">344 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> $_test-output-buffered-file-&gt;buffer)
<span id="L345" class="LineNr">345 </span> <span class="subxComment"># test</span>
<span id="L346" class="LineNr">346 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a> <span class="Constant">&quot;{\n{\nab break/imm32\n}\ncd loop/imm32\n}&quot;</span>)
<span id="L347" class="LineNr">347 </span> (<a href='braces.subx.html#L77'>subx-braces</a> <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a> <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>)
<span id="L346" class="LineNr">346 </span> (<a href='../108write.subx.html#L24'>write</a> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a> <span class="Constant">&quot;{\n{\nab break/imm32\n}\ncd loop/imm32\n}&quot;</span>)
<span id="L347" class="LineNr">347 </span> (<a href='braces.subx.html#L77'>subx-braces</a> <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a> <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>)
<span id="L348" class="LineNr">348 </span> <span class="subxComment"># check that the line just passed through</span>
<span id="L349" class="LineNr">349 </span> (<a href='../115write-byte.subx.html#L81'>flush</a> <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>)
<span id="L350" class="Folded">350 </span><span class="Folded">+-- 5 lines: #? # dump _test-output-stream -----------------------------------------------------------------------------------------------------------------------------------------</span>

View File

@ -70,7 +70,7 @@ if ('onhashchange' in window) {
<span id="L30" class="LineNr"> 30 </span> <a href='../304screen.subx.html#L6'>enable-screen-grid-mode</a>
<span id="L31" class="LineNr"> 31 </span> <span class="PreProc">var</span> nrows/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L32" class="LineNr"> 32 </span> <span class="PreProc">var</span> ncols/<span class="Constant">ecx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L33" class="LineNr"> 33 </span> nrows, ncols <span class="SpecialChar">&lt;-</span> <a href='../405screen.mu.html#L54'>screen-size</a> <span class="Constant">0</span>
<span id="L33" class="LineNr"> 33 </span> nrows, ncols <span class="SpecialChar">&lt;-</span> <a href='../405screen.mu.html#L60'>screen-size</a> <span class="Constant">0</span>
<span id="L34" class="LineNr"> 34 </span> <a href='../305keyboard.subx.html#L6'>enable-keyboard-immediate-mode</a>
<span id="L35" class="LineNr"> 35 </span> <span class="Delimiter">{</span>
<span id="L36" class="LineNr"> 36 </span> <a href='browse.mu.html#L51'>render</a> file, nrows, ncols
@ -105,7 +105,7 @@ if ('onhashchange' in window) {
<span id="L65" class="LineNr"> 65 </span> <span class="PreProc">var</span> leftcol/<span class="Constant">edx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">5</span> <span class="Comment"># page-margin</span>
<span id="L66" class="LineNr"> 66 </span> <span class="PreProc">var</span> rightcol/<span class="Constant">ebx</span>: int <span class="SpecialChar">&lt;-</span> copy leftcol
<span id="L67" class="LineNr"> 67 </span> rightcol <span class="SpecialChar">&lt;-</span> add <span class="Constant">0x40</span> <span class="Comment"># page-width = 64 characters</span>
<span id="L68" class="LineNr"> 68 </span> <a href='../405screen.mu.html#L199'>start-color</a> <span class="Constant">0</span>, <span class="Constant">0xec</span>, <span class="Constant">7</span> <span class="Comment"># 236 = darkish gray</span>
<span id="L68" class="LineNr"> 68 </span> <a href='../405screen.mu.html#L464'>start-color</a> <span class="Constant">0</span>, <span class="Constant">0xec</span>, <span class="Constant">7</span> <span class="Comment"># 236 = darkish gray</span>
<span id="L69" class="LineNr"> 69 </span> <span class="Delimiter">{</span>
<span id="L70" class="LineNr"> 70 </span> compare rightcol, ncols
<span id="L71" class="LineNr"> 71 </span> <span class="PreProc">break-if-&gt;=</span>
@ -126,7 +126,7 @@ if ('onhashchange' in window) {
<span id="L86" class="LineNr"> 86 </span> compare row, botrow
<span id="L87" class="LineNr"> 87 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L88" class="LineNr"> 88 </span> <span class="PreProc">var</span> col/<span class="Constant">edx</span>: int <span class="SpecialChar">&lt;-</span> copy leftcol
<span id="L89" class="LineNr"> 89 </span> <a href='../405screen.mu.html#L110'>move-cursor</a> <span class="Constant">0</span>, row, col
<span id="L89" class="LineNr"> 89 </span> <a href='../405screen.mu.html#L116'>move-cursor</a> <span class="Constant">0</span>, row, col
<span id="L90" class="LineNr"> 90 </span> <span class="Delimiter">{</span>
<span id="L91" class="LineNr"> 91 </span> compare col, rightcol
<span id="L92" class="LineNr"> 92 </span> <span class="PreProc">break-if-&gt;=</span>
@ -137,7 +137,7 @@ if ('onhashchange' in window) {
<span id="L97" class="LineNr"> 97 </span> compare c, <span class="Constant">0xa</span> <span class="Comment"># newline</span>
<span id="L98" class="LineNr"> 98 </span> <span class="PreProc">break-if-=</span> <span class="Comment"># no need to print newlines</span>
<span id="L99" class="LineNr"> 99 </span> <span class="PreProc">var</span> g/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> copy c
<span id="L100" class="LineNr">100 </span> <a href='../405screen.mu.html#L149'>print-grapheme</a> <span class="Constant">0</span>, g
<span id="L100" class="LineNr">100 </span> <a href='../405screen.mu.html#L206'>print-grapheme</a> <span class="Constant">0</span>, g
<span id="L101" class="LineNr">101 </span> col <span class="SpecialChar">&lt;-</span> increment
<span id="L102" class="LineNr">102 </span> <span class="PreProc">loop</span>
<span id="L103" class="LineNr">103 </span> <span class="Delimiter">}</span>
@ -157,7 +157,7 @@ if ('onhashchange' in window) {
<span id="L117" class="LineNr">117 </span> <span class="Delimiter">{</span>
<span id="L118" class="LineNr">118 </span> <span class="PreProc">break-if-!=</span>
<span id="L119" class="LineNr">119 </span> <span class="Comment"># r-&gt;current-state == 0 &amp;&amp; c == '*'</span>
<span id="L120" class="LineNr">120 </span> <a href='../405screen.mu.html#L214'>start-bold</a> <span class="Constant">0</span>
<span id="L120" class="LineNr">120 </span> <a href='../405screen.mu.html#L487'>start-bold</a> <span class="Constant">0</span>
<span id="L121" class="LineNr">121 </span> copy-to *state, <span class="Constant">1</span>
<span id="L122" class="LineNr">122 </span> <span class="PreProc">break</span> $update-attributes:check-state
<span id="L123" class="LineNr">123 </span> <span class="Delimiter">}</span>
@ -165,7 +165,7 @@ if ('onhashchange' in window) {
<span id="L125" class="LineNr">125 </span> <span class="Delimiter">{</span>
<span id="L126" class="LineNr">126 </span> <span class="PreProc">break-if-!=</span>
<span id="L127" class="LineNr">127 </span> <span class="Comment"># r-&gt;current-state == 0 &amp;&amp; c == '_'</span>
<span id="L128" class="LineNr">128 </span> <a href='../405screen.mu.html#L214'>start-bold</a> <span class="Constant">0</span>
<span id="L128" class="LineNr">128 </span> <a href='../405screen.mu.html#L487'>start-bold</a> <span class="Constant">0</span>
<span id="L129" class="LineNr">129 </span> copy-to *state, <span class="Constant">1</span>
<span id="L130" class="LineNr">130 </span> <span class="PreProc">break</span> $update-attributes:check-state
<span id="L131" class="LineNr">131 </span> <span class="Delimiter">}</span>
@ -177,7 +177,7 @@ if ('onhashchange' in window) {
<span id="L137" class="LineNr">137 </span> <span class="Delimiter">{</span>
<span id="L138" class="LineNr">138 </span> <span class="PreProc">break-if-!=</span>
<span id="L139" class="LineNr">139 </span> <span class="Comment"># r-&gt;current-state == 1 &amp;&amp; c == '*'</span>
<span id="L140" class="LineNr">140 </span> <a href='../405screen.mu.html#L184'>reset-formatting</a> <span class="Constant">0</span>
<span id="L140" class="LineNr">140 </span> <a href='../405screen.mu.html#L442'>reset-formatting</a> <span class="Constant">0</span>
<span id="L141" class="LineNr">141 </span> copy-to *state, <span class="Constant">0</span>
<span id="L142" class="LineNr">142 </span> <span class="PreProc">break</span> $update-attributes:check-state
<span id="L143" class="LineNr">143 </span> <span class="Delimiter">}</span>
@ -185,7 +185,7 @@ if ('onhashchange' in window) {
<span id="L145" class="LineNr">145 </span> <span class="Delimiter">{</span>
<span id="L146" class="LineNr">146 </span> <span class="PreProc">break-if-!=</span>
<span id="L147" class="LineNr">147 </span> <span class="Comment"># r-&gt;current-state == 1 &amp;&amp; c == '_'</span>
<span id="L148" class="LineNr">148 </span> <a href='../405screen.mu.html#L184'>reset-formatting</a> <span class="Constant">0</span>
<span id="L148" class="LineNr">148 </span> <a href='../405screen.mu.html#L442'>reset-formatting</a> <span class="Constant">0</span>
<span id="L149" class="LineNr">149 </span> copy-to *state, <span class="Constant">0</span>
<span id="L150" class="LineNr">150 </span> <span class="PreProc">break</span> $update-attributes:check-state
<span id="L151" class="LineNr">151 </span> <span class="Delimiter">}</span>
@ -200,11 +200,11 @@ if ('onhashchange' in window) {
<span id="L160" class="LineNr">160 </span> compare row, botrow
<span id="L161" class="LineNr">161 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L162" class="LineNr">162 </span> <span class="PreProc">var</span> col/<span class="Constant">edx</span>: int <span class="SpecialChar">&lt;-</span> copy leftcol
<span id="L163" class="LineNr">163 </span> <a href='../405screen.mu.html#L110'>move-cursor</a> <span class="Constant">0</span>, row, col
<span id="L163" class="LineNr">163 </span> <a href='../405screen.mu.html#L116'>move-cursor</a> <span class="Constant">0</span>, row, col
<span id="L164" class="LineNr">164 </span> <span class="Delimiter">{</span>
<span id="L165" class="LineNr">165 </span> compare col, rightcol
<span id="L166" class="LineNr">166 </span> <span class="PreProc">break-if-&gt;=</span>
<span id="L167" class="LineNr">167 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot; &quot;</span>
<span id="L167" class="LineNr">167 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot; &quot;</span>
<span id="L168" class="LineNr">168 </span> col <span class="SpecialChar">&lt;-</span> increment
<span id="L169" class="LineNr">169 </span> <span class="PreProc">loop</span>
<span id="L170" class="LineNr">170 </span> <span class="Delimiter">}</span>
@ -218,7 +218,7 @@ if ('onhashchange' in window) {
<span id="L178" class="LineNr">178 </span> compare c, <span class="Constant">0xffffffff</span> <span class="Comment"># EOF marker</span>
<span id="L179" class="LineNr">179 </span> <span class="PreProc">break-if-=</span>
<span id="L180" class="LineNr">180 </span> <span class="PreProc">var</span> g/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> copy c
<span id="L181" class="LineNr">181 </span> <a href='../405screen.mu.html#L149'>print-grapheme</a> <span class="Constant">0</span>, g
<span id="L181" class="LineNr">181 </span> <a href='../405screen.mu.html#L206'>print-grapheme</a> <span class="Constant">0</span>, g
<span id="L182" class="LineNr">182 </span> <span class="PreProc">loop</span>
<span id="L183" class="LineNr">183 </span><span class="Delimiter">}</span>
</pre>

View File

@ -567,7 +567,7 @@ if ('onhashchange' in window) {
<span id="L545" class="LineNr"> 545 </span> <span class="subxComment"># setup</span>
<span id="L546" class="LineNr"> 546 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L547" class="LineNr"> 547 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L548" class="LineNr"> 548 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L548" class="LineNr"> 548 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L549" class="LineNr"> 549 </span> <span class="subxS2Comment"># . . call</span>
<span id="L550" class="LineNr"> 550 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L551" class="LineNr"> 551 </span> <span class="subxS2Comment"># . . discard args</span>
@ -596,7 +596,7 @@ if ('onhashchange' in window) {
<span id="L574" class="LineNr"> 574 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== abcd 0x1\n&quot;)</span>
<span id="L575" class="LineNr"> 575 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L576" class="LineNr"> 576 </span> 68/push <span class="Constant">&quot;== abcd 0x1\n&quot;</span>/imm32
<span id="L577" class="LineNr"> 577 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L577" class="LineNr"> 577 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L578" class="LineNr"> 578 </span> <span class="subxS2Comment"># . . call</span>
<span id="L579" class="LineNr"> 579 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L580" class="LineNr"> 580 </span> <span class="subxS2Comment"># . . discard args</span>
@ -604,7 +604,7 @@ if ('onhashchange' in window) {
<span id="L582" class="LineNr"> 582 </span> <span class="subxComment"># subx-calls(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L583" class="LineNr"> 583 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L584" class="LineNr"> 584 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L585" class="LineNr"> 585 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L585" class="LineNr"> 585 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L586" class="LineNr"> 586 </span> <span class="subxS2Comment"># . . call</span>
<span id="L587" class="LineNr"> 587 </span> e8/call <a href='calls.subx.html#L77'>subx-calls</a>/disp32
<span id="L588" class="LineNr"> 588 </span> <span class="subxS2Comment"># . . discard args</span>
@ -638,7 +638,7 @@ if ('onhashchange' in window) {
<span id="L616" class="LineNr"> 616 </span> <span class="subxComment"># setup</span>
<span id="L617" class="LineNr"> 617 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L618" class="LineNr"> 618 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L619" class="LineNr"> 619 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L619" class="LineNr"> 619 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L620" class="LineNr"> 620 </span> <span class="subxS2Comment"># . . call</span>
<span id="L621" class="LineNr"> 621 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L622" class="LineNr"> 622 </span> <span class="subxS2Comment"># . . discard args</span>
@ -667,7 +667,7 @@ if ('onhashchange' in window) {
<span id="L645" class="LineNr"> 645 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;(foo %eax)\n&quot;)</span>
<span id="L646" class="LineNr"> 646 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L647" class="LineNr"> 647 </span> 68/push <span class="Constant">&quot;(foo %eax)\n&quot;</span>/imm32
<span id="L648" class="LineNr"> 648 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L648" class="LineNr"> 648 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L649" class="LineNr"> 649 </span> <span class="subxS2Comment"># . . call</span>
<span id="L650" class="LineNr"> 650 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L651" class="LineNr"> 651 </span> <span class="subxS2Comment"># . . discard args</span>
@ -675,7 +675,7 @@ if ('onhashchange' in window) {
<span id="L653" class="LineNr"> 653 </span> <span class="subxComment"># subx-calls(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L654" class="LineNr"> 654 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L655" class="LineNr"> 655 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L656" class="LineNr"> 656 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L656" class="LineNr"> 656 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L657" class="LineNr"> 657 </span> <span class="subxS2Comment"># . . call</span>
<span id="L658" class="LineNr"> 658 </span> e8/call <a href='calls.subx.html#L77'>subx-calls</a>/disp32
<span id="L659" class="LineNr"> 659 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1208,7 +1208,7 @@ if ('onhashchange' in window) {
<span id="L1218" class="LineNr">1218 </span> <span class="subxComment"># setup</span>
<span id="L1219" class="LineNr">1219 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1220" class="LineNr">1220 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1221" class="LineNr">1221 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1221" class="LineNr">1221 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1222" class="LineNr">1222 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1223" class="LineNr">1223 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1224" class="LineNr">1224 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1220,7 +1220,7 @@ if ('onhashchange' in window) {
<span id="L1230" class="LineNr">1230 </span> <span class="subxComment"># write(_test-input-stream, &quot; ab&quot;)</span>
<span id="L1231" class="LineNr">1231 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1232" class="LineNr">1232 </span> 68/push <span class="Constant">&quot; ab&quot;</span>/imm32
<span id="L1233" class="LineNr">1233 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1233" class="LineNr">1233 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1234" class="LineNr">1234 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1235" class="LineNr">1235 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1236" class="LineNr">1236 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1228,7 +1228,7 @@ if ('onhashchange' in window) {
<span id="L1238" class="LineNr">1238 </span> <span class="subxComment"># next-word-string-or-expression-without-metadata(_test-input-stream, slice)</span>
<span id="L1239" class="LineNr">1239 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1240" class="LineNr">1240 </span> 51/push-ecx
<span id="L1241" class="LineNr">1241 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1241" class="LineNr">1241 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1242" class="LineNr">1242 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1243" class="LineNr">1243 </span> e8/call <a href='calls.subx.html#L743'>next-word-string-or-expression-without-metadata</a>/disp32
<span id="L1244" class="LineNr">1244 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1237,7 +1237,7 @@ if ('onhashchange' in window) {
<span id="L1247" class="LineNr">1247 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1248" class="LineNr">1248 </span> 68/push <span class="Constant">&quot;F - <a href='calls.subx.html#L1214'>test-next-word-string-or-expression-without-metadata</a>/updates-stream-read-correctly&quot;</span>/imm32
<span id="L1249" class="LineNr">1249 </span> 68/push 4/imm32
<span id="L1250" class="LineNr">1250 </span> b8/copy-to-eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1250" class="LineNr">1250 </span> b8/copy-to-eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1251" class="LineNr">1251 </span> ff 6/subop/push *(eax+4)
<span id="L1252" class="LineNr">1252 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1253" class="LineNr">1253 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1250,7 +1250,7 @@ if ('onhashchange' in window) {
<span id="L1260" class="LineNr">1260 </span> 68/push 0xe/imm32
<span id="L1261" class="LineNr">1261 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L1262" class="LineNr">1262 </span> 8b/-&gt; *ecx 0/r32/eax
<span id="L1263" class="LineNr">1263 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1263" class="LineNr">1263 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1264" class="LineNr">1264 </span> 50/push-eax
<span id="L1265" class="LineNr">1265 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1266" class="LineNr">1266 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1263,7 +1263,7 @@ if ('onhashchange' in window) {
<span id="L1273" class="LineNr">1273 </span> 68/push 0x10/imm32
<span id="L1274" class="LineNr">1274 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L1275" class="LineNr">1275 </span> 8b/-&gt; *(ecx+4) 0/r32/eax
<span id="L1276" class="LineNr">1276 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1276" class="LineNr">1276 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1277" class="LineNr">1277 </span> 50/push-eax
<span id="L1278" class="LineNr">1278 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1279" class="LineNr">1279 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1281,7 +1281,7 @@ if ('onhashchange' in window) {
<span id="L1291" class="LineNr">1291 </span> <span class="subxComment"># setup</span>
<span id="L1292" class="LineNr">1292 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1293" class="LineNr">1293 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1294" class="LineNr">1294 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1294" class="LineNr">1294 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1295" class="LineNr">1295 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1296" class="LineNr">1296 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1297" class="LineNr">1297 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1293,7 +1293,7 @@ if ('onhashchange' in window) {
<span id="L1303" class="LineNr">1303 </span> <span class="subxComment"># write(_test-input-stream, &quot; # a&quot;)</span>
<span id="L1304" class="LineNr">1304 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1305" class="LineNr">1305 </span> 68/push <span class="Constant">&quot; # a&quot;</span>/imm32
<span id="L1306" class="LineNr">1306 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1306" class="LineNr">1306 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1307" class="LineNr">1307 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1308" class="LineNr">1308 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1309" class="LineNr">1309 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1301,7 +1301,7 @@ if ('onhashchange' in window) {
<span id="L1311" class="LineNr">1311 </span> <span class="subxComment"># next-word-string-or-expression-without-metadata(_test-input-stream, slice)</span>
<span id="L1312" class="LineNr">1312 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1313" class="LineNr">1313 </span> 51/push-ecx
<span id="L1314" class="LineNr">1314 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1314" class="LineNr">1314 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1315" class="LineNr">1315 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1316" class="LineNr">1316 </span> e8/call <a href='calls.subx.html#L743'>next-word-string-or-expression-without-metadata</a>/disp32
<span id="L1317" class="LineNr">1317 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1310,7 +1310,7 @@ if ('onhashchange' in window) {
<span id="L1320" class="LineNr">1320 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1321" class="LineNr">1321 </span> 68/push <span class="Constant">&quot;F - <a href='calls.subx.html#L1287'>test-next-word-string-or-expression-without-metadata-returns-whole-comment</a>/updates-stream-read-correctly&quot;</span>/imm32
<span id="L1322" class="LineNr">1322 </span> 68/push 5/imm32
<span id="L1323" class="LineNr">1323 </span> b8/copy-to-eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1323" class="LineNr">1323 </span> b8/copy-to-eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1324" class="LineNr">1324 </span> ff 6/subop/push *(eax+4)
<span id="L1325" class="LineNr">1325 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1326" class="LineNr">1326 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1323,7 +1323,7 @@ if ('onhashchange' in window) {
<span id="L1333" class="LineNr">1333 </span> 68/push 0xe/imm32
<span id="L1334" class="LineNr">1334 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L1335" class="LineNr">1335 </span> 8b/-&gt; *ecx 0/r32/eax
<span id="L1336" class="LineNr">1336 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1336" class="LineNr">1336 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1337" class="LineNr">1337 </span> 50/push-eax
<span id="L1338" class="LineNr">1338 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1339" class="LineNr">1339 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1336,7 +1336,7 @@ if ('onhashchange' in window) {
<span id="L1346" class="LineNr">1346 </span> 68/push 0x11/imm32
<span id="L1347" class="LineNr">1347 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L1348" class="LineNr">1348 </span> 8b/-&gt; *(ecx+4) 0/r32/eax
<span id="L1349" class="LineNr">1349 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1349" class="LineNr">1349 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1350" class="LineNr">1350 </span> 50/push-eax
<span id="L1351" class="LineNr">1351 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1352" class="LineNr">1352 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1354,7 +1354,7 @@ if ('onhashchange' in window) {
<span id="L1364" class="LineNr">1364 </span> <span class="subxComment"># setup</span>
<span id="L1365" class="LineNr">1365 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1366" class="LineNr">1366 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1367" class="LineNr">1367 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1367" class="LineNr">1367 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1368" class="LineNr">1368 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1369" class="LineNr">1369 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1370" class="LineNr">1370 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1366,7 +1366,7 @@ if ('onhashchange' in window) {
<span id="L1376" class="LineNr">1376 </span> <span class="subxComment"># write(_test-input-stream, &quot; \&quot;a b\&quot; &quot;)</span>
<span id="L1377" class="LineNr">1377 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1378" class="LineNr">1378 </span> 68/push <span class="Constant">&quot; \&quot;</span>a b\<span class="Constant">&quot; &quot;</span>/imm32
<span id="L1379" class="LineNr">1379 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1379" class="LineNr">1379 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1380" class="LineNr">1380 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1381" class="LineNr">1381 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1382" class="LineNr">1382 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1374,7 +1374,7 @@ if ('onhashchange' in window) {
<span id="L1384" class="LineNr">1384 </span> <span class="subxComment"># next-word-string-or-expression-without-metadata(_test-input-stream, slice)</span>
<span id="L1385" class="LineNr">1385 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1386" class="LineNr">1386 </span> 51/push-ecx
<span id="L1387" class="LineNr">1387 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1387" class="LineNr">1387 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1388" class="LineNr">1388 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1389" class="LineNr">1389 </span> e8/call <a href='calls.subx.html#L743'>next-word-string-or-expression-without-metadata</a>/disp32
<span id="L1390" class="LineNr">1390 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1386,7 +1386,7 @@ if ('onhashchange' in window) {
<span id="L1396" class="LineNr">1396 </span> 68/push 0xd/imm32
<span id="L1397" class="LineNr">1397 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L1398" class="LineNr">1398 </span> 8b/-&gt; *ecx 0/r32/eax
<span id="L1399" class="LineNr">1399 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1399" class="LineNr">1399 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1400" class="LineNr">1400 </span> 50/push-eax
<span id="L1401" class="LineNr">1401 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1402" class="LineNr">1402 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1399,7 +1399,7 @@ if ('onhashchange' in window) {
<span id="L1409" class="LineNr">1409 </span> 68/push 0x12/imm32
<span id="L1410" class="LineNr">1410 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L1411" class="LineNr">1411 </span> 8b/-&gt; *(ecx+4) 0/r32/eax
<span id="L1412" class="LineNr">1412 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1412" class="LineNr">1412 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1413" class="LineNr">1413 </span> 50/push-eax
<span id="L1414" class="LineNr">1414 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1415" class="LineNr">1415 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1417,7 +1417,7 @@ if ('onhashchange' in window) {
<span id="L1427" class="LineNr">1427 </span> <span class="subxComment"># setup</span>
<span id="L1428" class="LineNr">1428 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1429" class="LineNr">1429 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1430" class="LineNr">1430 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1430" class="LineNr">1430 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1431" class="LineNr">1431 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1432" class="LineNr">1432 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1433" class="LineNr">1433 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1429,7 +1429,7 @@ if ('onhashchange' in window) {
<span id="L1439" class="LineNr">1439 </span> <span class="subxComment"># write(_test-input-stream, &quot; \&quot;a\\\&quot;b\&quot;&quot;)</span>
<span id="L1440" class="LineNr">1440 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1441" class="LineNr">1441 </span> 68/push <span class="Constant">&quot; \&quot;</span>a\\\<span class="Constant">&quot;b\&quot;</span>&quot;/imm32
<span id="L1442" class="LineNr">1442 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1442" class="LineNr">1442 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1443" class="LineNr">1443 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1444" class="LineNr">1444 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1445" class="LineNr">1445 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1437,7 +1437,7 @@ if ('onhashchange' in window) {
<span id="L1447" class="LineNr">1447 </span> <span class="subxComment"># next-word-string-or-expression-without-metadata(_test-input-stream, slice)</span>
<span id="L1448" class="LineNr">1448 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1449" class="LineNr">1449 </span> 51/push-ecx
<span id="L1450" class="LineNr">1450 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1450" class="LineNr">1450 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1451" class="LineNr">1451 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1452" class="LineNr">1452 </span> e8/call <a href='calls.subx.html#L743'>next-word-string-or-expression-without-metadata</a>/disp32
<span id="L1453" class="LineNr">1453 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1449,7 +1449,7 @@ if ('onhashchange' in window) {
<span id="L1459" class="LineNr">1459 </span> 68/push 0xd/imm32
<span id="L1460" class="LineNr">1460 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L1461" class="LineNr">1461 </span> 8b/-&gt; *ecx 0/r32/eax
<span id="L1462" class="LineNr">1462 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1462" class="LineNr">1462 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1463" class="LineNr">1463 </span> 50/push-eax
<span id="L1464" class="LineNr">1464 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1465" class="LineNr">1465 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1462,7 +1462,7 @@ if ('onhashchange' in window) {
<span id="L1472" class="LineNr">1472 </span> 68/push 0x13/imm32
<span id="L1473" class="LineNr">1473 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L1474" class="LineNr">1474 </span> 8b/-&gt; *(ecx+4) 0/r32/eax
<span id="L1475" class="LineNr">1475 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1475" class="LineNr">1475 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1476" class="LineNr">1476 </span> 50/push-eax
<span id="L1477" class="LineNr">1477 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1478" class="LineNr">1478 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1480,7 +1480,7 @@ if ('onhashchange' in window) {
<span id="L1490" class="LineNr">1490 </span> <span class="subxComment"># setup</span>
<span id="L1491" class="LineNr">1491 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1492" class="LineNr">1492 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1493" class="LineNr">1493 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1493" class="LineNr">1493 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1494" class="LineNr">1494 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1495" class="LineNr">1495 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1496" class="LineNr">1496 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1492,7 +1492,7 @@ if ('onhashchange' in window) {
<span id="L1502" class="LineNr">1502 </span> <span class="subxComment"># write(_test-input-stream, &quot; *(a b) &quot;)</span>
<span id="L1503" class="LineNr">1503 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1504" class="LineNr">1504 </span> 68/push <span class="Constant">&quot; *(a b) &quot;</span>/imm32
<span id="L1505" class="LineNr">1505 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1505" class="LineNr">1505 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1506" class="LineNr">1506 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1507" class="LineNr">1507 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1508" class="LineNr">1508 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1500,7 +1500,7 @@ if ('onhashchange' in window) {
<span id="L1510" class="LineNr">1510 </span> <span class="subxComment"># next-word-string-or-expression-without-metadata(_test-input-stream, slice)</span>
<span id="L1511" class="LineNr">1511 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1512" class="LineNr">1512 </span> 51/push-ecx
<span id="L1513" class="LineNr">1513 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1513" class="LineNr">1513 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1514" class="LineNr">1514 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1515" class="LineNr">1515 </span> e8/call <a href='calls.subx.html#L743'>next-word-string-or-expression-without-metadata</a>/disp32
<span id="L1516" class="LineNr">1516 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1512,7 +1512,7 @@ if ('onhashchange' in window) {
<span id="L1522" class="LineNr">1522 </span> 68/push 0xd/imm32
<span id="L1523" class="LineNr">1523 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L1524" class="LineNr">1524 </span> 8b/-&gt; *ecx 0/r32/eax
<span id="L1525" class="LineNr">1525 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1525" class="LineNr">1525 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1526" class="LineNr">1526 </span> 50/push-eax
<span id="L1527" class="LineNr">1527 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1528" class="LineNr">1528 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1525,7 +1525,7 @@ if ('onhashchange' in window) {
<span id="L1535" class="LineNr">1535 </span> 68/push 0x13/imm32
<span id="L1536" class="LineNr">1536 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L1537" class="LineNr">1537 </span> 8b/-&gt; *(ecx+4) 0/r32/eax
<span id="L1538" class="LineNr">1538 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1538" class="LineNr">1538 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1539" class="LineNr">1539 </span> 50/push-eax
<span id="L1540" class="LineNr">1540 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1541" class="LineNr">1541 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1543,7 +1543,7 @@ if ('onhashchange' in window) {
<span id="L1553" class="LineNr">1553 </span> <span class="subxComment"># setup</span>
<span id="L1554" class="LineNr">1554 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1555" class="LineNr">1555 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1556" class="LineNr">1556 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1556" class="LineNr">1556 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1557" class="LineNr">1557 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1558" class="LineNr">1558 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1559" class="LineNr">1559 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1555,7 +1555,7 @@ if ('onhashchange' in window) {
<span id="L1565" class="LineNr">1565 </span> <span class="subxComment"># write(_test-input-stream, &quot; ) &quot;)</span>
<span id="L1566" class="LineNr">1566 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1567" class="LineNr">1567 </span> 68/push <span class="Constant">&quot; ) &quot;</span>/imm32
<span id="L1568" class="LineNr">1568 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1568" class="LineNr">1568 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1569" class="LineNr">1569 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1570" class="LineNr">1570 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1571" class="LineNr">1571 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1563,7 +1563,7 @@ if ('onhashchange' in window) {
<span id="L1573" class="LineNr">1573 </span> <span class="subxComment"># next-word-string-or-expression-without-metadata(_test-input-stream, slice)</span>
<span id="L1574" class="LineNr">1574 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1575" class="LineNr">1575 </span> 51/push-ecx
<span id="L1576" class="LineNr">1576 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1576" class="LineNr">1576 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1577" class="LineNr">1577 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1578" class="LineNr">1578 </span> e8/call <a href='calls.subx.html#L743'>next-word-string-or-expression-without-metadata</a>/disp32
<span id="L1579" class="LineNr">1579 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1598,7 +1598,7 @@ if ('onhashchange' in window) {
<span id="L1608" class="LineNr">1608 </span> <span class="subxComment"># setup</span>
<span id="L1609" class="LineNr">1609 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1610" class="LineNr">1610 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1611" class="LineNr">1611 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1611" class="LineNr">1611 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1612" class="LineNr">1612 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1613" class="LineNr">1613 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1614" class="LineNr">1614 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1610,7 +1610,7 @@ if ('onhashchange' in window) {
<span id="L1620" class="LineNr">1620 </span> <span class="subxComment"># write(_test-input-stream, &quot; ) # abc &quot;)</span>
<span id="L1621" class="LineNr">1621 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1622" class="LineNr">1622 </span> 68/push <span class="Constant">&quot; ) # abc &quot;</span>/imm32
<span id="L1623" class="LineNr">1623 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1623" class="LineNr">1623 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1624" class="LineNr">1624 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1625" class="LineNr">1625 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1626" class="LineNr">1626 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1618,7 +1618,7 @@ if ('onhashchange' in window) {
<span id="L1628" class="LineNr">1628 </span> <span class="subxComment"># next-word-string-or-expression-without-metadata(_test-input-stream, slice)</span>
<span id="L1629" class="LineNr">1629 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1630" class="LineNr">1630 </span> 51/push-ecx
<span id="L1631" class="LineNr">1631 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1631" class="LineNr">1631 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1632" class="LineNr">1632 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1633" class="LineNr">1633 </span> e8/call <a href='calls.subx.html#L743'>next-word-string-or-expression-without-metadata</a>/disp32
<span id="L1634" class="LineNr">1634 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1653,7 +1653,7 @@ if ('onhashchange' in window) {
<span id="L1663" class="LineNr">1663 </span> <span class="subxComment"># setup</span>
<span id="L1664" class="LineNr">1664 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1665" class="LineNr">1665 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1666" class="LineNr">1666 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1666" class="LineNr">1666 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1667" class="LineNr">1667 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1668" class="LineNr">1668 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1669" class="LineNr">1669 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1665,7 +1665,7 @@ if ('onhashchange' in window) {
<span id="L1675" class="LineNr">1675 </span> <span class="subxComment"># write(_test-input-stream, &quot; )\n&quot;)</span>
<span id="L1676" class="LineNr">1676 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1677" class="LineNr">1677 </span> 68/push <span class="Constant">&quot; )\n&quot;</span>/imm32
<span id="L1678" class="LineNr">1678 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1678" class="LineNr">1678 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1679" class="LineNr">1679 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1680" class="LineNr">1680 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1681" class="LineNr">1681 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1673,7 +1673,7 @@ if ('onhashchange' in window) {
<span id="L1683" class="LineNr">1683 </span> <span class="subxComment"># next-word-string-or-expression-without-metadata(_test-input-stream, slice)</span>
<span id="L1684" class="LineNr">1684 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1685" class="LineNr">1685 </span> 51/push-ecx
<span id="L1686" class="LineNr">1686 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1686" class="LineNr">1686 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1687" class="LineNr">1687 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1688" class="LineNr">1688 </span> e8/call <a href='calls.subx.html#L743'>next-word-string-or-expression-without-metadata</a>/disp32
<span id="L1689" class="LineNr">1689 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1708,7 +1708,7 @@ if ('onhashchange' in window) {
<span id="L1718" class="LineNr">1718 </span> <span class="subxComment"># setup</span>
<span id="L1719" class="LineNr">1719 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1720" class="LineNr">1720 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1721" class="LineNr">1721 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1721" class="LineNr">1721 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1722" class="LineNr">1722 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1723" class="LineNr">1723 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1724" class="LineNr">1724 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1720,7 +1720,7 @@ if ('onhashchange' in window) {
<span id="L1730" class="LineNr">1730 </span> <span class="subxComment"># write(_test-input-stream, &quot; abc) # def&quot;)</span>
<span id="L1731" class="LineNr">1731 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1732" class="LineNr">1732 </span> 68/push <span class="Constant">&quot; abc) # def&quot;</span>/imm32
<span id="L1733" class="LineNr">1733 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1733" class="LineNr">1733 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1734" class="LineNr">1734 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1735" class="LineNr">1735 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1736" class="LineNr">1736 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1728,7 +1728,7 @@ if ('onhashchange' in window) {
<span id="L1738" class="LineNr">1738 </span> <span class="subxComment"># next-word-string-or-expression-without-metadata(_test-input-stream, slice)</span>
<span id="L1739" class="LineNr">1739 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1740" class="LineNr">1740 </span> 51/push-ecx
<span id="L1741" class="LineNr">1741 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1741" class="LineNr">1741 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1742" class="LineNr">1742 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1743" class="LineNr">1743 </span> e8/call <a href='calls.subx.html#L743'>next-word-string-or-expression-without-metadata</a>/disp32
<span id="L1744" class="LineNr">1744 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1740,7 +1740,7 @@ if ('onhashchange' in window) {
<span id="L1750" class="LineNr">1750 </span> 68/push 0xd/imm32
<span id="L1751" class="LineNr">1751 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L1752" class="LineNr">1752 </span> 8b/-&gt; *ecx 0/r32/eax
<span id="L1753" class="LineNr">1753 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1753" class="LineNr">1753 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1754" class="LineNr">1754 </span> 50/push-eax
<span id="L1755" class="LineNr">1755 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1756" class="LineNr">1756 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1753,7 +1753,7 @@ if ('onhashchange' in window) {
<span id="L1763" class="LineNr">1763 </span> 68/push 0x10/imm32
<span id="L1764" class="LineNr">1764 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L1765" class="LineNr">1765 </span> 8b/-&gt; *(ecx+4) 0/r32/eax
<span id="L1766" class="LineNr">1766 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1766" class="LineNr">1766 </span> 81 5/subop/subtract %eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1767" class="LineNr">1767 </span> 50/push-eax
<span id="L1768" class="LineNr">1768 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1769" class="LineNr">1769 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32

View File

@ -407,7 +407,7 @@ if ('onhashchange' in window) {
<span id="L346" class="LineNr">346 </span> <span class="subxComment"># prime the pump</span>
<span id="L347" class="LineNr">347 </span> <span class="subxS1Comment"># . get-char(_test-buffered-file)</span>
<span id="L348" class="LineNr">348 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L349" class="LineNr">349 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L349" class="LineNr">349 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L350" class="LineNr">350 </span> <span class="subxS2Comment"># . . call</span>
<span id="L351" class="LineNr">351 </span> e8/call <a href='crenshaw2-1.subx.html#L508'>get-char</a>/disp32
<span id="L352" class="LineNr">352 </span> <span class="subxS2Comment"># . . discard args</span>
@ -417,7 +417,7 @@ if ('onhashchange' in window) {
<span id="L356" class="LineNr">356 </span> 50/push-eax/ed
<span id="L357" class="LineNr">357 </span> 68/push <a href='../115write-byte.subx.html#L372'>_test-error-stream</a>/imm32
<span id="L358" class="LineNr">358 </span> 68/push <a href='../115write-byte.subx.html#L285'>_test-output-stream</a>/imm32
<span id="L359" class="LineNr">359 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L359" class="LineNr">359 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L360" class="LineNr">360 </span> <span class="subxS2Comment"># . . call</span>
<span id="L361" class="LineNr">361 </span> e8/call <a href='crenshaw2-1.subx.html#L187'>get-num</a>/disp32
<span id="L362" class="LineNr">362 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -499,7 +499,7 @@ if ('onhashchange' in window) {
<span id="L438" class="LineNr">438 </span> 50/push-eax/ed
<span id="L439" class="LineNr">439 </span> 68/push <a href='../115write-byte.subx.html#L372'>_test-error-stream</a>/imm32
<span id="L440" class="LineNr">440 </span> 68/push <a href='../115write-byte.subx.html#L285'>_test-output-stream</a>/imm32
<span id="L441" class="LineNr">441 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L441" class="LineNr">441 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L442" class="LineNr">442 </span> <span class="subxS2Comment"># . . call</span>
<span id="L443" class="LineNr">443 </span> e8/call <a href='crenshaw2-1.subx.html#L187'>get-num</a>/disp32
<span id="L444" class="LineNr">444 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>

View File

@ -423,7 +423,7 @@ if ('onhashchange' in window) {
<span id="L362" class="LineNr">362 </span> <span class="subxComment"># prime the pump</span>
<span id="L363" class="LineNr">363 </span> <span class="subxS1Comment"># . get-char(_test-buffered-file)</span>
<span id="L364" class="LineNr">364 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L365" class="LineNr">365 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L365" class="LineNr">365 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L366" class="LineNr">366 </span> <span class="subxS2Comment"># . . call</span>
<span id="L367" class="LineNr">367 </span> e8/call <a href='crenshaw2-1b.subx.html#L702'>get-char</a>/disp32
<span id="L368" class="LineNr">368 </span> <span class="subxS2Comment"># . . discard args</span>
@ -433,7 +433,7 @@ if ('onhashchange' in window) {
<span id="L372" class="LineNr">372 </span> 50/push-eax/ed
<span id="L373" class="LineNr">373 </span> 68/push <a href='../115write-byte.subx.html#L372'>_test-error-stream</a>/imm32
<span id="L374" class="LineNr">374 </span> 68/push <a href='../115write-byte.subx.html#L285'>_test-output-stream</a>/imm32
<span id="L375" class="LineNr">375 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L375" class="LineNr">375 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L376" class="LineNr">376 </span> <span class="subxS2Comment"># . . call</span>
<span id="L377" class="LineNr">377 </span> e8/call <a href='crenshaw2-1b.subx.html#L187'>get-num</a>/disp32
<span id="L378" class="LineNr">378 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -515,7 +515,7 @@ if ('onhashchange' in window) {
<span id="L454" class="LineNr">454 </span> 50/push-eax/ed
<span id="L455" class="LineNr">455 </span> 68/push <a href='../115write-byte.subx.html#L372'>_test-error-stream</a>/imm32
<span id="L456" class="LineNr">456 </span> 68/push <a href='../115write-byte.subx.html#L285'>_test-output-stream</a>/imm32
<span id="L457" class="LineNr">457 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L457" class="LineNr">457 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L458" class="LineNr">458 </span> <span class="subxS2Comment"># . . call</span>
<span id="L459" class="LineNr">459 </span> e8/call <a href='crenshaw2-1b.subx.html#L187'>get-num</a>/disp32
<span id="L460" class="LineNr">460 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -595,7 +595,7 @@ if ('onhashchange' in window) {
<span id="L534" class="LineNr">534 </span> <span class="subxComment"># prime the pump</span>
<span id="L535" class="LineNr">535 </span> <span class="subxS1Comment"># . get-char(_test-buffered-file)</span>
<span id="L536" class="LineNr">536 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L537" class="LineNr">537 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L537" class="LineNr">537 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L538" class="LineNr">538 </span> <span class="subxS2Comment"># . . call</span>
<span id="L539" class="LineNr">539 </span> e8/call <a href='crenshaw2-1b.subx.html#L702'>get-char</a>/disp32
<span id="L540" class="LineNr">540 </span> <span class="subxS2Comment"># . . discard args</span>
@ -605,7 +605,7 @@ if ('onhashchange' in window) {
<span id="L544" class="LineNr">544 </span> 50/push-eax/ed
<span id="L545" class="LineNr">545 </span> 68/push <a href='../115write-byte.subx.html#L372'>_test-error-stream</a>/imm32
<span id="L546" class="LineNr">546 </span> 68/push <a href='../115write-byte.subx.html#L285'>_test-output-stream</a>/imm32
<span id="L547" class="LineNr">547 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L547" class="LineNr">547 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L548" class="LineNr">548 </span> <span class="subxS2Comment"># . . call</span>
<span id="L549" class="LineNr">549 </span> e8/call <a href='crenshaw2-1b.subx.html#L187'>get-num</a>/disp32
<span id="L550" class="LineNr">550 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -684,7 +684,7 @@ if ('onhashchange' in window) {
<span id="L623" class="LineNr">623 </span> <span class="subxComment"># prime the pump</span>
<span id="L624" class="LineNr">624 </span> <span class="subxS1Comment"># . get-char(_test-buffered-file)</span>
<span id="L625" class="LineNr">625 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L626" class="LineNr">626 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L626" class="LineNr">626 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L627" class="LineNr">627 </span> <span class="subxS2Comment"># . . call</span>
<span id="L628" class="LineNr">628 </span> e8/call <a href='crenshaw2-1b.subx.html#L702'>get-char</a>/disp32
<span id="L629" class="LineNr">629 </span> <span class="subxS2Comment"># . . discard args</span>
@ -694,7 +694,7 @@ if ('onhashchange' in window) {
<span id="L633" class="LineNr">633 </span> 50/push-eax/ed
<span id="L634" class="LineNr">634 </span> 68/push <a href='../115write-byte.subx.html#L372'>_test-error-stream</a>/imm32
<span id="L635" class="LineNr">635 </span> 68/push <a href='../115write-byte.subx.html#L285'>_test-output-stream</a>/imm32
<span id="L636" class="LineNr">636 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L636" class="LineNr">636 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L637" class="LineNr">637 </span> <span class="subxS2Comment"># . . call</span>
<span id="L638" class="LineNr">638 </span> e8/call <a href='crenshaw2-1b.subx.html#L187'>get-num</a>/disp32
<span id="L639" class="LineNr">639 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>

View File

@ -476,7 +476,7 @@ if ('onhashchange' in window) {
<span id="L413" class="LineNr"> 413 </span> <span class="subxComment"># setup</span>
<span id="L414" class="LineNr"> 414 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L415" class="LineNr"> 415 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L416" class="LineNr"> 416 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L416" class="LineNr"> 416 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L417" class="LineNr"> 417 </span> <span class="subxS2Comment"># . . call</span>
<span id="L418" class="LineNr"> 418 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L419" class="LineNr"> 419 </span> <span class="subxS2Comment"># . . discard args</span>
@ -515,7 +515,7 @@ if ('onhashchange' in window) {
<span id="L452" class="LineNr"> 452 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;# comment 1\n&quot;)</span>
<span id="L453" class="LineNr"> 453 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L454" class="LineNr"> 454 </span> 68/push <span class="Constant">&quot;# comment 1\n&quot;</span>/imm32
<span id="L455" class="LineNr"> 455 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L455" class="LineNr"> 455 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L456" class="LineNr"> 456 </span> <span class="subxS2Comment"># . . call</span>
<span id="L457" class="LineNr"> 457 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L458" class="LineNr"> 458 </span> <span class="subxS2Comment"># . . discard args</span>
@ -523,7 +523,7 @@ if ('onhashchange' in window) {
<span id="L460" class="LineNr"> 460 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot; # comment 2 indented\n&quot;)</span>
<span id="L461" class="LineNr"> 461 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L462" class="LineNr"> 462 </span> 68/push <span class="Constant">&quot; # comment 2 indented\n&quot;</span>/imm32
<span id="L463" class="LineNr"> 463 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L463" class="LineNr"> 463 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L464" class="LineNr"> 464 </span> <span class="subxS2Comment"># . . call</span>
<span id="L465" class="LineNr"> 465 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L466" class="LineNr"> 466 </span> <span class="subxS2Comment"># . . discard args</span>
@ -531,7 +531,7 @@ if ('onhashchange' in window) {
<span id="L468" class="LineNr"> 468 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== code 0x1\n&quot;)</span>
<span id="L469" class="LineNr"> 469 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L470" class="LineNr"> 470 </span> 68/push <span class="Constant">&quot;== code 0x1\n&quot;</span>/imm32
<span id="L471" class="LineNr"> 471 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L471" class="LineNr"> 471 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L472" class="LineNr"> 472 </span> <span class="subxS2Comment"># . . call</span>
<span id="L473" class="LineNr"> 473 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L474" class="LineNr"> 474 </span> <span class="subxS2Comment"># . . discard args</span>
@ -539,7 +539,7 @@ if ('onhashchange' in window) {
<span id="L476" class="LineNr"> 476 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;# comment 3 inside a segment\n&quot;)</span>
<span id="L477" class="LineNr"> 477 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L478" class="LineNr"> 478 </span> 68/push <span class="Constant">&quot;# comment 3 inside a segment\n&quot;</span>/imm32
<span id="L479" class="LineNr"> 479 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L479" class="LineNr"> 479 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L480" class="LineNr"> 480 </span> <span class="subxS2Comment"># . . call</span>
<span id="L481" class="LineNr"> 481 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L482" class="LineNr"> 482 </span> <span class="subxS2Comment"># . . discard args</span>
@ -547,7 +547,7 @@ if ('onhashchange' in window) {
<span id="L484" class="LineNr"> 484 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;1\n&quot;)</span>
<span id="L485" class="LineNr"> 485 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L486" class="LineNr"> 486 </span> 68/push <span class="Constant">&quot;1\n&quot;</span>/imm32
<span id="L487" class="LineNr"> 487 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L487" class="LineNr"> 487 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L488" class="LineNr"> 488 </span> <span class="subxS2Comment"># . . call</span>
<span id="L489" class="LineNr"> 489 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L490" class="LineNr"> 490 </span> <span class="subxS2Comment"># . . discard args</span>
@ -555,7 +555,7 @@ if ('onhashchange' in window) {
<span id="L492" class="LineNr"> 492 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;\n&quot;) # empty line</span>
<span id="L493" class="LineNr"> 493 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L494" class="LineNr"> 494 </span> 68/push <span class="SpecialChar"><a href='../102test.subx.html#L82'>Newline</a></span>/imm32
<span id="L495" class="LineNr"> 495 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L495" class="LineNr"> 495 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L496" class="LineNr"> 496 </span> <span class="subxS2Comment"># . . call</span>
<span id="L497" class="LineNr"> 497 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L498" class="LineNr"> 498 </span> <span class="subxS2Comment"># . . discard args</span>
@ -563,7 +563,7 @@ if ('onhashchange' in window) {
<span id="L500" class="LineNr"> 500 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;2 3 # comment 4 inline with other contents\n&quot;)</span>
<span id="L501" class="LineNr"> 501 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L502" class="LineNr"> 502 </span> 68/push <span class="Constant">&quot;2 3 # comment 4 inline with other contents\n&quot;</span>/imm32
<span id="L503" class="LineNr"> 503 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L503" class="LineNr"> 503 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L504" class="LineNr"> 504 </span> <span class="subxS2Comment"># . . call</span>
<span id="L505" class="LineNr"> 505 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L506" class="LineNr"> 506 </span> <span class="subxS2Comment"># . . discard args</span>
@ -571,7 +571,7 @@ if ('onhashchange' in window) {
<span id="L508" class="LineNr"> 508 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== data 0x2\n&quot;)</span>
<span id="L509" class="LineNr"> 509 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L510" class="LineNr"> 510 </span> 68/push <span class="Constant">&quot;== data 0x2\n&quot;</span>/imm32
<span id="L511" class="LineNr"> 511 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L511" class="LineNr"> 511 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L512" class="LineNr"> 512 </span> <span class="subxS2Comment"># . . call</span>
<span id="L513" class="LineNr"> 513 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L514" class="LineNr"> 514 </span> <span class="subxS2Comment"># . . discard args</span>
@ -579,7 +579,7 @@ if ('onhashchange' in window) {
<span id="L516" class="LineNr"> 516 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;4 5/imm32\n&quot;)</span>
<span id="L517" class="LineNr"> 517 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L518" class="LineNr"> 518 </span> 68/push <span class="Constant">&quot;4 5/imm32\n&quot;</span>/imm32
<span id="L519" class="LineNr"> 519 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L519" class="LineNr"> 519 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L520" class="LineNr"> 520 </span> <span class="subxS2Comment"># . . call</span>
<span id="L521" class="LineNr"> 521 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L522" class="LineNr"> 522 </span> <span class="subxS2Comment"># . . discard args</span>
@ -587,7 +587,7 @@ if ('onhashchange' in window) {
<span id="L524" class="LineNr"> 524 </span> <span class="subxComment"># subx-dquotes(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L525" class="LineNr"> 525 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L526" class="LineNr"> 526 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L527" class="LineNr"> 527 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L527" class="LineNr"> 527 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L528" class="LineNr"> 528 </span> <span class="subxS2Comment"># . . call</span>
<span id="L529" class="LineNr"> 529 </span> e8/call <a href='dquotes.subx.html#L84'>subx-dquotes</a>/disp32
<span id="L530" class="LineNr"> 530 </span> <span class="subxS2Comment"># . . discard args</span>
@ -704,7 +704,7 @@ if ('onhashchange' in window) {
<span id="L666" class="LineNr"> 666 </span> <span class="subxComment"># setup</span>
<span id="L667" class="LineNr"> 667 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L668" class="LineNr"> 668 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L669" class="LineNr"> 669 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L669" class="LineNr"> 669 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L670" class="LineNr"> 670 </span> <span class="subxS2Comment"># . . call</span>
<span id="L671" class="LineNr"> 671 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L672" class="LineNr"> 672 </span> <span class="subxS2Comment"># . . discard args</span>
@ -735,7 +735,7 @@ if ('onhashchange' in window) {
<span id="L697" class="LineNr"> 697 </span> <span class="subxComment"># 1 &quot;a&quot;/x</span>
<span id="L698" class="LineNr"> 698 </span> <span class="subxComment"># 2 &quot;bc&quot;/y</span>
<span id="L699" class="LineNr"> 699 </span> 68/push <span class="Constant">&quot;== code 0x1\n&quot;</span>/imm32
<span id="L700" class="LineNr"> 700 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L700" class="LineNr"> 700 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L701" class="LineNr"> 701 </span> <span class="subxS2Comment"># . . call</span>
<span id="L702" class="LineNr"> 702 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L703" class="LineNr"> 703 </span> <span class="subxS2Comment"># . . discard args</span>
@ -743,7 +743,7 @@ if ('onhashchange' in window) {
<span id="L705" class="LineNr"> 705 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;1 \&quot;a\&quot;/x\n&quot;)</span>
<span id="L706" class="LineNr"> 706 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L707" class="LineNr"> 707 </span> 68/push <span class="Constant">&quot;1 \&quot;</span>a\<span class="Constant">&quot;/x\n&quot;</span>/imm32
<span id="L708" class="LineNr"> 708 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L708" class="LineNr"> 708 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L709" class="LineNr"> 709 </span> <span class="subxS2Comment"># . . call</span>
<span id="L710" class="LineNr"> 710 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L711" class="LineNr"> 711 </span> <span class="subxS2Comment"># . . discard args</span>
@ -751,7 +751,7 @@ if ('onhashchange' in window) {
<span id="L713" class="LineNr"> 713 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;2 \&quot;bc\&quot;/y\n&quot;)</span>
<span id="L714" class="LineNr"> 714 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L715" class="LineNr"> 715 </span> 68/push <span class="Constant">&quot;2 \&quot;</span>bc\<span class="Constant">&quot;/y\n&quot;</span>/imm32
<span id="L716" class="LineNr"> 716 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L716" class="LineNr"> 716 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L717" class="LineNr"> 717 </span> <span class="subxS2Comment"># . . call</span>
<span id="L718" class="LineNr"> 718 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L719" class="LineNr"> 719 </span> <span class="subxS2Comment"># . . discard args</span>
@ -759,7 +759,7 @@ if ('onhashchange' in window) {
<span id="L721" class="LineNr"> 721 </span> <span class="subxComment"># subx-dquotes(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L722" class="LineNr"> 722 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L723" class="LineNr"> 723 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L724" class="LineNr"> 724 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L724" class="LineNr"> 724 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L725" class="LineNr"> 725 </span> <span class="subxS2Comment"># . . call</span>
<span id="L726" class="LineNr"> 726 </span> e8/call <a href='dquotes.subx.html#L84'>subx-dquotes</a>/disp32
<span id="L727" class="LineNr"> 727 </span> <span class="subxS2Comment"># . . discard args</span>

View File

@ -63,7 +63,7 @@ if ('onhashchange' in window) {
<span id="L5" class="LineNr"> 5 </span><span class="Comment"># $ ./a.elf</span>
<span id="L6" class="LineNr"> 6 </span>
<span id="L7" class="LineNr"> 7 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='hello.mu.html#L7'>main</a></span><span class="PreProc"> -&gt; </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span>
<span id="L8" class="LineNr"> 8 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;Hello world!\n&quot;</span>
<span id="L8" class="LineNr"> 8 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;Hello world!\n&quot;</span>
<span id="L9" class="LineNr"> 9 </span> exit-status <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L10" class="LineNr">10 </span><span class="Delimiter">}</span>
</pre>

View File

@ -316,7 +316,7 @@ if ('onhashchange' in window) {
<span id="L255" class="LineNr"> 255 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L256" class="LineNr"> 256 </span> 51/push-ecx/ed
<span id="L257" class="LineNr"> 257 </span> 68/push <a href='../115write-byte.subx.html#L390'>_test-error-buffered-file</a>/imm32
<span id="L258" class="LineNr"> 258 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L258" class="LineNr"> 258 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L259" class="LineNr"> 259 </span> <span class="subxS2Comment"># . . call</span>
<span id="L260" class="LineNr"> 260 </span> e8/call <a href='hex.subx.html#L131'>convert-next-octet</a>/disp32
<span id="L261" class="LineNr"> 261 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -406,7 +406,7 @@ if ('onhashchange' in window) {
<span id="L345" class="LineNr"> 345 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L346" class="LineNr"> 346 </span> 51/push-ecx/ed
<span id="L347" class="LineNr"> 347 </span> 68/push <a href='../115write-byte.subx.html#L390'>_test-error-buffered-file</a>/imm32
<span id="L348" class="LineNr"> 348 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L348" class="LineNr"> 348 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L349" class="LineNr"> 349 </span> <span class="subxS2Comment"># . . call</span>
<span id="L350" class="LineNr"> 350 </span> e8/call <a href='hex.subx.html#L131'>convert-next-octet</a>/disp32
<span id="L351" class="LineNr"> 351 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -504,7 +504,7 @@ if ('onhashchange' in window) {
<span id="L443" class="LineNr"> 443 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L444" class="LineNr"> 444 </span> 51/push-ecx/ed
<span id="L445" class="LineNr"> 445 </span> 68/push <a href='../115write-byte.subx.html#L390'>_test-error-buffered-file</a>/imm32
<span id="L446" class="LineNr"> 446 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L446" class="LineNr"> 446 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L447" class="LineNr"> 447 </span> <span class="subxS2Comment"># . . call</span>
<span id="L448" class="LineNr"> 448 </span> e8/call <a href='hex.subx.html#L131'>convert-next-octet</a>/disp32
<span id="L449" class="LineNr"> 449 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -673,7 +673,7 @@ if ('onhashchange' in window) {
<span id="L612" class="LineNr"> 612 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L613" class="LineNr"> 613 </span> 51/push-ecx/ed
<span id="L614" class="LineNr"> 614 </span> 68/push <a href='../115write-byte.subx.html#L390'>_test-error-buffered-file</a>/imm32
<span id="L615" class="LineNr"> 615 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L615" class="LineNr"> 615 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L616" class="LineNr"> 616 </span> <span class="subxS2Comment"># . . call</span>
<span id="L617" class="LineNr"> 617 </span> e8/call <a href='hex.subx.html#L477'>scan-next-byte</a>/disp32
<span id="L618" class="LineNr"> 618 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -771,7 +771,7 @@ if ('onhashchange' in window) {
<span id="L710" class="LineNr"> 710 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L711" class="LineNr"> 711 </span> 51/push-ecx/ed
<span id="L712" class="LineNr"> 712 </span> 68/push <a href='../115write-byte.subx.html#L390'>_test-error-buffered-file</a>/imm32
<span id="L713" class="LineNr"> 713 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L713" class="LineNr"> 713 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L714" class="LineNr"> 714 </span> <span class="subxS2Comment"># . . call</span>
<span id="L715" class="LineNr"> 715 </span> e8/call <a href='hex.subx.html#L477'>scan-next-byte</a>/disp32
<span id="L716" class="LineNr"> 716 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -877,7 +877,7 @@ if ('onhashchange' in window) {
<span id="L816" class="LineNr"> 816 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L817" class="LineNr"> 817 </span> 51/push-ecx/ed
<span id="L818" class="LineNr"> 818 </span> 68/push <a href='../115write-byte.subx.html#L390'>_test-error-buffered-file</a>/imm32
<span id="L819" class="LineNr"> 819 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L819" class="LineNr"> 819 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L820" class="LineNr"> 820 </span> <span class="subxS2Comment"># . . call</span>
<span id="L821" class="LineNr"> 821 </span> e8/call <a href='hex.subx.html#L477'>scan-next-byte</a>/disp32
<span id="L822" class="LineNr"> 822 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -983,7 +983,7 @@ if ('onhashchange' in window) {
<span id="L922" class="LineNr"> 922 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L923" class="LineNr"> 923 </span> 51/push-ecx/ed
<span id="L924" class="LineNr"> 924 </span> 68/push <a href='../115write-byte.subx.html#L390'>_test-error-buffered-file</a>/imm32
<span id="L925" class="LineNr"> 925 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L925" class="LineNr"> 925 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L926" class="LineNr"> 926 </span> <span class="subxS2Comment"># . . call</span>
<span id="L927" class="LineNr"> 927 </span> e8/call <a href='hex.subx.html#L477'>scan-next-byte</a>/disp32
<span id="L928" class="LineNr"> 928 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -1037,7 +1037,7 @@ if ('onhashchange' in window) {
<span id="L976" class="LineNr"> 976 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/imm32 <span class="subxComment"># add to esp</span>
<span id="L977" class="LineNr"> 977 </span> <span class="subxS1Comment"># . clear-stream($_test-buffered-file-&gt;buffer)</span>
<span id="L978" class="LineNr"> 978 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L979" class="LineNr"> 979 </span> b8/copy-to-eax <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L979" class="LineNr"> 979 </span> b8/copy-to-eax <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L980" class="LineNr"> 980 </span> 05/add-to-eax 4/imm32
<span id="L981" class="LineNr"> 981 </span> 50/push-eax
<span id="L982" class="LineNr"> 982 </span> <span class="subxS2Comment"># . . call</span>
@ -1091,7 +1091,7 @@ if ('onhashchange' in window) {
<span id="L1030" class="LineNr">1030 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1031" class="LineNr">1031 </span> 51/push-ecx/ed
<span id="L1032" class="LineNr">1032 </span> 68/push <a href='../115write-byte.subx.html#L390'>_test-error-buffered-file</a>/imm32
<span id="L1033" class="LineNr">1033 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L1033" class="LineNr">1033 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L1034" class="LineNr">1034 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1035" class="LineNr">1035 </span> e8/call <a href='hex.subx.html#L477'>scan-next-byte</a>/disp32
<span id="L1036" class="LineNr">1036 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -1189,7 +1189,7 @@ if ('onhashchange' in window) {
<span id="L1128" class="LineNr">1128 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1129" class="LineNr">1129 </span> 51/push-ecx/ed
<span id="L1130" class="LineNr">1130 </span> 68/push <a href='../115write-byte.subx.html#L390'>_test-error-buffered-file</a>/imm32
<span id="L1131" class="LineNr">1131 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L1131" class="LineNr">1131 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L1132" class="LineNr">1132 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1133" class="LineNr">1133 </span> e8/call <a href='hex.subx.html#L477'>scan-next-byte</a>/disp32
<span id="L1134" class="LineNr">1134 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -1279,7 +1279,7 @@ if ('onhashchange' in window) {
<span id="L1218" class="LineNr">1218 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1219" class="LineNr">1219 </span> 51/push-ecx/ed
<span id="L1220" class="LineNr">1220 </span> 68/push <a href='../115write-byte.subx.html#L390'>_test-error-buffered-file</a>/imm32
<span id="L1221" class="LineNr">1221 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L1221" class="LineNr">1221 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L1222" class="LineNr">1222 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1223" class="LineNr">1223 </span> e8/call <a href='hex.subx.html#L477'>scan-next-byte</a>/disp32
<span id="L1224" class="LineNr">1224 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -1377,7 +1377,7 @@ if ('onhashchange' in window) {
<span id="L1316" class="LineNr">1316 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1317" class="LineNr">1317 </span> 51/push-ecx/ed
<span id="L1318" class="LineNr">1318 </span> 68/push <a href='../115write-byte.subx.html#L390'>_test-error-buffered-file</a>/imm32
<span id="L1319" class="LineNr">1319 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L1319" class="LineNr">1319 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L1320" class="LineNr">1320 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1321" class="LineNr">1321 </span> e8/call <a href='hex.subx.html#L477'>scan-next-byte</a>/disp32
<span id="L1322" class="LineNr">1322 </span> <span class="subxComment"># registers except esp may be clobbered at this point</span>
@ -1475,7 +1475,7 @@ if ('onhashchange' in window) {
<span id="L1414" class="LineNr">1414 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L1415" class="LineNr">1415 </span> <span class="subxComment"># skip-until-newline(_test-buffered-file)</span>
<span id="L1416" class="LineNr">1416 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1417" class="LineNr">1417 </span> 68/push <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L1417" class="LineNr">1417 </span> 68/push <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L1418" class="LineNr">1418 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1419" class="LineNr">1419 </span> e8/call <a href='hex.subx.html#L1346'>skip-until-newline</a>/disp32
<span id="L1420" class="LineNr">1420 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1484,7 +1484,7 @@ if ('onhashchange' in window) {
<span id="L1423" class="LineNr">1423 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1424" class="LineNr">1424 </span> 68/push <span class="Constant">&quot;F - test-skip-until-newline&quot;</span>/imm32
<span id="L1425" class="LineNr">1425 </span> 68/push 4/imm32
<span id="L1426" class="LineNr">1426 </span> b8/copy-to-eax <a href='../112read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
<span id="L1426" class="LineNr">1426 </span> b8/copy-to-eax <a href='../112read-byte.subx.html#L318'>_test-buffered-file</a>/imm32
<span id="L1427" class="LineNr">1427 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+8)</span>
<span id="L1428" class="LineNr">1428 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1429" class="LineNr">1429 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32

28496
html/apps/mu.subx.html generated

File diff suppressed because it is too large Load Diff

268
html/apps/pack.subx.html generated

File diff suppressed because it is too large Load Diff

View File

@ -72,7 +72,7 @@ if ('onhashchange' in window) {
<span id="L14" class="LineNr">14 </span> compare n, <span class="Constant">1</span>
<span id="L15" class="LineNr">15 </span> <span class="Delimiter">{</span>
<span id="L16" class="LineNr">16 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L17" class="LineNr">17 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;usage: <a href='parse-int.mu.html#L28'>parse-int</a> &lt;integer&gt;\n&quot;</span>
<span id="L17" class="LineNr">17 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;usage: <a href='parse-int.mu.html#L28'>parse-int</a> &lt;integer&gt;\n&quot;</span>
<span id="L18" class="LineNr">18 </span> exit-status <span class="SpecialChar">&lt;-</span> copy <span class="Constant">1</span>
<span id="L19" class="LineNr">19 </span> <span class="PreProc">break</span> $main-body
<span id="L20" class="LineNr">20 </span> <span class="Delimiter">}</span>

View File

@ -72,7 +72,7 @@ if ('onhashchange' in window) {
<span id="L14" class="LineNr">14 </span> compare n, <span class="Constant">1</span>
<span id="L15" class="LineNr">15 </span> <span class="Delimiter">{</span>
<span id="L16" class="LineNr">16 </span> <span class="PreProc">break-if-&gt;</span>
<span id="L17" class="LineNr">17 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;usage: cat &lt;filename&gt;\n&quot;</span>
<span id="L17" class="LineNr">17 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;usage: cat &lt;filename&gt;\n&quot;</span>
<span id="L18" class="LineNr">18 </span> <span class="PreProc">break</span> $main-body
<span id="L19" class="LineNr">19 </span> <span class="Delimiter">}</span>
<span id="L20" class="LineNr">20 </span> <span class="Delimiter">{</span>
@ -90,7 +90,7 @@ if ('onhashchange' in window) {
<span id="L32" class="LineNr">32 </span> compare c, <span class="Constant">0xffffffff</span> <span class="Comment"># EOF marker</span>
<span id="L33" class="LineNr">33 </span> <span class="PreProc">break-if-=</span>
<span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> g/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> copy c
<span id="L35" class="LineNr">35 </span> <a href='../405screen.mu.html#L149'>print-grapheme</a> <span class="Constant">0</span>, g
<span id="L35" class="LineNr">35 </span> <a href='../405screen.mu.html#L206'>print-grapheme</a> <span class="Constant">0</span>, g
<span id="L36" class="LineNr">36 </span> <span class="PreProc">loop</span>
<span id="L37" class="LineNr">37 </span> <span class="Delimiter">}</span>
<span id="L38" class="LineNr">38 </span> <span class="Delimiter">}</span>

View File

@ -458,7 +458,7 @@ if ('onhashchange' in window) {
<span id="L435" class="LineNr"> 435 </span> <span class="subxComment"># setup</span>
<span id="L436" class="LineNr"> 436 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L437" class="LineNr"> 437 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L438" class="LineNr"> 438 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L438" class="LineNr"> 438 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L439" class="LineNr"> 439 </span> <span class="subxS2Comment"># . . call</span>
<span id="L440" class="LineNr"> 440 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L441" class="LineNr"> 441 </span> <span class="subxS2Comment"># . . discard args</span>
@ -488,7 +488,7 @@ if ('onhashchange' in window) {
<span id="L465" class="LineNr"> 465 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== abcd 0x1&quot;)</span>
<span id="L466" class="LineNr"> 466 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L467" class="LineNr"> 467 </span> 68/push <span class="Constant">&quot;== abcd 0x1&quot;</span>/imm32
<span id="L468" class="LineNr"> 468 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L468" class="LineNr"> 468 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L469" class="LineNr"> 469 </span> <span class="subxS2Comment"># . . call</span>
<span id="L470" class="LineNr"> 470 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L471" class="LineNr"> 471 </span> <span class="subxS2Comment"># . . discard args</span>
@ -496,7 +496,7 @@ if ('onhashchange' in window) {
<span id="L473" class="LineNr"> 473 </span> <span class="subxComment"># subx-sigils(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L474" class="LineNr"> 474 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L475" class="LineNr"> 475 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L476" class="LineNr"> 476 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L476" class="LineNr"> 476 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L477" class="LineNr"> 477 </span> <span class="subxS2Comment"># . . call</span>
<span id="L478" class="LineNr"> 478 </span> e8/call <a href='sigils.subx.html#L106'>subx-sigils</a>/disp32
<span id="L479" class="LineNr"> 479 </span> <span class="subxS2Comment"># . . discard args</span>
@ -531,7 +531,7 @@ if ('onhashchange' in window) {
<span id="L533" class="LineNr"> 533 </span> <span class="subxComment"># setup</span>
<span id="L534" class="LineNr"> 534 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L535" class="LineNr"> 535 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L536" class="LineNr"> 536 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L536" class="LineNr"> 536 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L537" class="LineNr"> 537 </span> <span class="subxS2Comment"># . . call</span>
<span id="L538" class="LineNr"> 538 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L539" class="LineNr"> 539 </span> <span class="subxS2Comment"># . . discard args</span>
@ -561,7 +561,7 @@ if ('onhashchange' in window) {
<span id="L563" class="LineNr"> 563 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab %ecx&quot;)</span>
<span id="L564" class="LineNr"> 564 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L565" class="LineNr"> 565 </span> 68/push <span class="Constant">&quot;ab %ecx&quot;</span>/imm32
<span id="L566" class="LineNr"> 566 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L566" class="LineNr"> 566 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L567" class="LineNr"> 567 </span> <span class="subxS2Comment"># . . call</span>
<span id="L568" class="LineNr"> 568 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L569" class="LineNr"> 569 </span> <span class="subxS2Comment"># . . discard args</span>
@ -569,7 +569,7 @@ if ('onhashchange' in window) {
<span id="L571" class="LineNr"> 571 </span> <span class="subxComment"># subx-sigils(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L572" class="LineNr"> 572 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L573" class="LineNr"> 573 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L574" class="LineNr"> 574 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L574" class="LineNr"> 574 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L575" class="LineNr"> 575 </span> <span class="subxS2Comment"># . . call</span>
<span id="L576" class="LineNr"> 576 </span> e8/call <a href='sigils.subx.html#L106'>subx-sigils</a>/disp32
<span id="L577" class="LineNr"> 577 </span> <span class="subxS2Comment"># . . discard args</span>
@ -604,7 +604,7 @@ if ('onhashchange' in window) {
<span id="L631" class="LineNr"> 631 </span> <span class="subxComment"># setup</span>
<span id="L632" class="LineNr"> 632 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L633" class="LineNr"> 633 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L634" class="LineNr"> 634 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L634" class="LineNr"> 634 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L635" class="LineNr"> 635 </span> <span class="subxS2Comment"># . . call</span>
<span id="L636" class="LineNr"> 636 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L637" class="LineNr"> 637 </span> <span class="subxS2Comment"># . . discard args</span>
@ -634,7 +634,7 @@ if ('onhashchange' in window) {
<span id="L661" class="LineNr"> 661 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab %ecx/foo&quot;)</span>
<span id="L662" class="LineNr"> 662 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L663" class="LineNr"> 663 </span> 68/push <span class="Constant">&quot;ab %ecx/foo&quot;</span>/imm32
<span id="L664" class="LineNr"> 664 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L664" class="LineNr"> 664 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L665" class="LineNr"> 665 </span> <span class="subxS2Comment"># . . call</span>
<span id="L666" class="LineNr"> 666 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L667" class="LineNr"> 667 </span> <span class="subxS2Comment"># . . discard args</span>
@ -642,7 +642,7 @@ if ('onhashchange' in window) {
<span id="L669" class="LineNr"> 669 </span> <span class="subxComment"># subx-sigils(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L670" class="LineNr"> 670 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L671" class="LineNr"> 671 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L672" class="LineNr"> 672 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L672" class="LineNr"> 672 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L673" class="LineNr"> 673 </span> <span class="subxS2Comment"># . . call</span>
<span id="L674" class="LineNr"> 674 </span> e8/call <a href='sigils.subx.html#L106'>subx-sigils</a>/disp32
<span id="L675" class="LineNr"> 675 </span> <span class="subxS2Comment"># . . discard args</span>
@ -676,7 +676,7 @@ if ('onhashchange' in window) {
<span id="L703" class="LineNr"> 703 </span> <span class="subxComment"># setup</span>
<span id="L704" class="LineNr"> 704 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L705" class="LineNr"> 705 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L706" class="LineNr"> 706 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L706" class="LineNr"> 706 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L707" class="LineNr"> 707 </span> <span class="subxS2Comment"># . . call</span>
<span id="L708" class="LineNr"> 708 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L709" class="LineNr"> 709 </span> <span class="subxS2Comment"># . . discard args</span>
@ -706,7 +706,7 @@ if ('onhashchange' in window) {
<span id="L733" class="LineNr"> 733 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab *ecx&quot;)</span>
<span id="L734" class="LineNr"> 734 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L735" class="LineNr"> 735 </span> 68/push <span class="Constant">&quot;ab *ecx&quot;</span>/imm32
<span id="L736" class="LineNr"> 736 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L736" class="LineNr"> 736 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L737" class="LineNr"> 737 </span> <span class="subxS2Comment"># . . call</span>
<span id="L738" class="LineNr"> 738 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L739" class="LineNr"> 739 </span> <span class="subxS2Comment"># . . discard args</span>
@ -714,7 +714,7 @@ if ('onhashchange' in window) {
<span id="L741" class="LineNr"> 741 </span> <span class="subxComment"># subx-sigils(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L742" class="LineNr"> 742 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L743" class="LineNr"> 743 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L744" class="LineNr"> 744 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L744" class="LineNr"> 744 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L745" class="LineNr"> 745 </span> <span class="subxS2Comment"># . . call</span>
<span id="L746" class="LineNr"> 746 </span> e8/call <a href='sigils.subx.html#L106'>subx-sigils</a>/disp32
<span id="L747" class="LineNr"> 747 </span> <span class="subxS2Comment"># . . discard args</span>
@ -749,7 +749,7 @@ if ('onhashchange' in window) {
<span id="L801" class="LineNr"> 801 </span> <span class="subxComment"># setup</span>
<span id="L802" class="LineNr"> 802 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L803" class="LineNr"> 803 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L804" class="LineNr"> 804 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L804" class="LineNr"> 804 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L805" class="LineNr"> 805 </span> <span class="subxS2Comment"># . . call</span>
<span id="L806" class="LineNr"> 806 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L807" class="LineNr"> 807 </span> <span class="subxS2Comment"># . . discard args</span>
@ -779,7 +779,7 @@ if ('onhashchange' in window) {
<span id="L831" class="LineNr"> 831 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab *ecx/foo&quot;)</span>
<span id="L832" class="LineNr"> 832 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L833" class="LineNr"> 833 </span> 68/push <span class="Constant">&quot;ab *ecx/foo&quot;</span>/imm32
<span id="L834" class="LineNr"> 834 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L834" class="LineNr"> 834 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L835" class="LineNr"> 835 </span> <span class="subxS2Comment"># . . call</span>
<span id="L836" class="LineNr"> 836 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L837" class="LineNr"> 837 </span> <span class="subxS2Comment"># . . discard args</span>
@ -787,7 +787,7 @@ if ('onhashchange' in window) {
<span id="L839" class="LineNr"> 839 </span> <span class="subxComment"># subx-sigils(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L840" class="LineNr"> 840 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L841" class="LineNr"> 841 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L842" class="LineNr"> 842 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L842" class="LineNr"> 842 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L843" class="LineNr"> 843 </span> <span class="subxS2Comment"># . . call</span>
<span id="L844" class="LineNr"> 844 </span> e8/call <a href='sigils.subx.html#L106'>subx-sigils</a>/disp32
<span id="L845" class="LineNr"> 845 </span> <span class="subxS2Comment"># . . discard args</span>
@ -821,7 +821,7 @@ if ('onhashchange' in window) {
<span id="L873" class="LineNr"> 873 </span> <span class="subxComment"># setup</span>
<span id="L874" class="LineNr"> 874 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L875" class="LineNr"> 875 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L876" class="LineNr"> 876 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L876" class="LineNr"> 876 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L877" class="LineNr"> 877 </span> <span class="subxS2Comment"># . . call</span>
<span id="L878" class="LineNr"> 878 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L879" class="LineNr"> 879 </span> <span class="subxS2Comment"># . . discard args</span>
@ -851,7 +851,7 @@ if ('onhashchange' in window) {
<span id="L903" class="LineNr"> 903 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab *(ecx)&quot;)</span>
<span id="L904" class="LineNr"> 904 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L905" class="LineNr"> 905 </span> 68/push <span class="Constant">&quot;ab *(ecx)&quot;</span>/imm32
<span id="L906" class="LineNr"> 906 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L906" class="LineNr"> 906 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L907" class="LineNr"> 907 </span> <span class="subxS2Comment"># . . call</span>
<span id="L908" class="LineNr"> 908 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L909" class="LineNr"> 909 </span> <span class="subxS2Comment"># . . discard args</span>
@ -859,7 +859,7 @@ if ('onhashchange' in window) {
<span id="L911" class="LineNr"> 911 </span> <span class="subxComment"># subx-sigils(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L912" class="LineNr"> 912 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L913" class="LineNr"> 913 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L914" class="LineNr"> 914 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L914" class="LineNr"> 914 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L915" class="LineNr"> 915 </span> <span class="subxS2Comment"># . . call</span>
<span id="L916" class="LineNr"> 916 </span> e8/call <a href='sigils.subx.html#L106'>subx-sigils</a>/disp32
<span id="L917" class="LineNr"> 917 </span> <span class="subxS2Comment"># . . discard args</span>
@ -894,7 +894,7 @@ if ('onhashchange' in window) {
<span id="L971" class="LineNr"> 971 </span> <span class="subxComment"># setup</span>
<span id="L972" class="LineNr"> 972 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L973" class="LineNr"> 973 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L974" class="LineNr"> 974 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L974" class="LineNr"> 974 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L975" class="LineNr"> 975 </span> <span class="subxS2Comment"># . . call</span>
<span id="L976" class="LineNr"> 976 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L977" class="LineNr"> 977 </span> <span class="subxS2Comment"># . . discard args</span>
@ -924,7 +924,7 @@ if ('onhashchange' in window) {
<span id="L1001" class="LineNr">1001 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab *(ecx+4)&quot;)</span>
<span id="L1002" class="LineNr">1002 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1003" class="LineNr">1003 </span> 68/push <span class="Constant">&quot;ab *(ecx+4)&quot;</span>/imm32
<span id="L1004" class="LineNr">1004 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1004" class="LineNr">1004 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1005" class="LineNr">1005 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1006" class="LineNr">1006 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1007" class="LineNr">1007 </span> <span class="subxS2Comment"># . . discard args</span>
@ -932,7 +932,7 @@ if ('onhashchange' in window) {
<span id="L1009" class="LineNr">1009 </span> <span class="subxComment"># subx-sigils(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L1010" class="LineNr">1010 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1011" class="LineNr">1011 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L1012" class="LineNr">1012 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L1012" class="LineNr">1012 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L1013" class="LineNr">1013 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1014" class="LineNr">1014 </span> e8/call <a href='sigils.subx.html#L106'>subx-sigils</a>/disp32
<span id="L1015" class="LineNr">1015 </span> <span class="subxS2Comment"># . . discard args</span>
@ -968,7 +968,7 @@ if ('onhashchange' in window) {
<span id="L1070" class="LineNr">1070 </span> <span class="subxComment"># setup</span>
<span id="L1071" class="LineNr">1071 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1072" class="LineNr">1072 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1073" class="LineNr">1073 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1073" class="LineNr">1073 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1074" class="LineNr">1074 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1075" class="LineNr">1075 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1076" class="LineNr">1076 </span> <span class="subxS2Comment"># . . discard args</span>
@ -998,7 +998,7 @@ if ('onhashchange' in window) {
<span id="L1100" class="LineNr">1100 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab *(ecx + edx&lt;&lt;3 + 4)&quot;)</span>
<span id="L1101" class="LineNr">1101 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1102" class="LineNr">1102 </span> 68/push <span class="Constant">&quot;ab *(ecx + edx&lt;&lt;3 + 4)&quot;</span>/imm32
<span id="L1103" class="LineNr">1103 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1103" class="LineNr">1103 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1104" class="LineNr">1104 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1105" class="LineNr">1105 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1106" class="LineNr">1106 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1006,7 +1006,7 @@ if ('onhashchange' in window) {
<span id="L1108" class="LineNr">1108 </span> <span class="subxComment"># subx-sigils(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L1109" class="LineNr">1109 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1110" class="LineNr">1110 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L1111" class="LineNr">1111 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L1111" class="LineNr">1111 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L1112" class="LineNr">1112 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1113" class="LineNr">1113 </span> e8/call <a href='sigils.subx.html#L106'>subx-sigils</a>/disp32
<span id="L1114" class="LineNr">1114 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1041,7 +1041,7 @@ if ('onhashchange' in window) {
<span id="L1168" class="LineNr">1168 </span> <span class="subxComment"># setup</span>
<span id="L1169" class="LineNr">1169 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1170" class="LineNr">1170 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1171" class="LineNr">1171 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1171" class="LineNr">1171 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1172" class="LineNr">1172 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1173" class="LineNr">1173 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1174" class="LineNr">1174 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1071,7 +1071,7 @@ if ('onhashchange' in window) {
<span id="L1198" class="LineNr">1198 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab *(ecx + edx&lt;&lt;3 - 4)&quot;)</span>
<span id="L1199" class="LineNr">1199 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1200" class="LineNr">1200 </span> 68/push <span class="Constant">&quot;ab *(ecx + edx&lt;&lt;3 - 4)&quot;</span>/imm32
<span id="L1201" class="LineNr">1201 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1201" class="LineNr">1201 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1202" class="LineNr">1202 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1203" class="LineNr">1203 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1204" class="LineNr">1204 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1079,7 +1079,7 @@ if ('onhashchange' in window) {
<span id="L1206" class="LineNr">1206 </span> <span class="subxComment"># subx-sigils(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L1207" class="LineNr">1207 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1208" class="LineNr">1208 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L1209" class="LineNr">1209 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L1209" class="LineNr">1209 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L1210" class="LineNr">1210 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1211" class="LineNr">1211 </span> e8/call <a href='sigils.subx.html#L106'>subx-sigils</a>/disp32
<span id="L1212" class="LineNr">1212 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1114,7 +1114,7 @@ if ('onhashchange' in window) {
<span id="L1266" class="LineNr">1266 </span> <span class="subxComment"># setup</span>
<span id="L1267" class="LineNr">1267 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1268" class="LineNr">1268 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1269" class="LineNr">1269 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1269" class="LineNr">1269 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1270" class="LineNr">1270 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1271" class="LineNr">1271 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1272" class="LineNr">1272 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1144,7 +1144,7 @@ if ('onhashchange' in window) {
<span id="L1296" class="LineNr">1296 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab *Foo&quot;)</span>
<span id="L1297" class="LineNr">1297 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1298" class="LineNr">1298 </span> 68/push <span class="Constant">&quot;ab *Foo&quot;</span>/imm32
<span id="L1299" class="LineNr">1299 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1299" class="LineNr">1299 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1300" class="LineNr">1300 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1301" class="LineNr">1301 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1302" class="LineNr">1302 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1152,7 +1152,7 @@ if ('onhashchange' in window) {
<span id="L1304" class="LineNr">1304 </span> <span class="subxComment"># subx-sigils(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L1305" class="LineNr">1305 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1306" class="LineNr">1306 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L1307" class="LineNr">1307 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L1307" class="LineNr">1307 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L1308" class="LineNr">1308 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1309" class="LineNr">1309 </span> e8/call <a href='sigils.subx.html#L106'>subx-sigils</a>/disp32
<span id="L1310" class="LineNr">1310 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1599,7 +1599,7 @@ if ('onhashchange' in window) {
<span id="L1849" class="LineNr">1849 </span> <span class="subxComment"># setup</span>
<span id="L1850" class="LineNr">1850 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1851" class="LineNr">1851 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1852" class="LineNr">1852 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1852" class="LineNr">1852 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1853" class="LineNr">1853 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1854" class="LineNr">1854 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1855" class="LineNr">1855 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1611,7 +1611,7 @@ if ('onhashchange' in window) {
<span id="L1861" class="LineNr">1861 </span> <span class="subxComment"># write(_test-input-stream, &quot; ab&quot;)</span>
<span id="L1862" class="LineNr">1862 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1863" class="LineNr">1863 </span> 68/push <span class="Constant">&quot; ab&quot;</span>/imm32
<span id="L1864" class="LineNr">1864 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1864" class="LineNr">1864 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1865" class="LineNr">1865 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1866" class="LineNr">1866 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1867" class="LineNr">1867 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1619,7 +1619,7 @@ if ('onhashchange' in window) {
<span id="L1869" class="LineNr">1869 </span> <span class="subxComment"># next-word-or-expression(_test-input-stream, slice)</span>
<span id="L1870" class="LineNr">1870 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1871" class="LineNr">1871 </span> 51/push-ecx
<span id="L1872" class="LineNr">1872 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1872" class="LineNr">1872 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1873" class="LineNr">1873 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1874" class="LineNr">1874 </span> e8/call <a href='sigils.subx.html#L1624'>next-word-or-expression</a>/disp32
<span id="L1875" class="LineNr">1875 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1628,7 +1628,7 @@ if ('onhashchange' in window) {
<span id="L1878" class="LineNr">1878 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1879" class="LineNr">1879 </span> 68/push <span class="Constant">&quot;F - <a href='sigils.subx.html#L1845'>test-next-word-or-expression</a>/updates-stream-read-correctly&quot;</span>/imm32
<span id="L1880" class="LineNr">1880 </span> 68/push 4/imm32
<span id="L1881" class="LineNr">1881 </span> b8/copy-to-eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1881" class="LineNr">1881 </span> b8/copy-to-eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1882" class="LineNr">1882 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1883" class="LineNr">1883 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1884" class="LineNr">1884 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1641,7 +1641,7 @@ if ('onhashchange' in window) {
<span id="L1891" class="LineNr">1891 </span> 68/push 0xe/imm32
<span id="L1892" class="LineNr">1892 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L1893" class="LineNr">1893 </span> 8b/copy 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to eax</span>
<span id="L1894" class="LineNr">1894 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L1894" class="LineNr">1894 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L1895" class="LineNr">1895 </span> 50/push-eax
<span id="L1896" class="LineNr">1896 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1897" class="LineNr">1897 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1654,7 +1654,7 @@ if ('onhashchange' in window) {
<span id="L1904" class="LineNr">1904 </span> 68/push 0x10/imm32
<span id="L1905" class="LineNr">1905 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L1906" class="LineNr">1906 </span> 8b/copy 1/mod/*+disp8 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ecx+4) to eax</span>
<span id="L1907" class="LineNr">1907 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L1907" class="LineNr">1907 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L1908" class="LineNr">1908 </span> 50/push-eax
<span id="L1909" class="LineNr">1909 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1910" class="LineNr">1910 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1672,7 +1672,7 @@ if ('onhashchange' in window) {
<span id="L1922" class="LineNr">1922 </span> <span class="subxComment"># setup</span>
<span id="L1923" class="LineNr">1923 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1924" class="LineNr">1924 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1925" class="LineNr">1925 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1925" class="LineNr">1925 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1926" class="LineNr">1926 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1927" class="LineNr">1927 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L1928" class="LineNr">1928 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1684,7 +1684,7 @@ if ('onhashchange' in window) {
<span id="L1934" class="LineNr">1934 </span> <span class="subxComment"># write(_test-input-stream, &quot; # a&quot;)</span>
<span id="L1935" class="LineNr">1935 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1936" class="LineNr">1936 </span> 68/push <span class="Constant">&quot; # a&quot;</span>/imm32
<span id="L1937" class="LineNr">1937 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1937" class="LineNr">1937 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1938" class="LineNr">1938 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1939" class="LineNr">1939 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1940" class="LineNr">1940 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1692,7 +1692,7 @@ if ('onhashchange' in window) {
<span id="L1942" class="LineNr">1942 </span> <span class="subxComment"># next-word-or-expression(_test-input-stream, slice)</span>
<span id="L1943" class="LineNr">1943 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1944" class="LineNr">1944 </span> 51/push-ecx
<span id="L1945" class="LineNr">1945 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1945" class="LineNr">1945 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1946" class="LineNr">1946 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1947" class="LineNr">1947 </span> e8/call <a href='sigils.subx.html#L1624'>next-word-or-expression</a>/disp32
<span id="L1948" class="LineNr">1948 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1701,7 +1701,7 @@ if ('onhashchange' in window) {
<span id="L1951" class="LineNr">1951 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1952" class="LineNr">1952 </span> 68/push <span class="Constant">&quot;F - <a href='sigils.subx.html#L1918'>test-next-word-or-expression-returns-whole-comment</a>/updates-stream-read-correctly&quot;</span>/imm32
<span id="L1953" class="LineNr">1953 </span> 68/push 5/imm32
<span id="L1954" class="LineNr">1954 </span> b8/copy-to-eax <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1954" class="LineNr">1954 </span> b8/copy-to-eax <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1955" class="LineNr">1955 </span> ff 6/subop/push 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(eax+4)</span>
<span id="L1956" class="LineNr">1956 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1957" class="LineNr">1957 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1714,7 +1714,7 @@ if ('onhashchange' in window) {
<span id="L1964" class="LineNr">1964 </span> 68/push 0xe/imm32
<span id="L1965" class="LineNr">1965 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L1966" class="LineNr">1966 </span> 8b/copy 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to eax</span>
<span id="L1967" class="LineNr">1967 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L1967" class="LineNr">1967 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L1968" class="LineNr">1968 </span> 50/push-eax
<span id="L1969" class="LineNr">1969 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1970" class="LineNr">1970 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1727,7 +1727,7 @@ if ('onhashchange' in window) {
<span id="L1977" class="LineNr">1977 </span> 68/push 0x11/imm32
<span id="L1978" class="LineNr">1978 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L1979" class="LineNr">1979 </span> 8b/copy 1/mod/*+disp8 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ecx+4) to eax</span>
<span id="L1980" class="LineNr">1980 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L1980" class="LineNr">1980 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L1981" class="LineNr">1981 </span> 50/push-eax
<span id="L1982" class="LineNr">1982 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1983" class="LineNr">1983 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1745,7 +1745,7 @@ if ('onhashchange' in window) {
<span id="L1995" class="LineNr">1995 </span> <span class="subxComment"># setup</span>
<span id="L1996" class="LineNr">1996 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L1997" class="LineNr">1997 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1998" class="LineNr">1998 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1998" class="LineNr">1998 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1999" class="LineNr">1999 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2000" class="LineNr">2000 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L2001" class="LineNr">2001 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1758,7 +1758,7 @@ if ('onhashchange' in window) {
<span id="L2008" class="LineNr">2008 </span> <span class="subxComment"># next-word-or-expression(_test-input-stream, slice)</span>
<span id="L2009" class="LineNr">2009 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2010" class="LineNr">2010 </span> 51/push-ecx
<span id="L2011" class="LineNr">2011 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2011" class="LineNr">2011 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2012" class="LineNr">2012 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2013" class="LineNr">2013 </span> e8/call <a href='sigils.subx.html#L1624'>next-word-or-expression</a>/disp32
<span id="L2014" class="LineNr">2014 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1787,7 +1787,7 @@ if ('onhashchange' in window) {
<span id="L2037" class="LineNr">2037 </span> <span class="subxComment"># setup</span>
<span id="L2038" class="LineNr">2038 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L2039" class="LineNr">2039 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2040" class="LineNr">2040 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2040" class="LineNr">2040 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2041" class="LineNr">2041 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2042" class="LineNr">2042 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L2043" class="LineNr">2043 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1799,7 +1799,7 @@ if ('onhashchange' in window) {
<span id="L2049" class="LineNr">2049 </span> <span class="subxComment"># write(_test-input-stream, &quot; \&quot;a b\&quot;/imm32 &quot;)</span>
<span id="L2050" class="LineNr">2050 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2051" class="LineNr">2051 </span> 68/push <span class="Constant">&quot; \&quot;</span>a b\<span class="Constant">&quot;/imm32 &quot;</span>/imm32
<span id="L2052" class="LineNr">2052 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2052" class="LineNr">2052 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2053" class="LineNr">2053 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2054" class="LineNr">2054 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2055" class="LineNr">2055 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1807,7 +1807,7 @@ if ('onhashchange' in window) {
<span id="L2057" class="LineNr">2057 </span> <span class="subxComment"># next-word-or-expression(_test-input-stream, slice)</span>
<span id="L2058" class="LineNr">2058 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2059" class="LineNr">2059 </span> 51/push-ecx
<span id="L2060" class="LineNr">2060 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2060" class="LineNr">2060 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2061" class="LineNr">2061 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2062" class="LineNr">2062 </span> e8/call <a href='sigils.subx.html#L1624'>next-word-or-expression</a>/disp32
<span id="L2063" class="LineNr">2063 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1819,7 +1819,7 @@ if ('onhashchange' in window) {
<span id="L2069" class="LineNr">2069 </span> 68/push 0xd/imm32
<span id="L2070" class="LineNr">2070 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L2071" class="LineNr">2071 </span> 8b/copy 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to eax</span>
<span id="L2072" class="LineNr">2072 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L2072" class="LineNr">2072 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L2073" class="LineNr">2073 </span> 50/push-eax
<span id="L2074" class="LineNr">2074 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2075" class="LineNr">2075 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1832,7 +1832,7 @@ if ('onhashchange' in window) {
<span id="L2082" class="LineNr">2082 </span> 68/push 0x18/imm32
<span id="L2083" class="LineNr">2083 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L2084" class="LineNr">2084 </span> 8b/copy 1/mod/*+disp8 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ecx+4) to eax</span>
<span id="L2085" class="LineNr">2085 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L2085" class="LineNr">2085 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L2086" class="LineNr">2086 </span> 50/push-eax
<span id="L2087" class="LineNr">2087 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2088" class="LineNr">2088 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1850,7 +1850,7 @@ if ('onhashchange' in window) {
<span id="L2100" class="LineNr">2100 </span> <span class="subxComment"># setup</span>
<span id="L2101" class="LineNr">2101 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L2102" class="LineNr">2102 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2103" class="LineNr">2103 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2103" class="LineNr">2103 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2104" class="LineNr">2104 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2105" class="LineNr">2105 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L2106" class="LineNr">2106 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1862,7 +1862,7 @@ if ('onhashchange' in window) {
<span id="L2112" class="LineNr">2112 </span> <span class="subxComment"># write(_test-input-stream, &quot; \&quot;a\\\&quot;b\&quot;/x&quot;)</span>
<span id="L2113" class="LineNr">2113 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2114" class="LineNr">2114 </span> 68/push <span class="Constant">&quot; \&quot;</span>a\\\<span class="Constant">&quot;b\&quot;</span>/x&quot;/imm32
<span id="L2115" class="LineNr">2115 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2115" class="LineNr">2115 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2116" class="LineNr">2116 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2117" class="LineNr">2117 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2118" class="LineNr">2118 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1870,7 +1870,7 @@ if ('onhashchange' in window) {
<span id="L2120" class="LineNr">2120 </span> <span class="subxComment"># next-word-or-expression(_test-input-stream, slice)</span>
<span id="L2121" class="LineNr">2121 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2122" class="LineNr">2122 </span> 51/push-ecx
<span id="L2123" class="LineNr">2123 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2123" class="LineNr">2123 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2124" class="LineNr">2124 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2125" class="LineNr">2125 </span> e8/call <a href='sigils.subx.html#L1624'>next-word-or-expression</a>/disp32
<span id="L2126" class="LineNr">2126 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1882,7 +1882,7 @@ if ('onhashchange' in window) {
<span id="L2132" class="LineNr">2132 </span> 68/push 0xd/imm32
<span id="L2133" class="LineNr">2133 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L2134" class="LineNr">2134 </span> 8b/copy 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to eax</span>
<span id="L2135" class="LineNr">2135 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L2135" class="LineNr">2135 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L2136" class="LineNr">2136 </span> 50/push-eax
<span id="L2137" class="LineNr">2137 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2138" class="LineNr">2138 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1895,7 +1895,7 @@ if ('onhashchange' in window) {
<span id="L2145" class="LineNr">2145 </span> 68/push 0x15/imm32
<span id="L2146" class="LineNr">2146 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L2147" class="LineNr">2147 </span> 8b/copy 1/mod/*+disp8 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ecx+4) to eax</span>
<span id="L2148" class="LineNr">2148 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L2148" class="LineNr">2148 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L2149" class="LineNr">2149 </span> 50/push-eax
<span id="L2150" class="LineNr">2150 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2151" class="LineNr">2151 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1913,7 +1913,7 @@ if ('onhashchange' in window) {
<span id="L2163" class="LineNr">2163 </span> <span class="subxComment"># setup</span>
<span id="L2164" class="LineNr">2164 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L2165" class="LineNr">2165 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2166" class="LineNr">2166 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2166" class="LineNr">2166 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2167" class="LineNr">2167 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2168" class="LineNr">2168 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L2169" class="LineNr">2169 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1925,7 +1925,7 @@ if ('onhashchange' in window) {
<span id="L2175" class="LineNr">2175 </span> <span class="subxComment"># write(_test-input-stream, &quot; *(a b)/imm32 &quot;)</span>
<span id="L2176" class="LineNr">2176 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2177" class="LineNr">2177 </span> 68/push <span class="Constant">&quot; *(a b)/imm32 &quot;</span>/imm32
<span id="L2178" class="LineNr">2178 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2178" class="LineNr">2178 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2179" class="LineNr">2179 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2180" class="LineNr">2180 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2181" class="LineNr">2181 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1933,7 +1933,7 @@ if ('onhashchange' in window) {
<span id="L2183" class="LineNr">2183 </span> <span class="subxComment"># next-word-or-expression(_test-input-stream, slice)</span>
<span id="L2184" class="LineNr">2184 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2185" class="LineNr">2185 </span> 51/push-ecx
<span id="L2186" class="LineNr">2186 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2186" class="LineNr">2186 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2187" class="LineNr">2187 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2188" class="LineNr">2188 </span> e8/call <a href='sigils.subx.html#L1624'>next-word-or-expression</a>/disp32
<span id="L2189" class="LineNr">2189 </span> <span class="subxS2Comment"># . . discard args</span>
@ -1945,7 +1945,7 @@ if ('onhashchange' in window) {
<span id="L2195" class="LineNr">2195 </span> 68/push 0xd/imm32
<span id="L2196" class="LineNr">2196 </span> <span class="subxS2Comment"># . . push slice-&gt;start - _test-input-stream</span>
<span id="L2197" class="LineNr">2197 </span> 8b/copy 0/mod/indirect 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy *ecx to eax</span>
<span id="L2198" class="LineNr">2198 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L2198" class="LineNr">2198 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L2199" class="LineNr">2199 </span> 50/push-eax
<span id="L2200" class="LineNr">2200 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2201" class="LineNr">2201 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32
@ -1958,7 +1958,7 @@ if ('onhashchange' in window) {
<span id="L2208" class="LineNr">2208 </span> 68/push 0x19/imm32
<span id="L2209" class="LineNr">2209 </span> <span class="subxS2Comment"># . . push slice-&gt;end - _test-input-stream</span>
<span id="L2210" class="LineNr">2210 </span> 8b/copy 1/mod/*+disp8 1/rm32/ecx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ecx+4) to eax</span>
<span id="L2211" class="LineNr">2211 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L2211" class="LineNr">2211 </span> 81 5/subop/subtract 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32 <span class="subxComment"># subtract from eax</span>
<span id="L2212" class="LineNr">2212 </span> 50/push-eax
<span id="L2213" class="LineNr">2213 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2214" class="LineNr">2214 </span> e8/call <a href='../102test.subx.html#L23'>check-ints-equal</a>/disp32

View File

@ -303,7 +303,7 @@ if ('onhashchange' in window) {
<span id="L240" class="LineNr"> 240 </span> <span class="subxComment"># setup</span>
<span id="L241" class="LineNr"> 241 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L242" class="LineNr"> 242 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L243" class="LineNr"> 243 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L243" class="LineNr"> 243 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L244" class="LineNr"> 244 </span> <span class="subxS2Comment"># . . call</span>
<span id="L245" class="LineNr"> 245 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L246" class="LineNr"> 246 </span> <span class="subxS2Comment"># . . discard args</span>
@ -333,7 +333,7 @@ if ('onhashchange' in window) {
<span id="L270" class="LineNr"> 270 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== code 0x1\n&quot;)</span>
<span id="L271" class="LineNr"> 271 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L272" class="LineNr"> 272 </span> 68/push <span class="Constant">&quot;== code 0x1\n&quot;</span>/imm32
<span id="L273" class="LineNr"> 273 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L273" class="LineNr"> 273 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L274" class="LineNr"> 274 </span> <span class="subxS2Comment"># . . call</span>
<span id="L275" class="LineNr"> 275 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L276" class="LineNr"> 276 </span> <span class="subxS2Comment"># . . discard args</span>
@ -341,7 +341,7 @@ if ('onhashchange' in window) {
<span id="L278" class="LineNr"> 278 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;Entry:\n&quot;)</span>
<span id="L279" class="LineNr"> 279 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L280" class="LineNr"> 280 </span> 68/push <span class="Constant">&quot;Entry:\n&quot;</span>/imm32
<span id="L281" class="LineNr"> 281 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L281" class="LineNr"> 281 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L282" class="LineNr"> 282 </span> <span class="subxS2Comment"># . . call</span>
<span id="L283" class="LineNr"> 283 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L284" class="LineNr"> 284 </span> <span class="subxS2Comment"># . . discard args</span>
@ -349,7 +349,7 @@ if ('onhashchange' in window) {
<span id="L286" class="LineNr"> 286 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab x/imm32\n&quot;)</span>
<span id="L287" class="LineNr"> 287 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L288" class="LineNr"> 288 </span> 68/push <span class="Constant">&quot;ab x/imm32\n&quot;</span>/imm32
<span id="L289" class="LineNr"> 289 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L289" class="LineNr"> 289 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L290" class="LineNr"> 290 </span> <span class="subxS2Comment"># . . call</span>
<span id="L291" class="LineNr"> 291 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L292" class="LineNr"> 292 </span> <span class="subxS2Comment"># . . discard args</span>
@ -357,7 +357,7 @@ if ('onhashchange' in window) {
<span id="L294" class="LineNr"> 294 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== data 0x1000\n&quot;)</span>
<span id="L295" class="LineNr"> 295 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L296" class="LineNr"> 296 </span> 68/push <span class="Constant">&quot;== data 0x1000\n&quot;</span>/imm32
<span id="L297" class="LineNr"> 297 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L297" class="LineNr"> 297 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L298" class="LineNr"> 298 </span> <span class="subxS2Comment"># . . call</span>
<span id="L299" class="LineNr"> 299 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L300" class="LineNr"> 300 </span> <span class="subxS2Comment"># . . discard args</span>
@ -365,7 +365,7 @@ if ('onhashchange' in window) {
<span id="L302" class="LineNr"> 302 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;x:\n&quot;)</span>
<span id="L303" class="LineNr"> 303 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L304" class="LineNr"> 304 </span> 68/push <span class="Constant">&quot;x:\n&quot;</span>/imm32
<span id="L305" class="LineNr"> 305 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L305" class="LineNr"> 305 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L306" class="LineNr"> 306 </span> <span class="subxS2Comment"># . . call</span>
<span id="L307" class="LineNr"> 307 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L308" class="LineNr"> 308 </span> <span class="subxS2Comment"># . . discard args</span>
@ -373,7 +373,7 @@ if ('onhashchange' in window) {
<span id="L310" class="LineNr"> 310 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;01\n&quot;)</span>
<span id="L311" class="LineNr"> 311 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L312" class="LineNr"> 312 </span> 68/push <span class="Constant">&quot;01\n&quot;</span>/imm32
<span id="L313" class="LineNr"> 313 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L313" class="LineNr"> 313 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L314" class="LineNr"> 314 </span> <span class="subxS2Comment"># . . call</span>
<span id="L315" class="LineNr"> 315 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L316" class="LineNr"> 316 </span> <span class="subxS2Comment"># . . discard args</span>
@ -381,7 +381,7 @@ if ('onhashchange' in window) {
<span id="L318" class="LineNr"> 318 </span> <span class="subxComment"># subx-survey(_test-input-buffered-file, _test-output-buffered-file)</span>
<span id="L319" class="LineNr"> 319 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L320" class="LineNr"> 320 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L321" class="LineNr"> 321 </span> 68/push <a href='../112read-byte.subx.html#L313'>_test-input-buffered-file</a>/imm32
<span id="L321" class="LineNr"> 321 </span> 68/push <a href='../112read-byte.subx.html#L357'>_test-input-buffered-file</a>/imm32
<span id="L322" class="LineNr"> 322 </span> <span class="subxS2Comment"># . . call</span>
<span id="L323" class="LineNr"> 323 </span> e8/call <a href='survey.subx.html#L115'>subx-survey</a>/disp32
<span id="L324" class="LineNr"> 324 </span> <span class="subxS2Comment"># . . discard args</span>
@ -913,7 +913,7 @@ if ('onhashchange' in window) {
<span id="L947" class="LineNr"> 947 </span> <span class="subxComment"># setup</span>
<span id="L948" class="LineNr"> 948 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L949" class="LineNr"> 949 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L950" class="LineNr"> 950 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L950" class="LineNr"> 950 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L951" class="LineNr"> 951 </span> <span class="subxS2Comment"># . . call</span>
<span id="L952" class="LineNr"> 952 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L953" class="LineNr"> 953 </span> <span class="subxS2Comment"># . . discard args</span>
@ -934,7 +934,7 @@ if ('onhashchange' in window) {
<span id="L968" class="LineNr"> 968 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== code 0x1\n&quot;)</span>
<span id="L969" class="LineNr"> 969 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L970" class="LineNr"> 970 </span> 68/push <span class="Constant">&quot;== code 0x1\n&quot;</span>/imm32
<span id="L971" class="LineNr"> 971 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L971" class="LineNr"> 971 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L972" class="LineNr"> 972 </span> <span class="subxS2Comment"># . . call</span>
<span id="L973" class="LineNr"> 973 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L974" class="LineNr"> 974 </span> <span class="subxS2Comment"># . . discard args</span>
@ -942,7 +942,7 @@ if ('onhashchange' in window) {
<span id="L976" class="LineNr"> 976 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab x/imm32 # skip comment\n&quot;)</span>
<span id="L977" class="LineNr"> 977 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L978" class="LineNr"> 978 </span> 68/push <span class="Constant">&quot;ab x/imm32 # skip comment\n&quot;</span>/imm32
<span id="L979" class="LineNr"> 979 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L979" class="LineNr"> 979 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L980" class="LineNr"> 980 </span> <span class="subxS2Comment"># . . call</span>
<span id="L981" class="LineNr"> 981 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L982" class="LineNr"> 982 </span> <span class="subxS2Comment"># . . discard args</span>
@ -950,7 +950,7 @@ if ('onhashchange' in window) {
<span id="L984" class="LineNr"> 984 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== data 0x1000\n&quot;)</span>
<span id="L985" class="LineNr"> 985 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L986" class="LineNr"> 986 </span> 68/push <span class="Constant">&quot;== data 0x1000\n&quot;</span>/imm32
<span id="L987" class="LineNr"> 987 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L987" class="LineNr"> 987 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L988" class="LineNr"> 988 </span> <span class="subxS2Comment"># . . call</span>
<span id="L989" class="LineNr"> 989 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L990" class="LineNr"> 990 </span> <span class="subxS2Comment"># . . discard args</span>
@ -958,7 +958,7 @@ if ('onhashchange' in window) {
<span id="L992" class="LineNr"> 992 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;00\n&quot;)</span>
<span id="L993" class="LineNr"> 993 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L994" class="LineNr"> 994 </span> 68/push <span class="Constant">&quot;00\n&quot;</span>/imm32
<span id="L995" class="LineNr"> 995 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L995" class="LineNr"> 995 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L996" class="LineNr"> 996 </span> <span class="subxS2Comment"># . . call</span>
<span id="L997" class="LineNr"> 997 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L998" class="LineNr"> 998 </span> <span class="subxS2Comment"># . . discard args</span>
@ -966,7 +966,7 @@ if ('onhashchange' in window) {
<span id="L1000" class="LineNr">1000 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;x:\n&quot;)</span>
<span id="L1001" class="LineNr">1001 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1002" class="LineNr">1002 </span> 68/push <span class="Constant">&quot;x:\n&quot;</span>/imm32
<span id="L1003" class="LineNr">1003 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1003" class="LineNr">1003 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1004" class="LineNr">1004 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1005" class="LineNr">1005 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1006" class="LineNr">1006 </span> <span class="subxS2Comment"># . . discard args</span>
@ -974,7 +974,7 @@ if ('onhashchange' in window) {
<span id="L1008" class="LineNr">1008 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;34\n&quot;)</span>
<span id="L1009" class="LineNr">1009 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1010" class="LineNr">1010 </span> 68/push <span class="Constant">&quot;34\n&quot;</span>/imm32
<span id="L1011" class="LineNr">1011 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1011" class="LineNr">1011 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1012" class="LineNr">1012 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1013" class="LineNr">1013 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L1014" class="LineNr">1014 </span> <span class="subxS2Comment"># . . discard args</span>
@ -983,7 +983,7 @@ if ('onhashchange' in window) {
<span id="L1017" class="LineNr">1017 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L1018" class="LineNr">1018 </span> 52/push-edx
<span id="L1019" class="LineNr">1019 </span> 51/push-ecx
<span id="L1020" class="LineNr">1020 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L1020" class="LineNr">1020 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L1021" class="LineNr">1021 </span> <span class="subxS2Comment"># . . call</span>
<span id="L1022" class="LineNr">1022 </span> e8/call <a href='survey.subx.html#L407'>compute-offsets</a>/disp32
<span id="L1023" class="LineNr">1023 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2105,7 +2105,7 @@ if ('onhashchange' in window) {
<span id="L2433" class="LineNr">2433 </span> <span class="subxComment"># setup</span>
<span id="L2434" class="LineNr">2434 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L2435" class="LineNr">2435 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2436" class="LineNr">2436 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2436" class="LineNr">2436 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2437" class="LineNr">2437 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2438" class="LineNr">2438 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L2439" class="LineNr">2439 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2138,7 +2138,7 @@ if ('onhashchange' in window) {
<span id="L2466" class="LineNr">2466 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== code 0x1000\n&quot;)</span>
<span id="L2467" class="LineNr">2467 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2468" class="LineNr">2468 </span> 68/push <span class="Constant">&quot;== code 0x1000\n&quot;</span>/imm32
<span id="L2469" class="LineNr">2469 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2469" class="LineNr">2469 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2470" class="LineNr">2470 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2471" class="LineNr">2471 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2472" class="LineNr">2472 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2146,7 +2146,7 @@ if ('onhashchange' in window) {
<span id="L2474" class="LineNr">2474 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab cd ef gh\n&quot;)</span>
<span id="L2475" class="LineNr">2475 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2476" class="LineNr">2476 </span> 68/push <span class="Constant">&quot;ab cd ef gh\n&quot;</span>/imm32
<span id="L2477" class="LineNr">2477 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2477" class="LineNr">2477 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2478" class="LineNr">2478 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2479" class="LineNr">2479 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2480" class="LineNr">2480 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2154,7 +2154,7 @@ if ('onhashchange' in window) {
<span id="L2482" class="LineNr">2482 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ij x/disp32\n&quot;)</span>
<span id="L2483" class="LineNr">2483 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2484" class="LineNr">2484 </span> 68/push <span class="Constant">&quot;ij x/disp32\n&quot;</span>/imm32
<span id="L2485" class="LineNr">2485 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2485" class="LineNr">2485 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2486" class="LineNr">2486 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2487" class="LineNr">2487 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2488" class="LineNr">2488 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2162,7 +2162,7 @@ if ('onhashchange' in window) {
<span id="L2490" class="LineNr">2490 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== data 0x2000\n&quot;)</span>
<span id="L2491" class="LineNr">2491 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2492" class="LineNr">2492 </span> 68/push <span class="Constant">&quot;== data 0x2000\n&quot;</span>/imm32
<span id="L2493" class="LineNr">2493 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2493" class="LineNr">2493 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2494" class="LineNr">2494 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2495" class="LineNr">2495 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2496" class="LineNr">2496 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2170,7 +2170,7 @@ if ('onhashchange' in window) {
<span id="L2498" class="LineNr">2498 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;00\n&quot;)</span>
<span id="L2499" class="LineNr">2499 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2500" class="LineNr">2500 </span> 68/push <span class="Constant">&quot;00\n&quot;</span>/imm32
<span id="L2501" class="LineNr">2501 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2501" class="LineNr">2501 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2502" class="LineNr">2502 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2503" class="LineNr">2503 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2504" class="LineNr">2504 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2178,7 +2178,7 @@ if ('onhashchange' in window) {
<span id="L2506" class="LineNr">2506 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;x:\n&quot;)</span>
<span id="L2507" class="LineNr">2507 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2508" class="LineNr">2508 </span> 68/push <span class="Constant">&quot;x:\n&quot;</span>/imm32
<span id="L2509" class="LineNr">2509 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2509" class="LineNr">2509 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2510" class="LineNr">2510 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2511" class="LineNr">2511 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2512" class="LineNr">2512 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2186,7 +2186,7 @@ if ('onhashchange' in window) {
<span id="L2514" class="LineNr">2514 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;34\n&quot;)</span>
<span id="L2515" class="LineNr">2515 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2516" class="LineNr">2516 </span> 68/push <span class="Constant">&quot;34\n&quot;</span>/imm32
<span id="L2517" class="LineNr">2517 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2517" class="LineNr">2517 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2518" class="LineNr">2518 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2519" class="LineNr">2519 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2520" class="LineNr">2520 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2221,7 +2221,7 @@ if ('onhashchange' in window) {
<span id="L2549" class="LineNr">2549 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2550" class="LineNr">2550 </span> 52/push-edx
<span id="L2551" class="LineNr">2551 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L2552" class="LineNr">2552 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2552" class="LineNr">2552 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2553" class="LineNr">2553 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2554" class="LineNr">2554 </span> e8/call <a href='survey.subx.html#L1823'>emit-segments</a>/disp32
<span id="L2555" class="LineNr">2555 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2300,7 +2300,7 @@ if ('onhashchange' in window) {
<span id="L2660" class="LineNr">2660 </span> <span class="subxComment"># setup</span>
<span id="L2661" class="LineNr">2661 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L2662" class="LineNr">2662 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2663" class="LineNr">2663 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2663" class="LineNr">2663 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2664" class="LineNr">2664 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2665" class="LineNr">2665 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L2666" class="LineNr">2666 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2333,7 +2333,7 @@ if ('onhashchange' in window) {
<span id="L2693" class="LineNr">2693 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== code 0x1000\n&quot;)</span>
<span id="L2694" class="LineNr">2694 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2695" class="LineNr">2695 </span> 68/push <span class="Constant">&quot;== code 0x1000\n&quot;</span>/imm32
<span id="L2696" class="LineNr">2696 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2696" class="LineNr">2696 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2697" class="LineNr">2697 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2698" class="LineNr">2698 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2699" class="LineNr">2699 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2341,7 +2341,7 @@ if ('onhashchange' in window) {
<span id="L2701" class="LineNr">2701 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab cd\n&quot;)</span>
<span id="L2702" class="LineNr">2702 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2703" class="LineNr">2703 </span> 68/push <span class="Constant">&quot;ab cd\n&quot;</span>/imm32
<span id="L2704" class="LineNr">2704 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2704" class="LineNr">2704 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2705" class="LineNr">2705 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2706" class="LineNr">2706 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2707" class="LineNr">2707 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2349,7 +2349,7 @@ if ('onhashchange' in window) {
<span id="L2709" class="LineNr">2709 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;l1:\n&quot;)</span>
<span id="L2710" class="LineNr">2710 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2711" class="LineNr">2711 </span> 68/push <span class="Constant">&quot;l1:\n&quot;</span>/imm32
<span id="L2712" class="LineNr">2712 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2712" class="LineNr">2712 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2713" class="LineNr">2713 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2714" class="LineNr">2714 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2715" class="LineNr">2715 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2357,7 +2357,7 @@ if ('onhashchange' in window) {
<span id="L2717" class="LineNr">2717 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot; ef gh\n&quot;)</span>
<span id="L2718" class="LineNr">2718 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2719" class="LineNr">2719 </span> 68/push <span class="Constant">&quot; ef gh\n&quot;</span>/imm32
<span id="L2720" class="LineNr">2720 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2720" class="LineNr">2720 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2721" class="LineNr">2721 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2722" class="LineNr">2722 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2723" class="LineNr">2723 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2365,7 +2365,7 @@ if ('onhashchange' in window) {
<span id="L2725" class="LineNr">2725 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot; ij l1/disp32\n&quot;)</span>
<span id="L2726" class="LineNr">2726 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2727" class="LineNr">2727 </span> 68/push <span class="Constant">&quot; ij l1/disp32\n&quot;</span>/imm32
<span id="L2728" class="LineNr">2728 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2728" class="LineNr">2728 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2729" class="LineNr">2729 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2730" class="LineNr">2730 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2731" class="LineNr">2731 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2400,7 +2400,7 @@ if ('onhashchange' in window) {
<span id="L2760" class="LineNr">2760 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2761" class="LineNr">2761 </span> 52/push-edx
<span id="L2762" class="LineNr">2762 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L2763" class="LineNr">2763 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2763" class="LineNr">2763 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2764" class="LineNr">2764 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2765" class="LineNr">2765 </span> e8/call <a href='survey.subx.html#L1823'>emit-segments</a>/disp32
<span id="L2766" class="LineNr">2766 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2470,7 +2470,7 @@ if ('onhashchange' in window) {
<span id="L2862" class="LineNr">2862 </span> <span class="subxComment"># setup</span>
<span id="L2863" class="LineNr">2863 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L2864" class="LineNr">2864 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2865" class="LineNr">2865 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2865" class="LineNr">2865 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2866" class="LineNr">2866 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2867" class="LineNr">2867 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L2868" class="LineNr">2868 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2503,7 +2503,7 @@ if ('onhashchange' in window) {
<span id="L2895" class="LineNr">2895 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== code 0x1000\n&quot;)</span>
<span id="L2896" class="LineNr">2896 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2897" class="LineNr">2897 </span> 68/push <span class="Constant">&quot;== code 0x1000\n&quot;</span>/imm32
<span id="L2898" class="LineNr">2898 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2898" class="LineNr">2898 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2899" class="LineNr">2899 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2900" class="LineNr">2900 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2901" class="LineNr">2901 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2511,7 +2511,7 @@ if ('onhashchange' in window) {
<span id="L2903" class="LineNr">2903 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab cd\n&quot;)</span>
<span id="L2904" class="LineNr">2904 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2905" class="LineNr">2905 </span> 68/push <span class="Constant">&quot;ab cd\n&quot;</span>/imm32
<span id="L2906" class="LineNr">2906 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2906" class="LineNr">2906 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2907" class="LineNr">2907 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2908" class="LineNr">2908 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2909" class="LineNr">2909 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2519,7 +2519,7 @@ if ('onhashchange' in window) {
<span id="L2911" class="LineNr">2911 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;l1:\n&quot;)</span>
<span id="L2912" class="LineNr">2912 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2913" class="LineNr">2913 </span> 68/push <span class="Constant">&quot;l1:\n&quot;</span>/imm32
<span id="L2914" class="LineNr">2914 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2914" class="LineNr">2914 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2915" class="LineNr">2915 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2916" class="LineNr">2916 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2917" class="LineNr">2917 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2527,7 +2527,7 @@ if ('onhashchange' in window) {
<span id="L2919" class="LineNr">2919 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot; ef gh\n&quot;)</span>
<span id="L2920" class="LineNr">2920 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2921" class="LineNr">2921 </span> 68/push <span class="Constant">&quot; ef gh\n&quot;</span>/imm32
<span id="L2922" class="LineNr">2922 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2922" class="LineNr">2922 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2923" class="LineNr">2923 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2924" class="LineNr">2924 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2925" class="LineNr">2925 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2535,7 +2535,7 @@ if ('onhashchange' in window) {
<span id="L2927" class="LineNr">2927 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot; ij l1/imm32\n&quot;)</span>
<span id="L2928" class="LineNr">2928 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2929" class="LineNr">2929 </span> 68/push <span class="Constant">&quot; ij l1/imm32\n&quot;</span>/imm32
<span id="L2930" class="LineNr">2930 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2930" class="LineNr">2930 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2931" class="LineNr">2931 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2932" class="LineNr">2932 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L2933" class="LineNr">2933 </span> <span class="subxS2Comment"># . . discard args</span>
@ -2570,7 +2570,7 @@ if ('onhashchange' in window) {
<span id="L2962" class="LineNr">2962 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L2963" class="LineNr">2963 </span> 52/push-edx
<span id="L2964" class="LineNr">2964 </span> 68/push <a href='../115write-byte.subx.html#L359'>_test-output-buffered-file</a>/imm32
<span id="L2965" class="LineNr">2965 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L2965" class="LineNr">2965 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L2966" class="LineNr">2966 </span> <span class="subxS2Comment"># . . call</span>
<span id="L2967" class="LineNr">2967 </span> e8/call <a href='survey.subx.html#L1823'>emit-segments</a>/disp32
<span id="L2968" class="LineNr">2968 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3693,7 +3693,7 @@ if ('onhashchange' in window) {
<span id="L4376" class="LineNr">4376 </span> <span class="subxComment"># setup</span>
<span id="L4377" class="LineNr">4377 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L4378" class="LineNr">4378 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4379" class="LineNr">4379 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4379" class="LineNr">4379 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4380" class="LineNr">4380 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4381" class="LineNr">4381 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L4382" class="LineNr">4382 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3708,7 +3708,7 @@ if ('onhashchange' in window) {
<span id="L4391" class="LineNr">4391 </span> <span class="subxComment"># no contents in input</span>
<span id="L4392" class="LineNr">4392 </span> <span class="subxComment"># eax = num-bytes(_test-input-stream)</span>
<span id="L4393" class="LineNr">4393 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4394" class="LineNr">4394 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4394" class="LineNr">4394 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4395" class="LineNr">4395 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4396" class="LineNr">4396 </span> e8/call <a href='survey.subx.html#L4174'>num-bytes</a>/disp32
<span id="L4397" class="LineNr">4397 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3735,7 +3735,7 @@ if ('onhashchange' in window) {
<span id="L4418" class="LineNr">4418 </span> <span class="subxComment"># setup</span>
<span id="L4419" class="LineNr">4419 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L4420" class="LineNr">4420 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4421" class="LineNr">4421 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4421" class="LineNr">4421 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4422" class="LineNr">4422 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4423" class="LineNr">4423 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L4424" class="LineNr">4424 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3751,14 +3751,14 @@ if ('onhashchange' in window) {
<span id="L4434" class="LineNr">4434 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;# abcd&quot;)</span>
<span id="L4435" class="LineNr">4435 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4436" class="LineNr">4436 </span> 68/push <span class="Constant">&quot;# abcd&quot;</span>/imm32
<span id="L4437" class="LineNr">4437 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4437" class="LineNr">4437 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4438" class="LineNr">4438 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4439" class="LineNr">4439 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L4440" class="LineNr">4440 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L4441" class="LineNr">4441 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L4442" class="LineNr">4442 </span> <span class="subxComment"># eax = num-bytes(_test-input-stream)</span>
<span id="L4443" class="LineNr">4443 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4444" class="LineNr">4444 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4444" class="LineNr">4444 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4445" class="LineNr">4445 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4446" class="LineNr">4446 </span> e8/call <a href='survey.subx.html#L4174'>num-bytes</a>/disp32
<span id="L4447" class="LineNr">4447 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3785,7 +3785,7 @@ if ('onhashchange' in window) {
<span id="L4468" class="LineNr">4468 </span> <span class="subxComment"># setup</span>
<span id="L4469" class="LineNr">4469 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L4470" class="LineNr">4470 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4471" class="LineNr">4471 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4471" class="LineNr">4471 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4472" class="LineNr">4472 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4473" class="LineNr">4473 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L4474" class="LineNr">4474 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3801,14 +3801,14 @@ if ('onhashchange' in window) {
<span id="L4484" class="LineNr">4484 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab: # cd&quot;)</span>
<span id="L4485" class="LineNr">4485 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4486" class="LineNr">4486 </span> 68/push <span class="Constant">&quot;ab: # cd&quot;</span>/imm32
<span id="L4487" class="LineNr">4487 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4487" class="LineNr">4487 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4488" class="LineNr">4488 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4489" class="LineNr">4489 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L4490" class="LineNr">4490 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L4491" class="LineNr">4491 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L4492" class="LineNr">4492 </span> <span class="subxComment"># eax = num-bytes(_test-input-stream)</span>
<span id="L4493" class="LineNr">4493 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4494" class="LineNr">4494 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4494" class="LineNr">4494 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4495" class="LineNr">4495 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4496" class="LineNr">4496 </span> e8/call <a href='survey.subx.html#L4174'>num-bytes</a>/disp32
<span id="L4497" class="LineNr">4497 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3835,7 +3835,7 @@ if ('onhashchange' in window) {
<span id="L4518" class="LineNr">4518 </span> <span class="subxComment"># setup</span>
<span id="L4519" class="LineNr">4519 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L4520" class="LineNr">4520 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4521" class="LineNr">4521 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4521" class="LineNr">4521 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4522" class="LineNr">4522 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4523" class="LineNr">4523 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L4524" class="LineNr">4524 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3851,14 +3851,14 @@ if ('onhashchange' in window) {
<span id="L4534" class="LineNr">4534 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;== ab cd&quot;)</span>
<span id="L4535" class="LineNr">4535 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4536" class="LineNr">4536 </span> 68/push <span class="Constant">&quot;== ab cd&quot;</span>/imm32
<span id="L4537" class="LineNr">4537 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4537" class="LineNr">4537 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4538" class="LineNr">4538 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4539" class="LineNr">4539 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L4540" class="LineNr">4540 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L4541" class="LineNr">4541 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L4542" class="LineNr">4542 </span> <span class="subxComment"># eax = num-bytes(_test-input-stream)</span>
<span id="L4543" class="LineNr">4543 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4544" class="LineNr">4544 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4544" class="LineNr">4544 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4545" class="LineNr">4545 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4546" class="LineNr">4546 </span> e8/call <a href='survey.subx.html#L4174'>num-bytes</a>/disp32
<span id="L4547" class="LineNr">4547 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3885,7 +3885,7 @@ if ('onhashchange' in window) {
<span id="L4568" class="LineNr">4568 </span> <span class="subxComment"># setup</span>
<span id="L4569" class="LineNr">4569 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L4570" class="LineNr">4570 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4571" class="LineNr">4571 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4571" class="LineNr">4571 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4572" class="LineNr">4572 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4573" class="LineNr">4573 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L4574" class="LineNr">4574 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3901,14 +3901,14 @@ if ('onhashchange' in window) {
<span id="L4584" class="LineNr">4584 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab cd ef&quot;)</span>
<span id="L4585" class="LineNr">4585 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4586" class="LineNr">4586 </span> 68/push <span class="Constant">&quot;ab cd ef&quot;</span>/imm32
<span id="L4587" class="LineNr">4587 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4587" class="LineNr">4587 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4588" class="LineNr">4588 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4589" class="LineNr">4589 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L4590" class="LineNr">4590 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L4591" class="LineNr">4591 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L4592" class="LineNr">4592 </span> <span class="subxComment"># eax = num-bytes(_test-input-stream)</span>
<span id="L4593" class="LineNr">4593 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4594" class="LineNr">4594 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4594" class="LineNr">4594 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4595" class="LineNr">4595 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4596" class="LineNr">4596 </span> e8/call <a href='survey.subx.html#L4174'>num-bytes</a>/disp32
<span id="L4597" class="LineNr">4597 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3935,7 +3935,7 @@ if ('onhashchange' in window) {
<span id="L4618" class="LineNr">4618 </span> <span class="subxComment"># setup</span>
<span id="L4619" class="LineNr">4619 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L4620" class="LineNr">4620 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4621" class="LineNr">4621 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4621" class="LineNr">4621 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4622" class="LineNr">4622 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4623" class="LineNr">4623 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L4624" class="LineNr">4624 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3951,14 +3951,14 @@ if ('onhashchange' in window) {
<span id="L4634" class="LineNr">4634 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab cd # ef&quot;)</span>
<span id="L4635" class="LineNr">4635 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4636" class="LineNr">4636 </span> 68/push <span class="Constant">&quot;ab cd # ef&quot;</span>/imm32
<span id="L4637" class="LineNr">4637 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4637" class="LineNr">4637 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4638" class="LineNr">4638 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4639" class="LineNr">4639 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L4640" class="LineNr">4640 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L4641" class="LineNr">4641 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L4642" class="LineNr">4642 </span> <span class="subxComment"># eax = num-bytes(_test-input-stream)</span>
<span id="L4643" class="LineNr">4643 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4644" class="LineNr">4644 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4644" class="LineNr">4644 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4645" class="LineNr">4645 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4646" class="LineNr">4646 </span> e8/call <a href='survey.subx.html#L4174'>num-bytes</a>/disp32
<span id="L4647" class="LineNr">4647 </span> <span class="subxS2Comment"># . . discard args</span>
@ -3985,7 +3985,7 @@ if ('onhashchange' in window) {
<span id="L4668" class="LineNr">4668 </span> <span class="subxComment"># setup</span>
<span id="L4669" class="LineNr">4669 </span> <span class="subxS1Comment"># . clear-stream(_test-input-stream)</span>
<span id="L4670" class="LineNr">4670 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4671" class="LineNr">4671 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4671" class="LineNr">4671 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4672" class="LineNr">4672 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4673" class="LineNr">4673 </span> e8/call <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
<span id="L4674" class="LineNr">4674 </span> <span class="subxS2Comment"># . . discard args</span>
@ -4001,14 +4001,14 @@ if ('onhashchange' in window) {
<span id="L4684" class="LineNr">4684 </span> <span class="subxS1Comment"># . write(_test-input-stream, &quot;ab cd/imm32 ef&quot;)</span>
<span id="L4685" class="LineNr">4685 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4686" class="LineNr">4686 </span> 68/push <span class="Constant">&quot;ab cd/imm32 ef&quot;</span>/imm32
<span id="L4687" class="LineNr">4687 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4687" class="LineNr">4687 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4688" class="LineNr">4688 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4689" class="LineNr">4689 </span> e8/call <a href='../108write.subx.html#L24'>write</a>/disp32
<span id="L4690" class="LineNr">4690 </span> <span class="subxS2Comment"># . . discard args</span>
<span id="L4691" class="LineNr">4691 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span>
<span id="L4692" class="LineNr">4692 </span> <span class="subxComment"># eax = num-bytes(_test-input-stream)</span>
<span id="L4693" class="LineNr">4693 </span> <span class="subxS2Comment"># . . push args</span>
<span id="L4694" class="LineNr">4694 </span> 68/push <a href='../112read-byte.subx.html#L287'>_test-input-stream</a>/imm32
<span id="L4694" class="LineNr">4694 </span> 68/push <a href='../112read-byte.subx.html#L331'>_test-input-stream</a>/imm32
<span id="L4695" class="LineNr">4695 </span> <span class="subxS2Comment"># . . call</span>
<span id="L4696" class="LineNr">4696 </span> e8/call <a href='survey.subx.html#L4174'>num-bytes</a>/disp32
<span id="L4697" class="LineNr">4697 </span> <span class="subxS2Comment"># . . discard args</span>

32
html/apps/tui.mu.html generated
View File

@ -65,29 +65,29 @@ if ('onhashchange' in window) {
<span id="L7" class="LineNr"> 7 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='tui.mu.html#L7'>main</a></span><span class="PreProc"> -&gt; </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span>
<span id="L8" class="LineNr"> 8 </span> <span class="PreProc">var</span> nrows/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L9" class="LineNr"> 9 </span> <span class="PreProc">var</span> ncols/<span class="Constant">ecx</span>: int <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L10" class="LineNr">10 </span> nrows, ncols <span class="SpecialChar">&lt;-</span> <a href='../405screen.mu.html#L54'>screen-size</a> <span class="Constant">0</span>
<span id="L10" class="LineNr">10 </span> nrows, ncols <span class="SpecialChar">&lt;-</span> <a href='../405screen.mu.html#L60'>screen-size</a> <span class="Constant">0</span>
<span id="L11" class="LineNr">11 </span> <a href='../304screen.subx.html#L6'>enable-screen-grid-mode</a>
<span id="L12" class="LineNr">12 </span> <a href='../405screen.mu.html#L110'>move-cursor</a> <span class="Constant">0</span>, <span class="Constant">5</span>, <span class="Constant">0x22</span>
<span id="L13" class="LineNr">13 </span> <a href='../405screen.mu.html#L199'>start-color</a> <span class="Constant">0</span>, <span class="Constant">1</span>, <span class="Constant">0x7a</span>
<span id="L14" class="LineNr">14 </span> <a href='../405screen.mu.html#L259'>start-blinking</a> <span class="Constant">0</span>
<span id="L15" class="LineNr">15 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;Hello world!&quot;</span>
<span id="L16" class="LineNr">16 </span> <a href='../405screen.mu.html#L184'>reset-formatting</a> <span class="Constant">0</span>
<span id="L17" class="LineNr">17 </span> <a href='../405screen.mu.html#L110'>move-cursor</a> <span class="Constant">0</span>, <span class="Constant">6</span>, <span class="Constant">0x22</span>
<span id="L18" class="LineNr">18 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;tty dimensions: &quot;</span>
<span id="L19" class="LineNr">19 </span> <a href='../405screen.mu.html#L169'>print-int32-hex</a> <span class="Constant">0</span>, nrows
<span id="L20" class="LineNr">20 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot; rows, &quot;</span>
<span id="L21" class="LineNr">21 </span> <a href='../405screen.mu.html#L169'>print-int32-hex</a> <span class="Constant">0</span>, ncols
<span id="L22" class="LineNr">22 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot; rows\n&quot;</span>
<span id="L12" class="LineNr">12 </span> <a href='../405screen.mu.html#L116'>move-cursor</a> <span class="Constant">0</span>, <span class="Constant">5</span>, <span class="Constant">0x22</span>
<span id="L13" class="LineNr">13 </span> <a href='../405screen.mu.html#L464'>start-color</a> <span class="Constant">0</span>, <span class="Constant">1</span>, <span class="Constant">0x7a</span>
<span id="L14" class="LineNr">14 </span> <a href='../405screen.mu.html#L544'>start-blinking</a> <span class="Constant">0</span>
<span id="L15" class="LineNr">15 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;Hello world!&quot;</span>
<span id="L16" class="LineNr">16 </span> <a href='../405screen.mu.html#L442'>reset-formatting</a> <span class="Constant">0</span>
<span id="L17" class="LineNr">17 </span> <a href='../405screen.mu.html#L116'>move-cursor</a> <span class="Constant">0</span>, <span class="Constant">6</span>, <span class="Constant">0x22</span>
<span id="L18" class="LineNr">18 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;tty dimensions: &quot;</span>
<span id="L19" class="LineNr">19 </span> <a href='../405screen.mu.html#L427'>print-int32-hex</a> <span class="Constant">0</span>, nrows
<span id="L20" class="LineNr">20 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot; rows, &quot;</span>
<span id="L21" class="LineNr">21 </span> <a href='../405screen.mu.html#L427'>print-int32-hex</a> <span class="Constant">0</span>, ncols
<span id="L22" class="LineNr">22 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot; rows\n&quot;</span>
<span id="L23" class="LineNr">23 </span>
<span id="L24" class="LineNr">24 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;press a key to see its code: &quot;</span>
<span id="L24" class="LineNr">24 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;press a key to see its code: &quot;</span>
<span id="L25" class="LineNr">25 </span> <a href='../305keyboard.subx.html#L6'>enable-keyboard-immediate-mode</a>
<span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> x/<span class="Constant">eax</span>: byte <span class="SpecialChar">&lt;-</span> <a href='../305keyboard.subx.html#L122'>read-key</a>
<span id="L27" class="LineNr">27 </span> <a href='../305keyboard.subx.html#L72'>enable-keyboard-type-mode</a>
<span id="L28" class="LineNr">28 </span> <a href='../304screen.subx.html#L24'>enable-screen-type-mode</a>
<span id="L29" class="LineNr">29 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;You pressed &quot;</span>
<span id="L29" class="LineNr">29 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;You pressed &quot;</span>
<span id="L30" class="LineNr">30 </span> <span class="PreProc">var</span> x-int/<span class="Constant">eax</span>: int <span class="SpecialChar">&lt;-</span> copy x
<span id="L31" class="LineNr">31 </span> <a href='../405screen.mu.html#L169'>print-int32-hex</a> <span class="Constant">0</span>, x-int
<span id="L32" class="LineNr">32 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;\n&quot;</span>
<span id="L31" class="LineNr">31 </span> <a href='../405screen.mu.html#L427'>print-int32-hex</a> <span class="Constant">0</span>, x-int
<span id="L32" class="LineNr">32 </span> <a href='../405screen.mu.html#L179'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;\n&quot;</span>
<span id="L33" class="LineNr">33 </span> exit-status <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span>
<span id="L34" class="LineNr">34 </span><span class="Delimiter">}</span>
</pre>