about summary refs log tree commit diff stats
path: root/html/112read-byte.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-07 16:38:14 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-07 16:39:44 -0700
commit68df24fa778f7f5a2651a4623681f38dc920c490 (patch)
tree99d95cf1812e90ad6bfd4f7292ee42b6a5e7c935 /html/112read-byte.subx.html
parenta0430d580719fc0fbe1fe0c92de2ec412245762c (diff)
downloadmu-68df24fa778f7f5a2651a4623681f38dc920c490.tar.gz
6746
Diffstat (limited to 'html/112read-byte.subx.html')
-rw-r--r--html/112read-byte.subx.html170
1 files changed, 107 insertions, 63 deletions
diff --git a/html/112read-byte.subx.html b/html/112read-byte.subx.html
index 751cd196..e101e460 100644
--- a/html/112read-byte.subx.html
+++ b/html/112read-byte.subx.html
@@ -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>