about summary refs log tree commit diff stats
path: root/html/subx/examples/ex8.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-12-02 12:49:15 -0800
committerKartik Agaram <vc@akkartik.com>2018-12-02 13:09:23 -0800
commit39d718afcff131abf9c12f89357e7e387d7892d5 (patch)
treed7179a92c27871ec646661517e348957b9805a5f /html/subx/examples/ex8.subx.html
parentf44c595267ba1dc6b076340e300961c304904408 (diff)
downloadmu-39d718afcff131abf9c12f89357e7e387d7892d5.tar.gz
4816
Diffstat (limited to 'html/subx/examples/ex8.subx.html')
-rw-r--r--html/subx/examples/ex8.subx.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/html/subx/examples/ex8.subx.html b/html/subx/examples/ex8.subx.html
index 50f28a7c..07534b4d 100644
--- a/html/subx/examples/ex8.subx.html
+++ b/html/subx/examples/ex8.subx.html
@@ -23,6 +23,8 @@ body { font-size:12pt; font-family: monospace; color: #aaaaaa; background-color:
 .LineNr { color:#444444; }
 .subxS1Comment { color:#2d8cff; }
 .CommentedCode { color: #6c6c6c; }
+.subxFunction { color: #ff8700; }
+.Constant { color:#00a0a0; }
 -->
 </style>
 
@@ -94,12 +96,12 @@ 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>ascii-length:  <span class="subxComment"># s : (address array byte) -&gt; n/EAX</span>
+<span id="L37" class="LineNr">37 </span><span class="subxFunction">ascii-length</span>:  <span class="subxComment"># s : (address array byte) -&gt; 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="CommentedCode"> . </span>          2/r32/EDX   4/disp8        <span class="CommentedCode"> . </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>
 <span id="L41" class="LineNr">41 </span>    b8/copy-to-EAX  0/imm32
-<span id="L42" class="LineNr">42 </span>$ascii-length-loop:
+<span id="L42" class="LineNr">42 </span><span class="Constant">$ascii-length-loop</span>:
 <span id="L43" class="LineNr">43 </span>    <span class="subxComment"># var c/ECX = *s</span>
 <span id="L44" class="LineNr">44 </span>    8a/copy                         0/mod/*         2/rm32/EDX   <span class="CommentedCode"> . </span>         <span class="CommentedCode"> . </span>           <span class="CommentedCode"> . </span>          1/r32/ECX  <span class="CommentedCode"> . </span>             <span class="CommentedCode"> . </span>                <span class="subxComment"># copy byte at *EDX to lower byte of ECX</span>
 <span id="L45" class="LineNr">45 </span>    <span class="subxComment"># if c == '\0' break</span>
@@ -111,7 +113,7 @@ if ('onhashchange' in window) {
 <span id="L51" class="LineNr">51 </span>    40/inc-EAX
 <span id="L52" class="LineNr">52 </span>    <span class="subxComment"># loop</span>
 <span id="L53" class="LineNr">53 </span>    eb/jump  $ascii-length-loop/disp8
-<span id="L54" class="LineNr">54 </span>$ascii-length-ret:
+<span id="L54" class="LineNr">54 </span><span class="Constant">$ascii-length-ret</span>:
 <span id="L55" class="LineNr">55 </span>    <span class="subxComment"># return EAX</span>
 <span id="L56" class="LineNr">56 </span>    c3/return
 <span id="L57" class="LineNr">57 </span>