changeset 91:ecca1fcfc34b

Make floating point E notation convert to ASCII correctly
author William Astle <lost@l-w.ca>
date Tue, 17 Oct 2023 17:03:37 -0600
parents f1d847f69c0d
children 6ac267da2216
files src/fps.s
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fps.s	Tue Oct 17 17:03:17 2023 -0600
+++ b/src/fps.s	Tue Oct 17 17:03:37 2023 -0600
@@ -866,7 +866,7 @@
                 lda #0x2f                       ; initialize left digit
 fps_toascii11   inca                            ; bump digit
                 subb #10                        ; are we at the right digit?
-                bhi fps_toascii11               ; brif not yet
+                bpl fps_toascii11               ; brif not yet
                 addb #10                        ; undo extra subtraction
                 sta ,u+                         ; save left digit
 fps_toascii12   addb #0x30                      ; turn right digit to ascii