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/apps/random.subx.html | |
parent | 22fb844ba4edf14eb85245a35f42e721658c4f8e (diff) | |
download | mu-333525360b22f3d3ea31db46a4d2f1b4edbfebdb.tar.gz |
5592 - switch register names to lowercase
Diffstat (limited to 'html/apps/random.subx.html')
-rw-r--r-- | html/apps/random.subx.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/html/apps/random.subx.html b/html/apps/random.subx.html index 838fa753..22efb051 100644 --- a/html/apps/random.subx.html +++ b/html/apps/random.subx.html @@ -68,22 +68,22 @@ if ('onhashchange' in window) { <span id="L10" class="LineNr">10 </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="L11" class="LineNr">11 </span> <span id="L12" class="LineNr">12 </span><span class="SpecialChar">Entry</span>: -<span id="L13" class="LineNr">13 </span> <span class="subxComment"># stream/ESI = syscall(open, "/dev/null", O_RDONLY, 0) # we can't use 'fd' because it looks like a hex byte</span> -<span id="L14" class="LineNr">14 </span> bb/copy-to-EBX <span class="SpecialChar"><a href='random.subx.html#L58'>Filename</a></span>/imm32 -<span id="L15" class="LineNr">15 </span> b9/copy-to-ECX 0/imm32/rdonly -<span id="L16" class="LineNr">16 </span> ba/copy-to-EDX 0x180/imm32/fixed-perms -<span id="L17" class="LineNr">17 </span> b8/copy-to-EAX 5/imm32/open +<span id="L13" class="LineNr">13 </span> <span class="subxComment"># stream/esi = syscall(open, "/dev/null", O_RDONLY, 0) # we can't use 'fd' because it looks like a hex byte</span> +<span id="L14" class="LineNr">14 </span> bb/copy-to-ebx <span class="SpecialChar"><a href='random.subx.html#L58'>Filename</a></span>/imm32 +<span id="L15" class="LineNr">15 </span> b9/copy-to-ecx 0/imm32/rdonly +<span id="L16" class="LineNr">16 </span> ba/copy-to-edx 0x180/imm32/fixed-perms +<span id="L17" class="LineNr">17 </span> b8/copy-to-eax 5/imm32/open <span id="L18" class="LineNr">18 </span> cd/syscall 0x80/imm8 -<span id="L19" class="LineNr">19 </span> <span class="subxS1Comment"># . stream = EAX</span> -<span id="L20" class="LineNr">20 </span> 89/copy 3/mod/direct 6/rm32/ESI <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"># copy EAX to ESI</span> +<span id="L19" class="LineNr">19 </span> <span class="subxS1Comment"># . stream = eax</span> +<span id="L20" class="LineNr">20 </span> 89/copy 3/mod/direct 6/rm32/esi <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"># copy eax to esi</span> <span id="L21" class="LineNr">21 </span> <span id="L22" class="LineNr">22 </span><span class="Constant">$loop</span>: <span id="L23" class="LineNr">23 </span> <span id="L24" class="LineNr">24 </span> <span class="subxComment"># syscall(read, Stream, N, 4)</span> -<span id="L25" class="LineNr">25 </span> 89/copy 3/mod/direct 3/rm32/EBX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 6/r32/ESI <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ESI to EBX</span> -<span id="L26" class="LineNr">26 </span> b9/copy-to-ECX <span class="SpecialChar"><a href='random.subx.html#L56'>N</a></span>/imm32 -<span id="L27" class="LineNr">27 </span> ba/copy-to-EDX 4/imm32/size -<span id="L28" class="LineNr">28 </span> b8/copy-to-EAX 3/imm32/read +<span id="L25" class="LineNr">25 </span> 89/copy 3/mod/direct 3/rm32/ebx <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 6/r32/esi <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esi to ebx</span> +<span id="L26" class="LineNr">26 </span> b9/copy-to-ecx <span class="SpecialChar"><a href='random.subx.html#L56'>N</a></span>/imm32 +<span id="L27" class="LineNr">27 </span> ba/copy-to-edx 4/imm32/size +<span id="L28" class="LineNr">28 </span> b8/copy-to-eax 3/imm32/read <span id="L29" class="LineNr">29 </span> cd/syscall 0x80/imm8 <span id="L30" class="LineNr">30 </span> <span id="L31" class="LineNr">31 </span> <span class="subxComment"># print-int32-buffered(Stdout, *N)</span> @@ -100,13 +100,13 @@ if ('onhashchange' in window) { <span id="L42" class="LineNr">42 </span> <span class="subxS2Comment"># . . call</span> <span id="L43" class="LineNr">43 </span> e8/call <a href='../065write-buffered.subx.html#L8'>write-buffered</a>/disp32 <span id="L44" class="LineNr">44 </span> <span class="subxS2Comment"># . . discard args</span> -<span id="L45" class="LineNr">45 </span> 81 0/subop/add 3/mod/direct 4/rm32/ESP <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to ESP</span> +<span id="L45" class="LineNr">45 </span> 81 0/subop/add 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/imm32 <span class="subxComment"># add to esp</span> <span id="L46" class="LineNr">46 </span> <span id="L47" class="LineNr">47 </span> eb/jump $loop/disp8 <span id="L48" class="LineNr">48 </span> <span id="L49" class="LineNr">49 </span> <span class="subxComment"># syscall(exit, 0)</span> -<span id="L50" class="LineNr">50 </span> bb/copy-to-EBX 0/imm32 -<span id="L51" class="LineNr">51 </span> b8/copy-to-EAX 1/imm32/exit +<span id="L50" class="LineNr">50 </span> bb/copy-to-ebx 0/imm32 +<span id="L51" class="LineNr">51 </span> b8/copy-to-eax 1/imm32/exit <span id="L52" class="LineNr">52 </span> cd/syscall 0x80/imm8 <span id="L53" class="LineNr">53 </span> <span id="L54" class="LineNr">54 </span>== data 0x0a000000 |