diff options
Diffstat (limited to 'html/subx/examples/ex8.subx.html')
-rw-r--r-- | html/subx/examples/ex8.subx.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/html/subx/examples/ex8.subx.html b/html/subx/examples/ex8.subx.html index af438a07..5990b476 100644 --- a/html/subx/examples/ex8.subx.html +++ b/html/subx/examples/ex8.subx.html @@ -12,6 +12,7 @@ <!-- pre { font-family: monospace; color: #000000; background-color: #c6c6c6; } body { font-size:12pt; font-family: monospace; color: #000000; background-color: #c6c6c6; } +a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } .subxS2Comment { color: #8a8a8a; } @@ -82,7 +83,7 @@ if ('onhashchange' in window) { <span id="L25" class="LineNr">25 </span> <span class="subxS2Comment"># . . push args</span> <span id="L26" class="LineNr">26 </span> ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 8/disp8 <span class="Normal"> . </span> <span class="subxComment"># push *(EBP+8)</span> <span id="L27" class="LineNr">27 </span> <span class="subxS2Comment"># . . call</span> -<span id="L28" class="LineNr">28 </span> e8/call ascii-length/disp32 +<span id="L28" class="LineNr">28 </span> e8/call <a href='ex8.subx.html#L37'>ascii-length</a>/disp32 <span id="L29" class="LineNr">29 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L30" class="LineNr">30 </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> 4/imm32 <span class="subxComment"># add to ESP</span> <span id="L31" class="LineNr">31 </span> @@ -91,7 +92,7 @@ if ('onhashchange' in window) { <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><span class="subxFunction">ascii-length</span>: <span class="subxComment"># s : (address array byte) -> n/EAX</span> +<span id="L37" class="LineNr">37 </span><span class="subxFunction"><a href='ex8.subx.html#L37'>ascii-length</a></span>: <span class="subxComment"># s : (address array byte) -> n/EAX</span> <span id="L38" class="LineNr">38 </span> <span class="subxComment"># EDX = s</span> <span id="L39" class="LineNr">39 </span> 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/ESP 4/index/none <span class="Normal"> . </span> 2/r32/EDX 4/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy *(ESP+4) to EDX</span> <span id="L40" class="LineNr">40 </span> <span class="subxComment"># var result/EAX = 0</span> |