diff options
Diffstat (limited to 'html/055stream.subx.html')
-rw-r--r-- | html/055stream.subx.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/html/055stream.subx.html b/html/055stream.subx.html index c66e74fe..50f3253d 100644 --- a/html/055stream.subx.html +++ b/html/055stream.subx.html @@ -16,9 +16,9 @@ a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } +.subxFunction { color: #af5f00; text-decoration: underline; } .LineNr { } .subxS1Comment { color: #0000af; } -.subxFunction { color: #af5f00; text-decoration: underline; } .Normal { color: #000000; background-color: #c6c6c6; padding-bottom: 1px; } .Constant { color: #008787; } .subxH1Comment { color: #005faf; text-decoration: underline; } @@ -62,10 +62,10 @@ if ('onhashchange' in window) { <span id="L3" class="LineNr"> 3 </span><span class="subxComment"># A stream looks like this:</span> <span id="L4" class="LineNr"> 4 </span><span class="subxComment"># write: int # index at which writes go</span> <span id="L5" class="LineNr"> 5 </span><span class="subxComment"># read: int # index that we've read until</span> -<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># data: (array byte) # prefixed by length as usual</span> +<span id="L6" class="LineNr"> 6 </span><span class="subxComment"># data: (array byte) # prefixed by size as usual</span> <span id="L7" class="LineNr"> 7 </span><span class="subxComment">#</span> <span id="L8" class="LineNr"> 8 </span><span class="subxComment"># some primitives for operating on streams:</span> -<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># - clear-stream (clears everything but the data length)</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxComment"># - clear-stream (clears everything but the data size)</span> <span id="L10" class="LineNr">10 </span><span class="subxComment"># - rewind-stream (resets read pointer)</span> <span id="L11" class="LineNr">11 </span> <span id="L12" class="LineNr">12 </span>== code @@ -82,9 +82,9 @@ if ('onhashchange' in window) { <span id="L23" class="LineNr">23 </span> 51/push-ecx <span id="L24" class="LineNr">24 </span> <span class="subxComment"># eax = f</span> <span id="L25" class="LineNr">25 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to eax</span> -<span id="L26" class="LineNr">26 </span> <span class="subxComment"># var count/ecx: int = f->length</span> +<span id="L26" class="LineNr">26 </span> <span class="subxComment"># var count/ecx: int = f->size</span> <span id="L27" class="LineNr">27 </span> 8b/copy 1/mod/*+disp8 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 1/r32/ecx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(eax+8) to ecx</span> -<span id="L28" class="LineNr">28 </span> <span class="subxComment"># var max/ecx: (addr byte) = &f->data[f->length]</span> +<span id="L28" class="LineNr">28 </span> <span class="subxComment"># var max/ecx: (addr byte) = &f->data[f->size]</span> <span id="L29" class="LineNr">29 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 0/base/eax 1/index/ecx <span class="Normal"> . </span> 1/r32/ecx 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy eax+ecx+12 to ecx</span> <span id="L30" class="LineNr">30 </span> <span class="subxComment"># f->write = 0</span> <span id="L31" class="LineNr">31 </span> c7 0/subop/copy 0/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> 0/imm32 <span class="subxComment"># copy to *eax</span> |