diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-08-26 11:55:26 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-08-26 11:59:21 -0700 |
commit | 333525360b22f3d3ea31db46a4d2f1b4edbfebdb (patch) | |
tree | ed255f308542ba28a99d862d54d4992dcf749622 /html/examples/ex6.subx.html | |
parent | 22fb844ba4edf14eb85245a35f42e721658c4f8e (diff) | |
download | mu-333525360b22f3d3ea31db46a4d2f1b4edbfebdb.tar.gz |
5592 - switch register names to lowercase
Diffstat (limited to 'html/examples/ex6.subx.html')
-rw-r--r-- | html/examples/ex6.subx.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/html/examples/ex6.subx.html b/html/examples/ex6.subx.html index 140d68c3..2de07c07 100644 --- a/html/examples/ex6.subx.html +++ b/html/examples/ex6.subx.html @@ -70,17 +70,17 @@ if ('onhashchange' in window) { <span id="L13" class="LineNr">13 </span><span class="SpecialChar">Entry</span>: <span id="L14" class="LineNr">14 </span> <span class="subxComment"># syscall(write, stdout, X, Size)</span> <span id="L15" class="LineNr">15 </span> <span class="subxS1Comment"># . fd = 1 (stdout)</span> -<span id="L16" class="LineNr">16 </span> bb/copy-to-EBX 1/imm32 +<span id="L16" class="LineNr">16 </span> bb/copy-to-ebx 1/imm32 <span id="L17" class="LineNr">17 </span> <span class="subxS1Comment"># . initialize X (location to write result to)</span> -<span id="L18" class="LineNr">18 </span> b9/copy-to-ECX <span class="SpecialChar"><a href='ex6.subx.html#L33'>X</a></span>/imm32 +<span id="L18" class="LineNr">18 </span> b9/copy-to-ecx <span class="SpecialChar"><a href='ex6.subx.html#L33'>X</a></span>/imm32 <span id="L19" class="LineNr">19 </span> <span class="subxS1Comment"># . initialize Size</span> -<span id="L20" class="LineNr">20 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/EDX <span class="SpecialChar"><a href='ex6.subx.html#L31'>Size</a></span>/disp32 <span class="Normal"> . </span> <span class="subxComment"># copy *Size to EDX</span> +<span id="L20" class="LineNr">20 </span> 8b/copy 0/mod/indirect 5/rm32/.disp32 <span class="Normal"> . </span> <span class="Normal"> . </span> 2/r32/edx <span class="SpecialChar"><a href='ex6.subx.html#L31'>Size</a></span>/disp32 <span class="Normal"> . </span> <span class="subxComment"># copy *Size to edx</span> <span id="L21" class="LineNr">21 </span> <span class="subxS1Comment"># . syscall</span> -<span id="L22" class="LineNr">22 </span> b8/copy-to-EAX 4/imm32/write +<span id="L22" class="LineNr">22 </span> b8/copy-to-eax 4/imm32/write <span id="L23" class="LineNr">23 </span> cd/syscall 0x80/imm8 <span id="L24" class="LineNr">24 </span> -<span id="L25" class="LineNr">25 </span> <span class="subxComment"># syscall(exit, EBX)</span> -<span id="L26" class="LineNr">26 </span> b8/copy-to-EAX 1/imm32/exit +<span id="L25" class="LineNr">25 </span> <span class="subxComment"># syscall(exit, ebx)</span> +<span id="L26" class="LineNr">26 </span> b8/copy-to-eax 1/imm32/exit <span id="L27" class="LineNr">27 </span> cd/syscall 0x80/imm8 <span id="L28" class="LineNr">28 </span> <span id="L29" class="LineNr">29 </span>== data 0x0a000000 |