about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--html/subx/074print-int-decimal.subx.html8
-rw-r--r--subx/074print-int-decimal.subx6
2 files changed, 7 insertions, 7 deletions
diff --git a/html/subx/074print-int-decimal.subx.html b/html/subx/074print-int-decimal.subx.html
index e64ed300..37c3f6df 100644
--- a/html/subx/074print-int-decimal.subx.html
+++ b/html/subx/074print-int-decimal.subx.html
@@ -86,10 +86,10 @@ if ('onhashchange' in window) {
 <span id="L25" class="LineNr"> 25 </span>    <span class="subxComment">#     EAX, EDX = EAX/10, EAX%10</span>
 <span id="L26" class="LineNr"> 26 </span>    <span class="subxComment">#     push EDX</span>
 <span id="L27" class="LineNr"> 27 </span>    <span class="subxComment">#   if n &lt; 0</span>
-<span id="L28" class="LineNr"> 28 </span>    <span class="subxComment">#     push '-' - 0x30 = -3</span>
-<span id="L29" class="LineNr"> 29 </span>    <span class="subxComment">#   w/EAX = out-&gt;write</span>
-<span id="L30" class="LineNr"> 30 </span>    <span class="subxComment">#   max/ECX = out-&gt;length</span>
-<span id="L31" class="LineNr"> 31 </span>    <span class="subxComment">#   curr/EDI = out-&gt;data[out-&gt;write]</span>
+<span id="L28" class="LineNr"> 28 </span>    <span class="subxComment">#     push '-' - '0' = -3</span>
+<span id="L29" class="LineNr"> 29 </span>    <span class="subxComment">#   max/ECX = &amp;out-&gt;data[out-&gt;length]</span>
+<span id="L30" class="LineNr"> 30 </span>    <span class="subxComment">#   w/EAX = out-&gt;write</span>
+<span id="L31" class="LineNr"> 31 </span>    <span class="subxComment">#   curr/EDI = &amp;out-&gt;data[out-&gt;write]</span>
 <span id="L32" class="LineNr"> 32 </span>    <span class="subxComment">#   while true</span>
 <span id="L33" class="LineNr"> 33 </span>    <span class="subxComment">#     if (ESP == EBX) break</span>
 <span id="L34" class="LineNr"> 34 </span>    <span class="subxComment">#     if (curr &gt;= max) abort</span>
diff --git a/subx/074print-int-decimal.subx b/subx/074print-int-decimal.subx
index eceb32b6..d4617aba 100644
--- a/subx/074print-int-decimal.subx
+++ b/subx/074print-int-decimal.subx
@@ -25,10 +25,10 @@ print-int32-decimal:  # out : (address stream), n : int32
     #     EAX, EDX = EAX/10, EAX%10
     #     push EDX
     #   if n < 0
-    #     push '-' - 0x30 = -3
+    #     push '-' - '0' = -3
+    #   max/ECX = &out->data[out->length]
     #   w/EAX = out->write
-    #   max/ECX = out->length
-    #   curr/EDI = out->data[out->write]
+    #   curr/EDI = &out->data[out->write]
     #   while true
     #     if (ESP == EBX) break
     #     if (curr >= max) abort