about summary refs log tree commit diff stats
path: root/html/linux/101_write.subx.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/linux/101_write.subx.html')
-rw-r--r--html/linux/101_write.subx.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/html/linux/101_write.subx.html b/html/linux/101_write.subx.html
index c9e0afe4..c1b5cfd5 100644
--- a/html/linux/101_write.subx.html
+++ b/html/linux/101_write.subx.html
@@ -15,13 +15,13 @@ body { font-size:12pt; font-family: monospace; color: #000000; background-color:
 a { color:inherit; }
 * { font-size:12pt; font-size: 1em; }
 .subxComment { color: #005faf; }
+.subxS1Comment { color: #0000af; }
 .subxS2Comment { color: #8a8a8a; }
 .LineNr { }
-.subxS1Comment { color: #0000af; }
 .Constant { color: #008787; }
-.SpecialChar { color: #d70000; }
 .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; }
 .subxMinorFunction { color: #875f5f; }
+.CommentedCode { color: #8a8a8a; }
 -->
 </style>
 
@@ -64,9 +64,9 @@ 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="SpecialChar">Entry</span>:  <span class="subxComment"># just exit; can't test _write just yet</span>
-<span id="L9" class="LineNr"> 9 </span>    bb/copy-to-ebx  0/imm32
-<span id="L10" class="LineNr">10 </span>    e8/call  <a href='000init.subx.html#L18'>syscall_exit</a>/disp32
+<span id="L8" class="LineNr"> 8 </span><span class="CommentedCode">#? Entry:  # just exit; can't test _write just yet</span>
+<span id="L9" class="LineNr"> 9 </span><span class="CommentedCode">#?     bb/copy-to-ebx  0/imm32</span>
+<span id="L10" class="LineNr">10 </span><span class="CommentedCode">#?     e8/call  syscall_exit/disp32</span>
 <span id="L11" class="LineNr">11 </span>
 <span id="L12" class="LineNr">12 </span><span class="subxMinorFunction">_write</span>:  <span class="subxComment"># fd: int, s: (addr array byte)</span>
 <span id="L13" class="LineNr">13 </span>    <span class="subxS1Comment"># . prologue</span>
@@ -77,7 +77,7 @@ if ('onhashchange' in window) {
 <span id="L18" class="LineNr">18 </span>    51/push-ecx
 <span id="L19" class="LineNr">19 </span>    52/push-edx
 <span id="L20" class="LineNr">20 </span>    53/push-ebx
-<span id="L21" class="LineNr">21 </span>    <span class="subxComment"># syscall(write, fd, (data) s+4, (size) *s)</span>
+<span id="L21" class="LineNr">21 </span>    <span class="subxComment"># syscall_write(fd, (data) s+4, (size) *s)</span>
 <span id="L22" class="LineNr">22 </span>    <span class="subxS1Comment"># . ebx = fd</span>
 <span id="L23" class="LineNr">23 </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="L24" class="LineNr">24 </span>    <span class="subxS1Comment"># . var data/ecx: (addr byte) = s+4</span>
@@ -104,7 +104,7 @@ if ('onhashchange' in window) {
 <span id="L45" class="LineNr">45 </span>
 <span id="L46" class="LineNr">46 </span><span class="Constant">$_write:abort</span>:
 <span id="L47" class="LineNr">47 </span>    <span class="subxComment"># can't write a message here for risk of an infinite loop, so we'll use a special exit code instead</span>
-<span id="L48" class="LineNr">48 </span>    <span class="subxS1Comment"># . syscall(exit, 255)</span>
+<span id="L48" class="LineNr">48 </span>    <span class="subxS1Comment"># . syscall_exit(255)</span>
 <span id="L49" class="LineNr">49 </span>    bb/copy-to-ebx  0xff/imm32
 <span id="L50" class="LineNr">50 </span>    e8/call  <a href='000init.subx.html#L18'>syscall_exit</a>/disp32
 <span id="L51" class="LineNr">51 </span>    <span class="subxComment"># never gets here</span>