Mercurial > hg > index.cgi
changeset 97:b375a38b2b1a
Fix initialization error in integer to ascii conversion
author | William Astle <lost@l-w.ca> |
---|---|
date | Sun, 22 Oct 2023 21:15:14 -0600 |
parents | 69af7224f614 |
children | 6837d10b67fb |
files | src/int.s |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/int.s Sun Oct 22 21:05:37 2023 -0600 +++ b/src/int.s Sun Oct 22 21:15:14 2023 -0600 @@ -9,8 +9,8 @@ lda #0x20 ; default sign to space sta -1,u ldx #int_toascii5 ; point to digit constant table - ldd #10 ; do 10 digits, no nonzero seen yet - stb fpaextra ; save digit count + ldd #0xa00 ; do 10 digits, no nonzero seen yet + std fpaextra ; save digit counts ldd val0+val.int+2 ; copy to temporary accumulator std fpaextra+4 ldd val0+val.int