about summary refs log tree commit diff stats
path: root/html/apps/tests.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-10-05 11:00:05 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-05 11:00:05 -0700
commitd3a9db3aff54ea485f409eaaef3d8f56ad77f0dc (patch)
tree60858669ff7c5a5b041e4dacb8ffffa0a4b3e68a /html/apps/tests.subx.html
parentf13576b5d273ef9175e938b15f55bb1ead22fb1d (diff)
downloadmu-d3a9db3aff54ea485f409eaaef3d8f56ad77f0dc.tar.gz
6958
Diffstat (limited to 'html/apps/tests.subx.html')
-rw-r--r--html/apps/tests.subx.html442
1 files changed, 227 insertions, 215 deletions
diff --git a/html/apps/tests.subx.html b/html/apps/tests.subx.html
index 731ac276..e1fbb759 100644
--- a/html/apps/tests.subx.html
+++ b/html/apps/tests.subx.html
@@ -140,224 +140,236 @@ if ('onhashchange' in window) {
 <span id="L80" class="LineNr"> 80 </span>    <span class="subxComment">#     read-line-buffered(in, line)</span>
 <span id="L81" class="LineNr"> 81 </span>    <span class="subxComment">#     if (line-&gt;write == 0) break               # end of file</span>
 <span id="L82" class="LineNr"> 82 </span>    <span class="subxComment">#     var word-slice = next-word(line)</span>
-<span id="L83" class="LineNr"> 83 </span>    <span class="subxComment">#     if is-label?(word-slice)</span>
-<span id="L84" class="LineNr"> 84 </span>    <span class="subxComment">#       if slice-starts-with?(word-slice, &quot;test-&quot;)</span>
-<span id="L85" class="LineNr"> 85 </span>    <span class="subxComment">#         tests-found = true</span>
-<span id="L86" class="LineNr"> 86 </span>    <span class="subxComment">#         write(new-code-segment, &quot;  e8/call  &quot;)</span>
-<span id="L87" class="LineNr"> 87 </span>    <span class="subxComment">#         write-slice(new-code-segment, word-slice)</span>
-<span id="L88" class="LineNr"> 88 </span>    <span class="subxComment">#         write(new-code-segment, &quot;/disp32\n&quot;)</span>
-<span id="L89" class="LineNr"> 89 </span>    <span class="subxComment">#     rewind-stream(line)</span>
-<span id="L90" class="LineNr"> 90 </span>    <span class="subxComment">#     write-stream-data(out, line)</span>
-<span id="L91" class="LineNr"> 91 </span>    <span class="subxComment">#   if tests-found</span>
-<span id="L92" class="LineNr"> 92 </span>    <span class="subxComment">#     write(new-code-segment, &quot;  c3/return\n&quot;)</span>
-<span id="L93" class="LineNr"> 93 </span>    <span class="subxComment">#     write-stream-data(out, new-code-segment)</span>
-<span id="L94" class="LineNr"> 94 </span>    <span class="subxComment">#   flush(out)</span>
-<span id="L95" class="LineNr"> 95 </span>    <span class="subxComment">#</span>
-<span id="L96" class="LineNr"> 96 </span>    <span class="subxS1Comment"># . prologue</span>
-<span id="L97" class="LineNr"> 97 </span>    55/push-ebp
-<span id="L98" class="LineNr"> 98 </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="L99" class="LineNr"> 99 </span>    <span class="subxS1Comment"># . save registers</span>
-<span id="L100" class="LineNr">100 </span>    50/push-eax
-<span id="L101" class="LineNr">101 </span>    51/push-ecx
-<span id="L102" class="LineNr">102 </span>    52/push-edx
-<span id="L103" class="LineNr">103 </span>    53/push-ebx
-<span id="L104" class="LineNr">104 </span>    56/push-esi
-<span id="L105" class="LineNr">105 </span>    57/push-edi
-<span id="L106" class="LineNr">106 </span>    <span class="subxComment"># var line/ecx: (stream byte 512)</span>
-<span id="L107" class="LineNr">107 </span>    81          5/subop/subtract    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>              0x200/imm32       <span class="subxComment"># subtract from esp</span>
-<span id="L108" class="LineNr">108 </span>    68/push  0x200/imm32/length
-<span id="L109" class="LineNr">109 </span>    68/push  0/imm32/read
-<span id="L110" class="LineNr">110 </span>    68/push  0/imm32/write
-<span id="L111" class="LineNr">111 </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="L112" class="LineNr">112 </span>    <span class="subxComment"># var word-slice/edx: slice</span>
-<span id="L113" class="LineNr">113 </span>    68/push  0/imm32/end
-<span id="L114" class="LineNr">114 </span>    68/push  0/imm32/start
-<span id="L115" class="LineNr">115 </span>    89/copy                         3/mod/direct    2/rm32/edx   <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 edx</span>
-<span id="L116" class="LineNr">116 </span>    <span class="subxComment"># tests-found?/ebx = false</span>
-<span id="L117" class="LineNr">117 </span>    31/xor                          3/mod/direct    3/rm32/ebx   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          3/r32/ebx  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># clear ebx</span>
-<span id="L118" class="LineNr">118 </span>    <span class="subxComment"># var new-code-stream-handle/esi: (handle stream byte)</span>
-<span id="L119" class="LineNr">119 </span>    68/push  0/imm32
-<span id="L120" class="LineNr">120 </span>    68/push  0/imm32
-<span id="L121" class="LineNr">121 </span>    89/copy                         3/mod/direct    6/rm32/esi   <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 esi</span>
-<span id="L122" class="LineNr">122 </span>    <span class="subxComment"># new-stream(Heap, Segment-size, 1, new-code-stream-handle)</span>
-<span id="L123" class="LineNr">123 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L124" class="LineNr">124 </span>    56/push-esi
-<span id="L125" class="LineNr">125 </span>    68/push  1/imm32
-<span id="L126" class="LineNr">126 </span>    ff          6/subop/push        0/mod/indirect  5/rm32/.disp32           <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>          <span class="SpecialChar">Segment-size</span>/disp32               <span class="subxComment"># push *Segment-size</span>
-<span id="L127" class="LineNr">127 </span>    68/push  <span class="SpecialChar"><a href='../120allocate.subx.html#L27'>Heap</a></span>/imm32
-<span id="L128" class="LineNr">128 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L129" class="LineNr">129 </span>    e8/call  <a href='../121new-stream.subx.html#L8'>new-stream</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>              0x10/imm32        <span class="subxComment"># add to esp</span>
-<span id="L132" class="LineNr">132 </span>    <span class="subxComment"># var new-code-stream/edi: (addr stream byte) = lookup(*new-code-stream-handle)</span>
-<span id="L133" class="LineNr">133 </span>    <span class="subxS1Comment"># . eax = lookup(*new-code-stream-handle)</span>
-<span id="L134" class="LineNr">134 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L135" class="LineNr">135 </span>    ff          6/subop/push        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"># push *(esi+4)</span>
-<span id="L136" class="LineNr">136 </span>    ff          6/subop/push        0/mod/indirect  6/rm32/esi   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># push *esi</span>
-<span id="L137" class="LineNr">137 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L138" class="LineNr">138 </span>    e8/call  <a href='../120allocate.subx.html#L256'>lookup</a>/disp32
-<span id="L139" class="LineNr">139 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L140" class="LineNr">140 </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="L141" class="LineNr">141 </span>    <span class="subxS1Comment"># . new-code-stream = eax</span>
-<span id="L142" class="LineNr">142 </span>    89/copy                         3/mod/direct    7/rm32/edi   <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 eax to edi</span>
-<span id="L143" class="LineNr">143 </span>    <span class="subxComment"># write(new-code-segment, &quot;\n== code\n&quot;)</span>
-<span id="L144" class="LineNr">144 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L145" class="LineNr">145 </span>    68/push  <span class="Constant">&quot;\n== code\n&quot;</span>/imm32
-<span id="L146" class="LineNr">146 </span>    57/push-edi
-<span id="L147" class="LineNr">147 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L148" class="LineNr">148 </span>    e8/call  <a href='../108write.subx.html#L24'>write</a>/disp32
-<span id="L149" class="LineNr">149 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L150" class="LineNr">150 </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="L151" class="LineNr">151 </span>    <span class="subxComment"># write(new-code-segment, &quot;run-tests:\n&quot;)</span>
-<span id="L152" class="LineNr">152 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L153" class="LineNr">153 </span>    68/push  <span class="Constant">&quot;run-tests:\n&quot;</span>/imm32
-<span id="L154" class="LineNr">154 </span>    57/push-edi
-<span id="L155" class="LineNr">155 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L156" class="LineNr">156 </span>    e8/call  <a href='../108write.subx.html#L24'>write</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="Constant">$subx-gen-run-tests:loop</span>:
-<span id="L160" class="LineNr">160 </span>    <span class="subxComment"># clear-stream(line)</span>
-<span id="L161" class="LineNr">161 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L162" class="LineNr">162 </span>    51/push-ecx
-<span id="L163" class="LineNr">163 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L164" class="LineNr">164 </span>    e8/call  <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
-<span id="L165" class="LineNr">165 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L166" class="LineNr">166 </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="L167" class="LineNr">167 </span>    <span class="subxComment"># read-line-buffered(in, line)</span>
-<span id="L168" class="LineNr">168 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L169" class="LineNr">169 </span>    51/push-ecx
-<span id="L170" class="LineNr">170 </span>    ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp   <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 *(ebp+8)</span>
-<span id="L171" class="LineNr">171 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L172" class="LineNr">172 </span>    e8/call  <a href='../122read-line.subx.html#L9'>read-line-buffered</a>/disp32
-<span id="L173" class="LineNr">173 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L174" class="LineNr">174 </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="L175" class="LineNr">175 </span><span class="Constant">$subx-gen-run-tests:check0</span>:
-<span id="L176" class="LineNr">176 </span>    <span class="subxComment"># if (line-&gt;write == 0) break</span>
-<span id="L177" class="LineNr">177 </span>    81          7/subop/compare     0/mod/indirect  1/rm32/ecx   <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 *ecx</span>
-<span id="L178" class="LineNr">178 </span>    0f 84/jump-if-=  $subx-gen-run-tests:<span class="Constant">break</span>/disp32
-<span id="L179" class="LineNr">179 </span>    <span class="subxComment"># next-word(line, word-slice)</span>
-<span id="L180" class="LineNr">180 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L181" class="LineNr">181 </span>    52/push-edx
-<span id="L182" class="LineNr">182 </span>    51/push-ecx
-<span id="L183" class="LineNr">183 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L184" class="LineNr">184 </span>    e8/call  <a href='../127next-word.subx.html#L10'>next-word</a>/disp32
-<span id="L185" class="LineNr">185 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L186" class="LineNr">186 </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="L187" class="LineNr">187 </span><span class="Constant">$subx-gen-run-tests:check-for-label</span>:
-<span id="L188" class="LineNr">188 </span>    <span class="subxComment"># if (!is-label?(word-slice)) continue</span>
-<span id="L189" class="LineNr">189 </span>    <span class="subxS1Comment"># . eax = is-label?(word-slice)</span>
-<span id="L190" class="LineNr">190 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L191" class="LineNr">191 </span>    52/push-edx
-<span id="L192" class="LineNr">192 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L193" class="LineNr">193 </span>    e8/call  <a href='../128subx-words.subx.html#L535'>is-label?</a>/disp32
+<span id="L83" class="LineNr"> 83 </span>    <span class="subxComment">#     if slice-empty?(word-slice)               # empty line</span>
+<span id="L84" class="LineNr"> 84 </span>    <span class="subxComment">#       continue</span>
+<span id="L85" class="LineNr"> 85 </span>    <span class="subxComment">#     if is-label?(word-slice)</span>
+<span id="L86" class="LineNr"> 86 </span>    <span class="subxComment">#       if slice-starts-with?(word-slice, &quot;test-&quot;)</span>
+<span id="L87" class="LineNr"> 87 </span>    <span class="subxComment">#         tests-found = true</span>
+<span id="L88" class="LineNr"> 88 </span>    <span class="subxComment">#         write(new-code-segment, &quot;  e8/call  &quot;)</span>
+<span id="L89" class="LineNr"> 89 </span>    <span class="subxComment">#         write-slice(new-code-segment, word-slice)</span>
+<span id="L90" class="LineNr"> 90 </span>    <span class="subxComment">#         write(new-code-segment, &quot;/disp32\n&quot;)</span>
+<span id="L91" class="LineNr"> 91 </span>    <span class="subxComment">#     rewind-stream(line)</span>
+<span id="L92" class="LineNr"> 92 </span>    <span class="subxComment">#     write-stream-data(out, line)</span>
+<span id="L93" class="LineNr"> 93 </span>    <span class="subxComment">#   if tests-found</span>
+<span id="L94" class="LineNr"> 94 </span>    <span class="subxComment">#     write(new-code-segment, &quot;  c3/return\n&quot;)</span>
+<span id="L95" class="LineNr"> 95 </span>    <span class="subxComment">#     write-stream-data(out, new-code-segment)</span>
+<span id="L96" class="LineNr"> 96 </span>    <span class="subxComment">#   flush(out)</span>
+<span id="L97" class="LineNr"> 97 </span>    <span class="subxComment">#</span>
+<span id="L98" class="LineNr"> 98 </span>    <span class="subxS1Comment"># . prologue</span>
+<span id="L99" class="LineNr"> 99 </span>    55/push-ebp
+<span id="L100" class="LineNr">100 </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="L101" class="LineNr">101 </span>    <span class="subxS1Comment"># . save registers</span>
+<span id="L102" class="LineNr">102 </span>    50/push-eax
+<span id="L103" class="LineNr">103 </span>    51/push-ecx
+<span id="L104" class="LineNr">104 </span>    52/push-edx
+<span id="L105" class="LineNr">105 </span>    53/push-ebx
+<span id="L106" class="LineNr">106 </span>    56/push-esi
+<span id="L107" class="LineNr">107 </span>    57/push-edi
+<span id="L108" class="LineNr">108 </span>    <span class="subxComment"># var line/ecx: (stream byte 512)</span>
+<span id="L109" class="LineNr">109 </span>    81          5/subop/subtract    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>              0x200/imm32       <span class="subxComment"># subtract from esp</span>
+<span id="L110" class="LineNr">110 </span>    68/push  0x200/imm32/length
+<span id="L111" class="LineNr">111 </span>    68/push  0/imm32/read
+<span id="L112" class="LineNr">112 </span>    68/push  0/imm32/write
+<span id="L113" class="LineNr">113 </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="L114" class="LineNr">114 </span>    <span class="subxComment"># var word-slice/edx: slice</span>
+<span id="L115" class="LineNr">115 </span>    68/push  0/imm32/end
+<span id="L116" class="LineNr">116 </span>    68/push  0/imm32/start
+<span id="L117" class="LineNr">117 </span>    89/copy                         3/mod/direct    2/rm32/edx   <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 edx</span>
+<span id="L118" class="LineNr">118 </span>    <span class="subxComment"># tests-found?/ebx = false</span>
+<span id="L119" class="LineNr">119 </span>    31/xor                          3/mod/direct    3/rm32/ebx   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          3/r32/ebx  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># clear ebx</span>
+<span id="L120" class="LineNr">120 </span>    <span class="subxComment"># var new-code-stream-handle/esi: (handle stream byte)</span>
+<span id="L121" class="LineNr">121 </span>    68/push  0/imm32
+<span id="L122" class="LineNr">122 </span>    68/push  0/imm32
+<span id="L123" class="LineNr">123 </span>    89/copy                         3/mod/direct    6/rm32/esi   <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 esi</span>
+<span id="L124" class="LineNr">124 </span>    <span class="subxComment"># new-stream(Heap, Segment-size, 1, new-code-stream-handle)</span>
+<span id="L125" class="LineNr">125 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L126" class="LineNr">126 </span>    56/push-esi
+<span id="L127" class="LineNr">127 </span>    68/push  1/imm32
+<span id="L128" class="LineNr">128 </span>    ff          6/subop/push        0/mod/indirect  5/rm32/.disp32           <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>          <span class="SpecialChar">Segment-size</span>/disp32               <span class="subxComment"># push *Segment-size</span>
+<span id="L129" class="LineNr">129 </span>    68/push  <span class="SpecialChar"><a href='../120allocate.subx.html#L27'>Heap</a></span>/imm32
+<span id="L130" class="LineNr">130 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L131" class="LineNr">131 </span>    e8/call  <a href='../121new-stream.subx.html#L8'>new-stream</a>/disp32
+<span id="L132" class="LineNr">132 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L133" class="LineNr">133 </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>              0x10/imm32        <span class="subxComment"># add to esp</span>
+<span id="L134" class="LineNr">134 </span>    <span class="subxComment"># var new-code-stream/edi: (addr stream byte) = lookup(*new-code-stream-handle)</span>
+<span id="L135" class="LineNr">135 </span>    <span class="subxS1Comment"># . eax = lookup(*new-code-stream-handle)</span>
+<span id="L136" class="LineNr">136 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L137" class="LineNr">137 </span>    ff          6/subop/push        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"># push *(esi+4)</span>
+<span id="L138" class="LineNr">138 </span>    ff          6/subop/push        0/mod/indirect  6/rm32/esi   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># push *esi</span>
+<span id="L139" class="LineNr">139 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L140" class="LineNr">140 </span>    e8/call  <a href='../120allocate.subx.html#L256'>lookup</a>/disp32
+<span id="L141" class="LineNr">141 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L142" class="LineNr">142 </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="L143" class="LineNr">143 </span>    <span class="subxS1Comment"># . new-code-stream = eax</span>
+<span id="L144" class="LineNr">144 </span>    89/copy                         3/mod/direct    7/rm32/edi   <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 eax to edi</span>
+<span id="L145" class="LineNr">145 </span>    <span class="subxComment"># write(new-code-segment, &quot;\n== code\n&quot;)</span>
+<span id="L146" class="LineNr">146 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L147" class="LineNr">147 </span>    68/push  <span class="Constant">&quot;\n== code\n&quot;</span>/imm32
+<span id="L148" class="LineNr">148 </span>    57/push-edi
+<span id="L149" class="LineNr">149 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L150" class="LineNr">150 </span>    e8/call  <a href='../108write.subx.html#L24'>write</a>/disp32
+<span id="L151" class="LineNr">151 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L152" class="LineNr">152 </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="L153" class="LineNr">153 </span>    <span class="subxComment"># write(new-code-segment, &quot;run-tests:\n&quot;)</span>
+<span id="L154" class="LineNr">154 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L155" class="LineNr">155 </span>    68/push  <span class="Constant">&quot;run-tests:\n&quot;</span>/imm32
+<span id="L156" class="LineNr">156 </span>    57/push-edi
+<span id="L157" class="LineNr">157 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L158" class="LineNr">158 </span>    e8/call  <a href='../108write.subx.html#L24'>write</a>/disp32
+<span id="L159" class="LineNr">159 </span>    <span class="subxS2Comment"># . . discard args</span>
+<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="Constant">$subx-gen-run-tests:loop</span>:
+<span id="L162" class="LineNr">162 </span>    <span class="subxComment"># clear-stream(line)</span>
+<span id="L163" class="LineNr">163 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L164" class="LineNr">164 </span>    51/push-ecx
+<span id="L165" class="LineNr">165 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L166" class="LineNr">166 </span>    e8/call  <a href='../106stream.subx.html#L17'>clear-stream</a>/disp32
+<span id="L167" class="LineNr">167 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L168" class="LineNr">168 </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="L169" class="LineNr">169 </span>    <span class="subxComment"># read-line-buffered(in, line)</span>
+<span id="L170" class="LineNr">170 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L171" class="LineNr">171 </span>    51/push-ecx
+<span id="L172" class="LineNr">172 </span>    ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp   <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 *(ebp+8)</span>
+<span id="L173" class="LineNr">173 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L174" class="LineNr">174 </span>    e8/call  <a href='../122read-line.subx.html#L9'>read-line-buffered</a>/disp32
+<span id="L175" class="LineNr">175 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L176" class="LineNr">176 </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="L177" class="LineNr">177 </span><span class="Constant">$subx-gen-run-tests:check0</span>:
+<span id="L178" class="LineNr">178 </span>    <span class="subxComment"># if (line-&gt;write == 0) break</span>
+<span id="L179" class="LineNr">179 </span>    81          7/subop/compare     0/mod/indirect  1/rm32/ecx   <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 *ecx</span>
+<span id="L180" class="LineNr">180 </span>    0f 84/jump-if-=  $subx-gen-run-tests:<span class="Constant">break</span>/disp32
+<span id="L181" class="LineNr">181 </span>    <span class="subxComment"># next-word(line, word-slice)</span>
+<span id="L182" class="LineNr">182 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L183" class="LineNr">183 </span>    52/push-edx
+<span id="L184" class="LineNr">184 </span>    51/push-ecx
+<span id="L185" class="LineNr">185 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L186" class="LineNr">186 </span>    e8/call  <a href='../127next-word.subx.html#L10'>next-word</a>/disp32
+<span id="L187" class="LineNr">187 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L188" class="LineNr">188 </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="L189" class="LineNr">189 </span><span class="Constant">$subx-gen-run-tests:check-empty</span>:
+<span id="L190" class="LineNr">190 </span>    <span class="subxComment"># if slice-empty?(word-slice) break</span>
+<span id="L191" class="LineNr">191 </span>    <span class="subxS1Comment"># . eax = slice-empty?(word-slice)</span>
+<span id="L192" class="LineNr">192 </span>    52/push-edx
+<span id="L193" class="LineNr">193 </span>    e8/call  <a href='../123slice.subx.html#L9'>slice-empty?</a>/disp32
 <span id="L194" class="LineNr">194 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L195" class="LineNr">195 </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="L196" class="LineNr">196 </span>    <span class="subxS1Comment"># . if (eax == false) continue</span>
+<span id="L196" class="LineNr">196 </span>    <span class="subxS1Comment"># . if (eax != false) break</span>
 <span id="L197" class="LineNr">197 </span>    3d/compare-eax-and  0/imm32/false
-<span id="L198" class="LineNr">198 </span>    74/jump-if-=  $subx-gen-run-tests:continue/disp8
-<span id="L199" class="LineNr">199 </span><span class="Constant">$subx-gen-run-tests:check-label-prefix</span>:
-<span id="L200" class="LineNr">200 </span>    <span class="subxComment"># strip trailing ':' from word-slice</span>
-<span id="L201" class="LineNr">201 </span>    ff          1/subop/decrement   1/mod/*+disp8   2/rm32/edx   <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"># decrement *(edx+4)</span>
-<span id="L202" class="LineNr">202 </span>    <span class="subxComment"># if !slice-starts-with?(word-slice, &quot;test-&quot;) continue</span>
-<span id="L203" class="LineNr">203 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L204" class="LineNr">204 </span>    68/push  <span class="Constant">&quot;test-&quot;</span>/imm32
-<span id="L205" class="LineNr">205 </span>    52/push-edx
-<span id="L206" class="LineNr">206 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L207" class="LineNr">207 </span>    e8/call  <a href='../123slice.subx.html#L487'>slice-starts-with?</a>/disp32
-<span id="L208" class="LineNr">208 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L209" class="LineNr">209 </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="L210" class="LineNr">210 </span>    <span class="subxS1Comment"># . if (eax == false) break</span>
-<span id="L211" class="LineNr">211 </span>    3d/compare-eax-and  0/imm32/false
-<span id="L212" class="LineNr">212 </span>    74/jump-if-=  $subx-gen-run-tests:continue/disp8
-<span id="L213" class="LineNr">213 </span><span class="Constant">$subx-gen-run-tests:call-test-function</span>:
-<span id="L214" class="LineNr">214 </span>    <span class="subxComment"># tests-found? = true</span>
-<span id="L215" class="LineNr">215 </span>    bb/copy-to-ebx  1/imm32/true
-<span id="L216" class="LineNr">216 </span>    <span class="subxComment"># write(new-code-segment, &quot;  e8/call  &quot;)</span>
-<span id="L217" class="LineNr">217 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L218" class="LineNr">218 </span>    68/push  <span class="Constant">&quot;  e8/call  &quot;</span>/imm32
-<span id="L219" class="LineNr">219 </span>    57/push-edi
-<span id="L220" class="LineNr">220 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L221" class="LineNr">221 </span>    e8/call  <a href='../108write.subx.html#L24'>write</a>/disp32
-<span id="L222" class="LineNr">222 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L223" class="LineNr">223 </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="L224" class="LineNr">224 </span>    <span class="subxComment"># write-slice(new-code-segment, word-slice)</span>
-<span id="L225" class="LineNr">225 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L226" class="LineNr">226 </span>    52/push-edx
-<span id="L227" class="LineNr">227 </span>    57/push-edi
-<span id="L228" class="LineNr">228 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L229" class="LineNr">229 </span>    e8/call  <a href='../123slice.subx.html#L793'>write-slice</a>/disp32
-<span id="L230" class="LineNr">230 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L231" class="LineNr">231 </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="L232" class="LineNr">232 </span>    <span class="subxComment"># write(new-code-segment, &quot;/disp32\n&quot;)</span>
-<span id="L233" class="LineNr">233 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L234" class="LineNr">234 </span>    68/push  <span class="Constant">&quot;/disp32\n&quot;</span>/imm32
-<span id="L235" class="LineNr">235 </span>    57/push-edi
-<span id="L236" class="LineNr">236 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L237" class="LineNr">237 </span>    e8/call  <a href='../108write.subx.html#L24'>write</a>/disp32
-<span id="L238" class="LineNr">238 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L239" class="LineNr">239 </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="L240" class="LineNr">240 </span><span class="Constant">$subx-gen-run-tests:continue</span>:
-<span id="L241" class="LineNr">241 </span>    <span class="subxComment"># rewind-stream(line)</span>
-<span id="L242" class="LineNr">242 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L243" class="LineNr">243 </span>    51/push-ecx
-<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#L56'>rewind-stream</a>/disp32
-<span id="L246" class="LineNr">246 </span>    <span class="subxS2Comment"># . . discard args</span>
-<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>              4/imm32           <span class="subxComment"># add to esp</span>
-<span id="L248" class="LineNr">248 </span>    <span class="subxComment"># write-stream-data(out, line)</span>
-<span id="L249" class="LineNr">249 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L250" class="LineNr">250 </span>    51/push-ecx
-<span id="L251" class="LineNr">251 </span>    ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>          0xc/disp8      <span class="Normal"> . </span>                <span class="subxComment"># push *(ebp+12)</span>
-<span id="L252" class="LineNr">252 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L253" class="LineNr">253 </span>    e8/call  <a href='../125write-stream-data.subx.html#L11'>write-stream-data</a>/disp32
-<span id="L254" class="LineNr">254 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L255" class="LineNr">255 </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="L256" class="LineNr">256 </span>    <span class="subxComment"># loop</span>
-<span id="L257" class="LineNr">257 </span>    e9/jump  $subx-gen-run-tests:<span class="Constant">loop</span>/disp32
-<span id="L258" class="LineNr">258 </span><span class="Constant">$subx-gen-run-tests:break</span>:
-<span id="L259" class="LineNr">259 </span>    <span class="subxComment"># if (!tests-found?) goto end</span>
-<span id="L260" class="LineNr">260 </span>    81          7/subop/compare     3/mod/direct    3/rm32/ebx   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              0/imm32/false     <span class="subxComment"># compare ebx</span>
-<span id="L261" class="LineNr">261 </span>    74/jump-if-=  $subx-gen-run-tests:end/disp8
-<span id="L262" class="LineNr">262 </span>    <span class="subxComment"># write(new-code-segment, &quot;  c3/return\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;  c3/return\n&quot;</span>/imm32
-<span id="L265" class="LineNr">265 </span>    57/push-edi
-<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>
-<span id="L269" class="LineNr">269 </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="L270" class="LineNr">270 </span>    <span class="subxComment"># write-stream-data(out, new-code-segment)</span>
-<span id="L271" class="LineNr">271 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L272" class="LineNr">272 </span>    57/push-edi
-<span id="L273" class="LineNr">273 </span>    ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>          0xc/disp8      <span class="Normal"> . </span>                <span class="subxComment"># push *(ebp+12)</span>
-<span id="L274" class="LineNr">274 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L275" class="LineNr">275 </span>    e8/call  <a href='../125write-stream-data.subx.html#L11'>write-stream-data</a>/disp32
-<span id="L276" class="LineNr">276 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L277" class="LineNr">277 </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="L278" class="LineNr">278 </span><span class="Constant">$subx-gen-run-tests:end</span>:
-<span id="L279" class="LineNr">279 </span>    <span class="subxComment"># flush(out)</span>
-<span id="L280" class="LineNr">280 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L281" class="LineNr">281 </span>    ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>          0xc/disp8      <span class="Normal"> . </span>                <span class="subxComment"># push *(ebp+12)</span>
-<span id="L282" class="LineNr">282 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L283" class="LineNr">283 </span>    e8/call  <a href='../115write-byte.subx.html#L81'>flush</a>/disp32
-<span id="L284" class="LineNr">284 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L285" class="LineNr">285 </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="L286" class="LineNr">286 </span>    <span class="subxS1Comment"># . reclaim locals</span>
-<span id="L287" class="LineNr">287 </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>              0x21c/imm32       <span class="subxComment"># add to esp</span>
-<span id="L288" class="LineNr">288 </span>    <span class="subxS1Comment"># . restore registers</span>
-<span id="L289" class="LineNr">289 </span>    5f/pop-to-edi
-<span id="L290" class="LineNr">290 </span>    5e/pop-to-esi
-<span id="L291" class="LineNr">291 </span>    5b/pop-to-ebx
-<span id="L292" class="LineNr">292 </span>    5a/pop-to-edx
-<span id="L293" class="LineNr">293 </span>    59/pop-to-ecx
-<span id="L294" class="LineNr">294 </span>    58/pop-to-eax
-<span id="L295" class="LineNr">295 </span>    <span class="subxS1Comment"># . epilogue</span>
-<span id="L296" class="LineNr">296 </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="L297" class="LineNr">297 </span>    5d/pop-to-ebp
-<span id="L298" class="LineNr">298 </span>    c3/return
-<span id="L299" class="LineNr">299 </span>
-<span id="L300" class="LineNr">300 </span><span class="subxS2Comment"># . . vim&#0058;nowrap:textwidth=0</span>
+<span id="L198" class="LineNr">198 </span>    75/jump-if-!=  $subx-gen-run-tests:<span class="Constant">loop</span>/disp8
+<span id="L199" class="LineNr">199 </span><span class="Constant">$subx-gen-run-tests:check-for-label</span>:
+<span id="L200" class="LineNr">200 </span>    <span class="subxComment"># if (!is-label?(word-slice)) continue</span>
+<span id="L201" class="LineNr">201 </span>    <span class="subxS1Comment"># . eax = is-label?(word-slice)</span>
+<span id="L202" class="LineNr">202 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L203" class="LineNr">203 </span>    52/push-edx
+<span id="L204" class="LineNr">204 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L205" class="LineNr">205 </span>    e8/call  <a href='../128subx-words.subx.html#L535'>is-label?</a>/disp32
+<span id="L206" class="LineNr">206 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L207" class="LineNr">207 </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="L208" class="LineNr">208 </span>    <span class="subxS1Comment"># . if (eax == false) continue</span>
+<span id="L209" class="LineNr">209 </span>    3d/compare-eax-and  0/imm32/false
+<span id="L210" class="LineNr">210 </span>    74/jump-if-=  $subx-gen-run-tests:continue/disp8
+<span id="L211" class="LineNr">211 </span><span class="Constant">$subx-gen-run-tests:check-label-prefix</span>:
+<span id="L212" class="LineNr">212 </span>    <span class="subxComment"># strip trailing ':' from word-slice</span>
+<span id="L213" class="LineNr">213 </span>    ff          1/subop/decrement   1/mod/*+disp8   2/rm32/edx   <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"># decrement *(edx+4)</span>
+<span id="L214" class="LineNr">214 </span>    <span class="subxComment"># if !slice-starts-with?(word-slice, &quot;test-&quot;) continue</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;test-&quot;</span>/imm32
+<span id="L217" class="LineNr">217 </span>    52/push-edx
+<span id="L218" class="LineNr">218 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L219" class="LineNr">219 </span>    e8/call  <a href='../123slice.subx.html#L487'>slice-starts-with?</a>/disp32
+<span id="L220" class="LineNr">220 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L221" class="LineNr">221 </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="L222" class="LineNr">222 </span>    <span class="subxS1Comment"># . if (eax == false) break</span>
+<span id="L223" class="LineNr">223 </span>    3d/compare-eax-and  0/imm32/false
+<span id="L224" class="LineNr">224 </span>    74/jump-if-=  $subx-gen-run-tests:continue/disp8
+<span id="L225" class="LineNr">225 </span><span class="Constant">$subx-gen-run-tests:call-test-function</span>:
+<span id="L226" class="LineNr">226 </span>    <span class="subxComment"># tests-found? = true</span>
+<span id="L227" class="LineNr">227 </span>    bb/copy-to-ebx  1/imm32/true
+<span id="L228" class="LineNr">228 </span>    <span class="subxComment"># write(new-code-segment, &quot;  e8/call  &quot;)</span>
+<span id="L229" class="LineNr">229 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L230" class="LineNr">230 </span>    68/push  <span class="Constant">&quot;  e8/call  &quot;</span>/imm32
+<span id="L231" class="LineNr">231 </span>    57/push-edi
+<span id="L232" class="LineNr">232 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L233" class="LineNr">233 </span>    e8/call  <a href='../108write.subx.html#L24'>write</a>/disp32
+<span id="L234" class="LineNr">234 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L235" class="LineNr">235 </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="L236" class="LineNr">236 </span>    <span class="subxComment"># write-slice(new-code-segment, word-slice)</span>
+<span id="L237" class="LineNr">237 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L238" class="LineNr">238 </span>    52/push-edx
+<span id="L239" class="LineNr">239 </span>    57/push-edi
+<span id="L240" class="LineNr">240 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L241" class="LineNr">241 </span>    e8/call  <a href='../123slice.subx.html#L793'>write-slice</a>/disp32
+<span id="L242" class="LineNr">242 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L243" class="LineNr">243 </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="L244" class="LineNr">244 </span>    <span class="subxComment"># write(new-code-segment, &quot;/disp32\n&quot;)</span>
+<span id="L245" class="LineNr">245 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L246" class="LineNr">246 </span>    68/push  <span class="Constant">&quot;/disp32\n&quot;</span>/imm32
+<span id="L247" class="LineNr">247 </span>    57/push-edi
+<span id="L248" class="LineNr">248 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L249" class="LineNr">249 </span>    e8/call  <a href='../108write.subx.html#L24'>write</a>/disp32
+<span id="L250" class="LineNr">250 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L251" class="LineNr">251 </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="L252" class="LineNr">252 </span><span class="Constant">$subx-gen-run-tests:continue</span>:
+<span id="L253" class="LineNr">253 </span>    <span class="subxComment"># rewind-stream(line)</span>
+<span id="L254" class="LineNr">254 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L255" class="LineNr">255 </span>    51/push-ecx
+<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#L56'>rewind-stream</a>/disp32
+<span id="L258" class="LineNr">258 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L259" class="LineNr">259 </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="L260" class="LineNr">260 </span>    <span class="subxComment"># write-stream-data(out, line)</span>
+<span id="L261" class="LineNr">261 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L262" class="LineNr">262 </span>    51/push-ecx
+<span id="L263" class="LineNr">263 </span>    ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>          0xc/disp8      <span class="Normal"> . </span>                <span class="subxComment"># push *(ebp+12)</span>
+<span id="L264" class="LineNr">264 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L265" class="LineNr">265 </span>    e8/call  <a href='../125write-stream-data.subx.html#L11'>write-stream-data</a>/disp32
+<span id="L266" class="LineNr">266 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L267" class="LineNr">267 </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="L268" class="LineNr">268 </span>    <span class="subxComment"># loop</span>
+<span id="L269" class="LineNr">269 </span>    e9/jump  $subx-gen-run-tests:<span class="Constant">loop</span>/disp32
+<span id="L270" class="LineNr">270 </span><span class="Constant">$subx-gen-run-tests:break</span>:
+<span id="L271" class="LineNr">271 </span>    <span class="subxComment"># if (!tests-found?) goto end</span>
+<span id="L272" class="LineNr">272 </span>    81          7/subop/compare     3/mod/direct    3/rm32/ebx   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              0/imm32/false     <span class="subxComment"># compare ebx</span>
+<span id="L273" class="LineNr">273 </span>    74/jump-if-=  $subx-gen-run-tests:end/disp8
+<span id="L274" class="LineNr">274 </span>    <span class="subxComment"># write(new-code-segment, &quot;  c3/return\n&quot;)</span>
+<span id="L275" class="LineNr">275 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L276" class="LineNr">276 </span>    68/push  <span class="Constant">&quot;  c3/return\n&quot;</span>/imm32
+<span id="L277" class="LineNr">277 </span>    57/push-edi
+<span id="L278" class="LineNr">278 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L279" class="LineNr">279 </span>    e8/call  <a href='../108write.subx.html#L24'>write</a>/disp32
+<span id="L280" class="LineNr">280 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L281" class="LineNr">281 </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="L282" class="LineNr">282 </span>    <span class="subxComment"># write-stream-data(out, new-code-segment)</span>
+<span id="L283" class="LineNr">283 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L284" class="LineNr">284 </span>    57/push-edi
+<span id="L285" class="LineNr">285 </span>    ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>          0xc/disp8      <span class="Normal"> . </span>                <span class="subxComment"># push *(ebp+12)</span>
+<span id="L286" class="LineNr">286 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L287" class="LineNr">287 </span>    e8/call  <a href='../125write-stream-data.subx.html#L11'>write-stream-data</a>/disp32
+<span id="L288" class="LineNr">288 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L289" class="LineNr">289 </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="L290" class="LineNr">290 </span><span class="Constant">$subx-gen-run-tests:end</span>:
+<span id="L291" class="LineNr">291 </span>    <span class="subxComment"># flush(out)</span>
+<span id="L292" class="LineNr">292 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L293" class="LineNr">293 </span>    ff          6/subop/push        1/mod/*+disp8   5/rm32/ebp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>          0xc/disp8      <span class="Normal"> . </span>                <span class="subxComment"># push *(ebp+12)</span>
+<span id="L294" class="LineNr">294 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L295" class="LineNr">295 </span>    e8/call  <a href='../115write-byte.subx.html#L81'>flush</a>/disp32
+<span id="L296" class="LineNr">296 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L297" class="LineNr">297 </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="L298" class="LineNr">298 </span>    <span class="subxS1Comment"># . reclaim locals</span>
+<span id="L299" class="LineNr">299 </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>              0x21c/imm32       <span class="subxComment"># add to esp</span>
+<span id="L300" class="LineNr">300 </span>    <span class="subxS1Comment"># . restore registers</span>
+<span id="L301" class="LineNr">301 </span>    5f/pop-to-edi
+<span id="L302" class="LineNr">302 </span>    5e/pop-to-esi
+<span id="L303" class="LineNr">303 </span>    5b/pop-to-ebx
+<span id="L304" class="LineNr">304 </span>    5a/pop-to-edx
+<span id="L305" class="LineNr">305 </span>    59/pop-to-ecx
+<span id="L306" class="LineNr">306 </span>    58/pop-to-eax
+<span id="L307" class="LineNr">307 </span>    <span class="subxS1Comment"># . epilogue</span>
+<span id="L308" class="LineNr">308 </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="L309" class="LineNr">309 </span>    5d/pop-to-ebp
+<span id="L310" class="LineNr">310 </span>    c3/return
+<span id="L311" class="LineNr">311 </span>
+<span id="L312" class="LineNr">312 </span><span class="subxS2Comment"># . . vim&#0058;nowrap:textwidth=0</span>
 </pre>
 </body>
 </html>