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/050_write.subx.html | |
parent | 71eb22a5bf94f5fa0a3c95212450e3c6a1a6a990 (diff) | |
download | mu-2104d1a75b76dbffc0b15a96c98d94e7a16594e8.tar.gz |
5925
Diffstat (limited to 'html/050_write.subx.html')
-rw-r--r-- | html/050_write.subx.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/html/050_write.subx.html b/html/050_write.subx.html index 2369ce10..967cf9d8 100644 --- a/html/050_write.subx.html +++ b/html/050_write.subx.html @@ -70,7 +70,7 @@ if ('onhashchange' in window) { <span id="L11" class="LineNr">11 </span> b8/copy-to-eax 1/imm32/exit <span id="L12" class="LineNr">12 </span> cd/syscall 0x80/imm8 <span id="L13" class="LineNr">13 </span> -<span id="L14" class="LineNr">14 </span><span class="subxMinorFunction">_write</span>: <span class="subxComment"># fd : int, s : (addr array byte)</span> +<span id="L14" class="LineNr">14 </span><span class="subxMinorFunction">_write</span>: <span class="subxComment"># fd: int, s: (addr array byte)</span> <span id="L15" class="LineNr">15 </span> <span class="subxS1Comment"># . prologue</span> <span id="L16" class="LineNr">16 </span> 55/push-ebp <span id="L17" class="LineNr">17 </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> @@ -80,12 +80,12 @@ if ('onhashchange' in window) { <span id="L21" class="LineNr">21 </span> 52/push-edx <span id="L22" class="LineNr">22 </span> 53/push-ebx <span id="L23" class="LineNr">23 </span> <span class="subxComment"># syscall(write, fd, (data) s+4, (size) *s)</span> -<span id="L24" class="LineNr">24 </span> <span class="subxS1Comment"># . fd : ebx</span> +<span id="L24" class="LineNr">24 </span> <span class="subxS1Comment"># . ebx = fd</span> <span id="L25" class="LineNr">25 </span> 8b/copy 1/mod/*+disp8 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 3/r32/ebx 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+8) to ebx</span> -<span id="L26" class="LineNr">26 </span> <span class="subxS1Comment"># . data : ecx = s+4</span> +<span id="L26" class="LineNr">26 </span> <span class="subxS1Comment"># . var data/ecx: (addr byte) = s+4</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> 1/r32/ecx 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ebp+12) to ecx</span> <span id="L28" class="LineNr">28 </span> 81 0/subop/add 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> 4/imm32 <span class="subxComment"># add to ecx</span> -<span id="L29" class="LineNr">29 </span> <span class="subxS1Comment"># . size : edx = *s</span> +<span id="L29" class="LineNr">29 </span> <span class="subxS1Comment"># . var size/edx: int = *s</span> <span id="L30" class="LineNr">30 </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="L31" class="LineNr">31 </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="L32" class="LineNr">32 </span> <span class="subxS1Comment"># . syscall</span> |