From fb2796ac068275cb0cccc0b91e2cee8d37d74ae8 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Wed, 10 Apr 2019 23:14:28 +0200 Subject: [PATCH] truly fix min(f)/max(f) also fix ceil(f) --- compiler/res/prog8lib/c64flt.p8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/res/prog8lib/c64flt.p8 b/compiler/res/prog8lib/c64flt.p8 index 5696895ed..d54692238 100644 --- a/compiler/res/prog8lib/c64flt.p8 +++ b/compiler/res/prog8lib/c64flt.p8 @@ -831,7 +831,7 @@ func_ceil .proc ; -- ceil: tr = int(f); if tr==f -> return else return tr+1 jsr pop_float_fac1 stx c64.SCRATCH_ZPREGX - lda #fmath_float1 jsr MOVMF jsr INT @@ -915,9 +915,9 @@ _minmax_cmp cmp #255 ; modified inc c64.SCRATCH_ZPWORD1+1 + ldy c64.SCRATCH_ZPREG dey + cpy #255 bne - jmp push_fac1_as_result - rts _largest_neg_float .byte 255,255,255,255,255 ; largest negative float -1.7014118345e+38 .pend