diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-12-10 09:55:46 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-12-10 09:55:46 -0800 |
commit | 3d4fba4d12030c0c872d0bec3a542f16a554d386 (patch) | |
tree | b87b68f85dbdeb126bc8d694900d2f7ad7ad286d /html | |
parent | 3a4d87073098fd42fc5133a4b5ad6e4b6d2c9aed (diff) | |
download | mu-3d4fba4d12030c0c872d0bec3a542f16a554d386.tar.gz |
4865
More mnemonic register usage in write-stream.
Diffstat (limited to 'html')
-rw-r--r-- | html/subx/060write-stream.subx.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/html/subx/060write-stream.subx.html b/html/subx/060write-stream.subx.html index 3192a504..5f400f04 100644 --- a/html/subx/060write-stream.subx.html +++ b/html/subx/060write-stream.subx.html @@ -105,35 +105,35 @@ if ('onhashchange' in window) { <span id="L40" class="LineNr"> 40 </span> 50/push-EAX <span id="L41" class="LineNr"> 41 </span> 56/push-ESI <span id="L42" class="LineNr"> 42 </span> 57/push-EDI -<span id="L43" class="LineNr"> 43 </span> <span class="subxComment"># ESI = f</span> -<span id="L44" class="LineNr"> 44 </span> 8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 6/r32/ESI 8/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy *(EBP+8) to ESI</span> -<span id="L45" class="LineNr"> 45 </span> <span class="subxComment"># EDI = s</span> -<span id="L46" class="LineNr"> 46 </span> 8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 7/r32/EDI 0xc/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy *(EBP+12) to EDI</span> +<span id="L43" class="LineNr"> 43 </span> <span class="subxComment"># EDI = f</span> +<span id="L44" class="LineNr"> 44 </span> 8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 7/r32/EDI 8/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy *(EBP+8) to EDI</span> +<span id="L45" class="LineNr"> 45 </span> <span class="subxComment"># ESI = s</span> +<span id="L46" class="LineNr"> 46 </span> 8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 6/r32/ESI 0xc/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy *(EBP+12) to ESI</span> <span id="L47" class="LineNr"> 47 </span> <span class="subxComment"># EAX = _append-4(&f->data[f->write], &f->data[f->length], &s->data[s->read], &s->data[s->write])</span> <span id="L48" class="LineNr"> 48 </span> <span class="subxS2Comment"># . . push &s->data[s->write]</span> -<span id="L49" class="LineNr"> 49 </span> 8b/copy 0/mod/indirect 7/rm32/EDI <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy *EDI to EAX</span> -<span id="L50" class="LineNr"> 50 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/EDI 0/index/EAX <span class="CommentedCode"> . </span> 0/r32/EAX 0xc/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy EDI+EAX+12 to EAX</span> +<span id="L49" class="LineNr"> 49 </span> 8b/copy 0/mod/indirect 6/rm32/ESI <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy *ESI to EAX</span> +<span id="L50" class="LineNr"> 50 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 6/base/ESI 0/index/EAX <span class="CommentedCode"> . </span> 0/r32/EAX 0xc/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy ESI+EAX+12 to EAX</span> <span id="L51" class="LineNr"> 51 </span> 50/push-EAX <span id="L52" class="LineNr"> 52 </span> <span class="subxS2Comment"># . . push &s->data[s->read]</span> -<span id="L53" class="LineNr"> 53 </span> 8b/copy 1/mod/*+disp8 7/rm32/EDI <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX 4/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy *(EDI+4) to EAX</span> -<span id="L54" class="LineNr"> 54 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/EDI 0/index/EAX <span class="CommentedCode"> . </span> 0/r32/EAX 0xc/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy EDI+EAX+12 to EAX</span> +<span id="L53" class="LineNr"> 53 </span> 8b/copy 1/mod/*+disp8 6/rm32/ESI <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX 4/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy *(ESI+4) to EAX</span> +<span id="L54" class="LineNr"> 54 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 6/base/ESI 0/index/EAX <span class="CommentedCode"> . </span> 0/r32/EAX 0xc/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy ESI+EAX+12 to EAX</span> <span id="L55" class="LineNr"> 55 </span> 50/push-EAX <span id="L56" class="LineNr"> 56 </span> <span class="subxS2Comment"># . . push &f->data[f->length]</span> -<span id="L57" class="LineNr"> 57 </span> 8b/copy 1/mod/*+disp8 6/rm32/ESI <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX 8/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy *(ESI+8) to EAX</span> -<span id="L58" class="LineNr"> 58 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 6/base/ESI 0/index/EAX <span class="CommentedCode"> . </span> 0/r32/EAX 0xc/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy ESI+EAX+12 to EAX</span> +<span id="L57" class="LineNr"> 57 </span> 8b/copy 1/mod/*+disp8 7/rm32/EDI <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX 8/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy *(EDI+8) to EAX</span> +<span id="L58" class="LineNr"> 58 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/EDI 0/index/EAX <span class="CommentedCode"> . </span> 0/r32/EAX 0xc/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy EDI+EAX+12 to EAX</span> <span id="L59" class="LineNr"> 59 </span> 50/push-EAX <span id="L60" class="LineNr"> 60 </span> <span class="subxS2Comment"># . . push &f->data[f->write]</span> -<span id="L61" class="LineNr"> 61 </span> 8b/copy 0/mod/indirect 6/rm32/ESI <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy *ESI to EAX</span> -<span id="L62" class="LineNr"> 62 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 6/base/ESI 0/index/EAX <span class="CommentedCode"> . </span> 0/r32/EAX 0xc/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy ESI+EAX+12 to EAX</span> +<span id="L61" class="LineNr"> 61 </span> 8b/copy 0/mod/indirect 7/rm32/EDI <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># copy *EDI to EAX</span> +<span id="L62" class="LineNr"> 62 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/EDI 0/index/EAX <span class="CommentedCode"> . </span> 0/r32/EAX 0xc/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># copy EDI+EAX+12 to EAX</span> <span id="L63" class="LineNr"> 63 </span> 50/push-EAX <span id="L64" class="LineNr"> 64 </span> <span class="subxS2Comment"># . . call</span> <span id="L65" class="LineNr"> 65 </span> e8/call _append-4/disp32 <span id="L66" class="LineNr"> 66 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L67" class="LineNr"> 67 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0x10/imm32 <span class="subxComment"># add to ESP</span> <span id="L68" class="LineNr"> 68 </span> <span class="subxComment"># f->write += EAX</span> -<span id="L69" class="LineNr"> 69 </span> 01/add 0/mod/indirect 6/rm32/ESI <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># add EAX to *ESI</span> +<span id="L69" class="LineNr"> 69 </span> 01/add 0/mod/indirect 7/rm32/EDI <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="subxComment"># add EAX to *EDI</span> <span id="L70" class="LineNr"> 70 </span> <span class="subxComment"># s->read += EAX</span> -<span id="L71" class="LineNr"> 71 </span> 01/add 1/mod/*+disp8 7/rm32/EDI <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX 4/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># add EAX to *(EDI+4)</span> +<span id="L71" class="LineNr"> 71 </span> 01/add 1/mod/*+disp8 6/rm32/ESI <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> <span class="CommentedCode"> . </span> 0/r32/EAX 4/disp8 <span class="CommentedCode"> . </span> <span class="subxComment"># add EAX to *(ESI+4)</span> <span id="L72" class="LineNr"> 72 </span> <span class="subxS1Comment"># . restore registers</span> <span id="L73" class="LineNr"> 73 </span> 5f/pop-to-EDI <span id="L74" class="LineNr"> 74 </span> 5e/pop-to-ESI |