changeset 109:1a5da3594a9e

Fix exponent calculation in floating point multplication When comparing signed values, use a signed branch. Otherwise things don't work as expected for some reason....
author William Astle <lost@l-w.ca>
date Sun, 24 Dec 2023 23:08:20 -0700
parents b1958992a66a
children 00c8df0b61f5
files src/fps.s
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fps.s	Sun Dec 03 14:57:19 2023 -0700
+++ b/src/fps.s	Sun Dec 24 23:08:20 2023 -0700
@@ -474,7 +474,7 @@
                 cmpa #63                        ; did we overflow upward?
                 bgt OVERROR                     ; brif so
                 cmpa #-63                       ; did we underflow?
-                bhs fps_mul3                    ; brif not
+                bge fps_mul3                    ; brif not
 fps_mul2        clr fpa0+fpa.exp                ; return zero if we underflow
                 leax ,y
                 jmp fps_pack0