Mercurial > hg > index.cgi
changeset 88:a8467c798450
Correct off by one in FP exponent handling in ascii parsing
author | William Astle <lost@l-w.ca> |
---|---|
date | Mon, 16 Oct 2023 23:42:35 -0600 |
parents | 3bfd978ddb39 |
children | f519075cc164 |
files | src/number.s |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/number.s Mon Oct 16 16:48:46 2023 -0600 +++ b/src/number.s Mon Oct 16 23:42:35 2023 -0600 @@ -238,7 +238,7 @@ val_parsenum13 lda #valtype_float ; set return value to floating point sta val0+val.type lda fpa0+fpa.exp ; put the bias into the exponent but subtract one for leading digit - adda #64 + adda #63 sta fpa0+fpa.exp ldy #val0+val.value ; normalize/round and return the result jmp fps_normalize