From 99d22b871d6631e4d49d66fa4e1886c4ab71aef7 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 23 Apr 2019 21:13:31 -0700 Subject: 5122 --- html/subx/074print-int-decimal.subx.html | 8 ++++---- 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) { 25 # EAX, EDX = EAX/10, EAX%10 26 # push EDX 27 # if n < 0 - 28 # push '-' - 0x30 = -3 - 29 # w/EAX = out->write - 30 # max/ECX = out->length - 31 # curr/EDI = out->data[out->write] + 28 # push '-' - '0' = -3 + 29 # max/ECX = &out->data[out->length] + 30 # w/EAX = out->write + 31 # curr/EDI = &out->data[out->write] 32 # while true 33 # if (ESP == EBX) break 34 # if (curr >= max) abort 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 -- cgit 1.4.1-2-gfad0