diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-04-23 21:13:31 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-04-23 21:13:31 -0700 |
commit | 99d22b871d6631e4d49d66fa4e1886c4ab71aef7 (patch) | |
tree | 35fea2afb4b5d39f5deb317bcc067217a01d37de | |
parent | caa6fd200cff39257572c0b3a9915903868904c4 (diff) | |
download | mu-99d22b871d6631e4d49d66fa4e1886c4ab71aef7.tar.gz |
5122
-rw-r--r-- | html/subx/074print-int-decimal.subx.html | 8 | ||||
-rw-r--r-- | subx/074print-int-decimal.subx | 6 |
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 < 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->write</span> -<span id="L30" class="LineNr"> 30 </span> <span class="subxComment"># max/ECX = out->length</span> -<span id="L31" class="LineNr"> 31 </span> <span class="subxComment"># curr/EDI = out->data[out->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 = &out->data[out->length]</span> +<span id="L30" class="LineNr"> 30 </span> <span class="subxComment"># w/EAX = out->write</span> +<span id="L31" class="LineNr"> 31 </span> <span class="subxComment"># curr/EDI = &out->data[out->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 >= 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 |