Here come the latest bug fixes. Olofsen sent a newer program, wich tests the functions using very big and very small numbers. There were problems, with the renewed cosine function and the new INT routine was also buggy (in case of negative integer numbers).
Surprisingly i found a little bug in the SQR routine which is there since debut of SG81 ROM:
Code: Select all
;
; This guess is based on a Usenet discussion.
; Halve the exponent to achieve a good guess.(accurate with .25 16 64 etc.)
;
;;- LD HL,$4071 ; Address first byte of mem-3 ($4071 points mem-4!!!)
ld hl,$406C ; Address first byte of mem-3
@Siggi: the function-labels have been renamed - they now start with an "fn_" prefix.
Regards,
Zsolt