diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-01-16 18:31:12 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-01-16 18:31:12 -0800 |
commit | 6070c23e5e1c60d3bb169e43bddfa59b1d322427 (patch) | |
tree | 9a70e378c33c15e4779cf94abda8f37c35a5d1da /html/082slurp.subx.html | |
parent | 5a6601aba973ba1d1ef30b7b64438c25623b89c5 (diff) | |
download | mu-6070c23e5e1c60d3bb169e43bddfa59b1d322427.tar.gz |
5897 - rename comparison instructions
Signed and unsigned don't quite capture the essence of what the different combinations of x86 flags are doing for SubX. The crucial distinction is that one set of comparison operators is for integers and the second is for addresses.
Diffstat (limited to 'html/082slurp.subx.html')
-rw-r--r-- | html/082slurp.subx.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/082slurp.subx.html b/html/082slurp.subx.html index a34f3bde..9491c189 100644 --- a/html/082slurp.subx.html +++ b/html/082slurp.subx.html @@ -94,10 +94,10 @@ if ('onhashchange' in window) { <span id="L35" class="LineNr"> 35 </span><span class="Constant">$slurp:loop</span>: <span id="L36" class="LineNr"> 36 </span> <span class="subxComment"># if (s->write >= s->length) abort</span> <span id="L37" class="LineNr"> 37 </span> 3b/compare 1/mod/*+disp8 7/rm32/edi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># compare edx with *(edi+8)</span> -<span id="L38" class="LineNr"> 38 </span> 7d/jump-if-greater-or-equal $slurp:abort/disp8 +<span id="L38" class="LineNr"> 38 </span> 7d/jump-if->= $slurp:abort/disp8 <span id="L39" class="LineNr"> 39 </span> <span class="subxComment"># if (f->read >= f->write) populate stream from file</span> <span id="L40" class="LineNr"> 40 </span> 3b/compare 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"># compare ecx with *(esi+4)</span> -<span id="L41" class="LineNr"> 41 </span> 7c/jump-if-lesser $slurp:from-stream/disp8 +<span id="L41" class="LineNr"> 41 </span> 7c/jump-if-< $slurp:from-stream/disp8 <span id="L42" class="LineNr"> 42 </span> <span class="subxS1Comment"># . clear-stream(stream = f+4)</span> <span id="L43" class="LineNr"> 43 </span> <span class="subxS2Comment"># . . push args</span> <span id="L44" class="LineNr"> 44 </span> 8d/copy-address 1/mod/*+disp8 6/rm32/esi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy esi+4 to eax</span> @@ -120,7 +120,7 @@ if ('onhashchange' in window) { <span id="L61" class="LineNr"> 61 </span> <span class="subxComment"># since f->read was initially 0, eax is the same as f->write</span> <span id="L62" class="LineNr"> 62 </span> <span class="subxS1Comment"># . if (eax == 0) return true</span> <span id="L63" class="LineNr"> 63 </span> 3d/compare-eax-and 0/imm32 -<span id="L64" class="LineNr"> 64 </span> 74/jump-if-equal $slurp:end/disp8 +<span id="L64" class="LineNr"> 64 </span> 74/jump-if-= $slurp:end/disp8 <span id="L65" class="LineNr"> 65 </span><span class="Constant">$slurp:from-stream</span>: <span id="L66" class="LineNr"> 66 </span> <span class="subxComment"># var c/eax : byte = f->data[f->read]</span> <span id="L67" class="LineNr"> 67 </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> |