diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-01-27 00:39:46 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-01-27 00:39:46 -0800 |
commit | 2104d1a75b76dbffc0b15a96c98d94e7a16594e8 (patch) | |
tree | 2a839b86e76431a9bbe4bf155f7411171a26d7f8 /html/080zero-out.subx.html | |
parent | 71eb22a5bf94f5fa0a3c95212450e3c6a1a6a990 (diff) | |
download | mu-2104d1a75b76dbffc0b15a96c98d94e7a16594e8.tar.gz |
5925
Diffstat (limited to 'html/080zero-out.subx.html')
-rw-r--r-- | html/080zero-out.subx.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/html/080zero-out.subx.html b/html/080zero-out.subx.html index 203e38db..1c4b1fae 100644 --- a/html/080zero-out.subx.html +++ b/html/080zero-out.subx.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { <span id="L5" class="LineNr"> 5 </span><span class="subxS1Comment"># . op subop mod rm32 base index scale r32</span> <span id="L6" class="LineNr"> 6 </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="L7" class="LineNr"> 7 </span> -<span id="L8" class="LineNr"> 8 </span><span class="subxFunction">zero-out</span>: <span class="subxComment"># start : (addr byte), len : int</span> +<span id="L8" class="LineNr"> 8 </span><span class="subxFunction">zero-out</span>: <span class="subxComment"># start: (addr byte), len: int</span> <span id="L9" class="LineNr"> 9 </span> <span class="subxComment"># pseudocode:</span> <span id="L10" class="LineNr">10 </span> <span class="subxComment"># curr/esi = start</span> <span id="L11" class="LineNr">11 </span> <span class="subxComment"># i/ecx = 0</span> @@ -84,7 +84,7 @@ if ('onhashchange' in window) { <span id="L25" class="LineNr">25 </span> 56/push-esi <span id="L26" class="LineNr">26 </span> <span class="subxComment"># curr/esi = start</span> <span id="L27" class="LineNr">27 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 6/r32/esi 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to esi</span> -<span id="L28" class="LineNr">28 </span> <span class="subxComment"># var i/ecx : int = 0</span> +<span id="L28" class="LineNr">28 </span> <span class="subxComment"># var i/ecx: int = 0</span> <span id="L29" class="LineNr">29 </span> 31/xor 3/mod/direct 1/rm32/ecx <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"># clear ecx</span> <span id="L30" class="LineNr">30 </span> <span class="subxComment"># edx = len</span> <span id="L31" class="LineNr">31 </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> |