about summary refs log tree commit diff stats
path: root/html/examples/ex3.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-08-26 11:55:26 -0700
committerKartik Agaram <vc@akkartik.com>2019-08-26 11:59:21 -0700
commit333525360b22f3d3ea31db46a4d2f1b4edbfebdb (patch)
treeed255f308542ba28a99d862d54d4992dcf749622 /html/examples/ex3.subx.html
parent22fb844ba4edf14eb85245a35f42e721658c4f8e (diff)
downloadmu-333525360b22f3d3ea31db46a4d2f1b4edbfebdb.tar.gz
5592 - switch register names to lowercase
Diffstat (limited to 'html/examples/ex3.subx.html')
-rw-r--r--html/examples/ex3.subx.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/html/examples/ex3.subx.html b/html/examples/ex3.subx.html
index 9a9ff088..6dd200f0 100644
--- a/html/examples/ex3.subx.html
+++ b/html/examples/ex3.subx.html
@@ -71,25 +71,25 @@ if ('onhashchange' in window) {
 <span id="L13" class="LineNr">13 </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="L14" class="LineNr">14 </span>
 <span id="L15" class="LineNr">15 </span><span class="SpecialChar">Entry</span>:
-<span id="L16" class="LineNr">16 </span>    <span class="subxComment"># result: EBX = 0</span>
-<span id="L17" class="LineNr">17 </span>    bb/copy-to-EBX  0/imm32
-<span id="L18" class="LineNr">18 </span>    <span class="subxComment"># counter: ECX = 1</span>
-<span id="L19" class="LineNr">19 </span>    b9/copy-to-ECX  1/imm32
+<span id="L16" class="LineNr">16 </span>    <span class="subxComment"># result: ebx = 0</span>
+<span id="L17" class="LineNr">17 </span>    bb/copy-to-ebx  0/imm32
+<span id="L18" class="LineNr">18 </span>    <span class="subxComment"># counter: ecx = 1</span>
+<span id="L19" class="LineNr">19 </span>    b9/copy-to-ecx  1/imm32
 <span id="L20" class="LineNr">20 </span>
 <span id="L21" class="LineNr">21 </span><span class="Constant">$loop</span>:
 <span id="L22" class="LineNr">22 </span>    <span class="subxComment"># if (counter &gt; 10) break</span>
-<span id="L23" class="LineNr">23 </span>    81          7/subop/compare     3/mod/direct    1/rm32/ECX   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              0xa/imm32         <span class="subxComment"># compare ECX</span>
+<span id="L23" class="LineNr">23 </span>    81          7/subop/compare     3/mod/direct    1/rm32/ecx   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              0xa/imm32         <span class="subxComment"># compare ecx</span>
 <span id="L24" class="LineNr">24 </span>    7f/jump-if-greater  $exit/disp8
 <span id="L25" class="LineNr">25 </span>    <span class="subxComment"># result += counter</span>
-<span id="L26" class="LineNr">26 </span>    01/add                          3/mod/direct    3/rm32/EBX   <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 EBX</span>
+<span id="L26" class="LineNr">26 </span>    01/add                          3/mod/direct    3/rm32/ebx   <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 ebx</span>
 <span id="L27" class="LineNr">27 </span>    <span class="subxComment"># ++counter</span>
-<span id="L28" class="LineNr">28 </span>    41/increment-ECX
+<span id="L28" class="LineNr">28 </span>    41/increment-ecx
 <span id="L29" class="LineNr">29 </span>    <span class="subxComment"># loop</span>
 <span id="L30" class="LineNr">30 </span>    eb/jump  $loop/disp8
 <span id="L31" class="LineNr">31 </span>
 <span id="L32" class="LineNr">32 </span><span class="Constant">$exit</span>:
-<span id="L33" class="LineNr">33 </span>    <span class="subxComment"># syscall(exit, EBX)</span>
-<span id="L34" class="LineNr">34 </span>    b8/copy-to-EAX  1/imm32/exit
+<span id="L33" class="LineNr">33 </span>    <span class="subxComment"># syscall(exit, ebx)</span>
+<span id="L34" class="LineNr">34 </span>    b8/copy-to-eax  1/imm32/exit
 <span id="L35" class="LineNr">35 </span>    cd/syscall  0x80/imm8
 <span id="L36" class="LineNr">36 </span>
 <span id="L37" class="LineNr">37 </span>== data 0x0a000000