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>2020-01-27 00:39:46 -0800
committerKartik Agaram <vc@akkartik.com>2020-01-27 00:39:46 -0800
commit2104d1a75b76dbffc0b15a96c98d94e7a16594e8 (patch)
tree2a839b86e76431a9bbe4bf155f7411171a26d7f8 /html/084emit-hex-array.subx.html
parent71eb22a5bf94f5fa0a3c95212450e3c6a1a6a990 (diff)
downloadmu-2104d1a75b76dbffc0b15a96c98d94e7a16594e8.tar.gz
5925
Diffstat (limited to 'html/084emit-hex-array.subx.html')
-rw-r--r--html/084emit-hex-array.subx.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/html/084emit-hex-array.subx.html b/html/084emit-hex-array.subx.html
index db2762e5..fb0e7885 100644
--- a/html/084emit-hex-array.subx.html
+++ b/html/084emit-hex-array.subx.html
@@ -64,7 +64,7 @@ if ('onhashchange' in window) {
 <span id="L4" class="LineNr">  4 </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="L5" class="LineNr">  5 </span>
 <span id="L6" class="LineNr">  6 </span><span class="subxComment"># print 'arr' in hex with a space after every byte</span>
-<span id="L7" class="LineNr">  7 </span><span class="subxFunction">emit-hex-array</span>:  <span class="subxComment"># out : (addr buffered-file), arr : (addr array byte)</span>
+<span id="L7" class="LineNr">  7 </span><span class="subxFunction">emit-hex-array</span>:  <span class="subxComment"># out: (addr buffered-file), arr: (addr array byte)</span>
 <span id="L8" class="LineNr">  8 </span>    <span class="subxS1Comment"># . prologue</span>
 <span id="L9" class="LineNr">  9 </span>    55/push-ebp
 <span id="L10" class="LineNr"> 10 </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>
@@ -77,12 +77,12 @@ if ('onhashchange' in window) {
 <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</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"># var curr/ecx : (addr byte) = arr-&gt;data</span>
+<span id="L20" class="LineNr"> 20 </span>    <span class="subxComment"># var curr/ecx: (addr 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"># var max/edx : (addr byte) = &amp;arr-&gt;data[arr-&gt;length]</span>
+<span id="L22" class="LineNr"> 22 </span>    <span class="subxComment"># var max/edx: (addr 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"># var c/eax : byte = 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>