about summary refs log tree commit diff stats
path: root/html/084emit-hex-array.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-12-09 01:26:58 -0800
committerKartik Agaram <vc@akkartik.com>2019-12-09 01:26:58 -0800
commit8aeb85f04ee68b960a6d326aca1a17dec2f6d019 (patch)
tree26f861361c28ca77fb8298b21a905dc6e06c91ef /html/084emit-hex-array.subx.html
parent2249e605c19f0dbe0c34c1c4f635b802f56dc535 (diff)
downloadmu-8aeb85f04ee68b960a6d326aca1a17dec2f6d019.tar.gz
5806
Diffstat (limited to 'html/084emit-hex-array.subx.html')
-rw-r--r--html/084emit-hex-array.subx.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/html/084emit-hex-array.subx.html b/html/084emit-hex-array.subx.html
index d3b42d62..e4d39d23 100644
--- a/html/084emit-hex-array.subx.html
+++ b/html/084emit-hex-array.subx.html
@@ -75,20 +75,20 @@ if ('onhashchange' in window) {
 <span id="L15" class="LineNr"> 15 </span>    57/push-edi
 <span id="L16" class="LineNr"> 16 </span>    <span class="subxComment"># edi = out</span>
 <span id="L17" class="LineNr"> 17 </span>    8b/copy                         1/mod/*+disp8   5/rm32/ebp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          7/r32/edi   8/disp8        <span class="Normal"> . </span>                <span class="subxComment"># copy *(ebp+8) to edi</span>
-<span id="L18" class="LineNr"> 18 </span>    <span class="subxComment"># edx = arr  # &lt;== 0xbdffffe4</span>
+<span id="L18" class="LineNr"> 18 </span>    <span class="subxComment"># edx = arr</span>
 <span id="L19" class="LineNr"> 19 </span>    8b/copy                         1/mod/*+disp8   5/rm32/ebp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          2/r32/edx   0xc/disp8      <span class="Normal"> . </span>                <span class="subxComment"># copy *(ebp+12) to edx</span>
-<span id="L20" class="LineNr"> 20 </span>    <span class="subxComment"># curr/ecx = arr-&gt;data</span>
+<span id="L20" class="LineNr"> 20 </span>    <span class="subxComment"># var curr/ecx : (address byte) = arr-&gt;data</span>
 <span id="L21" class="LineNr"> 21 </span>    8d/copy-address                 1/mod/*+disp8   2/rm32/edx   <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 edx+4 to ecx</span>
-<span id="L22" class="LineNr"> 22 </span>    <span class="subxComment"># max/edx = arr-&gt;data + arr-&gt;length</span>
+<span id="L22" class="LineNr"> 22 </span>    <span class="subxComment"># var max/edx : (address byte) = &amp;arr-&gt;data[arr-&gt;length]</span>
 <span id="L23" class="LineNr"> 23 </span>    8b/copy                         0/mod/indirect  2/rm32/edx   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          2/r32/edx  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># copy *edx to edx</span>
 <span id="L24" class="LineNr"> 24 </span>    01/add                          3/mod/direct    2/rm32/edx   <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"># add ecx to edx</span>
-<span id="L25" class="LineNr"> 25 </span>    <span class="subxComment"># eax = 0</span>
+<span id="L25" class="LineNr"> 25 </span>    <span class="subxComment"># var c/eax : byte = 0</span>
 <span id="L26" class="LineNr"> 26 </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="L27" class="LineNr"> 27 </span><span class="Constant">$emit-hex-array:loop</span>:
 <span id="L28" class="LineNr"> 28 </span>    <span class="subxComment"># if (curr &gt;= width) break</span>
 <span id="L29" class="LineNr"> 29 </span>    39/compare                      3/mod/direct    1/rm32/ecx   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          2/r32/edx  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># compare ecx with edx</span>
 <span id="L30" class="LineNr"> 30 </span>    73/jump-if-greater-or-equal-unsigned  $emit-hex-array:end/disp8
-<span id="L31" class="LineNr"> 31 </span>    <span class="subxComment"># emit-hex(out, *curr, width=1)</span>
+<span id="L31" class="LineNr"> 31 </span>    <span class="subxComment"># emit-hex(out, c = *curr, width=1)</span>
 <span id="L32" class="LineNr"> 32 </span>    <span class="subxS2Comment"># . . push args</span>
 <span id="L33" class="LineNr"> 33 </span>    68/push  1/imm32/width
 <span id="L34" class="LineNr"> 34 </span>    8a/copy-byte                    0/mod/indirect  1/rm32/ecx   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          0/r32/AL   <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># copy byte at *ecx to AL</span>
@@ -124,14 +124,14 @@ if ('onhashchange' in window) {
 <span id="L64" class="LineNr"> 64 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
 <span id="L65" class="LineNr"> 65 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L66" class="LineNr"> 66 </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="L67" class="LineNr"> 67 </span>    <span class="subxS1Comment"># . clear-stream(_test-output-buffered-file-&gt;buffer)</span>
+<span id="L67" class="LineNr"> 67 </span>    <span class="subxS1Comment"># . clear-stream($_test-output-buffered-file-&gt;buffer)</span>
 <span id="L68" class="LineNr"> 68 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L69" class="LineNr"> 69 </span>    68/push  <a href='064write-byte.subx.html#L331'>_test-output-buffered-file-&gt;buffer</a>/imm32
+<span id="L69" class="LineNr"> 69 </span>    68/push  $_test-output-buffered-file-&gt;buffer/imm32
 <span id="L70" class="LineNr"> 70 </span>    <span class="subxS2Comment"># . . call</span>
 <span id="L71" class="LineNr"> 71 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
 <span id="L72" class="LineNr"> 72 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L73" class="LineNr"> 73 </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="L74" class="LineNr"> 74 </span>    <span class="subxComment"># var arr/ecx (address array byte) = [01, 02, 03]</span>
+<span id="L74" class="LineNr"> 74 </span>    <span class="subxComment"># var arr/ecx (ref array byte) = [01, 02, 03]</span>
 <span id="L75" class="LineNr"> 75 </span>    68/push  0x00030201/imm32  <span class="subxComment"># bytes 01 02 03</span>
 <span id="L76" class="LineNr"> 76 </span>    68/push  3/imm32/length
 <span id="L77" class="LineNr"> 77 </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>
@@ -157,7 +157,7 @@ if ('onhashchange' in window) {
 <span id="L129" class="LineNr">129 </span>    68/push  <span class="Constant">&quot;01 02 03 &quot;</span>/imm32
 <span id="L130" class="LineNr">130 </span>    68/push  <a href='064write-byte.subx.html#L286'>_test-output-stream</a>/imm32
 <span id="L131" class="LineNr">131 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L132" class="LineNr">132 </span>    e8/call  <a href='058stream-equal.subx.html#L563'>check-next-stream-line-equal</a>/disp32
+<span id="L132" class="LineNr">132 </span>    e8/call  <a href='058stream-equal.subx.html#L565'>check-next-stream-line-equal</a>/disp32
 <span id="L133" class="LineNr">133 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L134" class="LineNr">134 </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>              0xc/imm32         <span class="subxComment"># add to esp</span>
 <span id="L135" class="LineNr">135 </span>    <span class="subxS1Comment"># . epilogue</span>