about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-04-23 21:13:31 -0700
committerKartik Agaram <vc@akkartik.com>2019-04-23 21:13:31 -0700
commit99d22b871d6631e4d49d66fa4e1886c4ab71aef7 (patch)
tree35fea2afb4b5d39f5deb317bcc067217a01d37de
parentcaa6fd200cff39257572c0b3a9915903868904c4 (diff)
downloadmu-99d22b871d6631e4d49d66fa4e1886c4ab71aef7.tar.gz
5122
-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