« Return to Thread: Found Bug in AN974 MC68HC11 Floating Point Package

Found Bug in AN974 MC68HC11 Floating Point Package

by ga5941 :: Rate this Message:

Reply to Author | View in Thread

FLTSIN subroutine did not work correctly for an input of 215 degrees. The bug is fixed by replacing:

LDX three60

by:

LDX #three60

in the ANGRED routine several pages later.

 

The author's notes recommend not using the compare routine FLTCMP but instead use the FPACCCMP routine, but did not follow up and still used FLTCMP throughout.  I replaced FLTCMP by FPACCCMP  throughout the floating point package.  

 I use the floating point routines extensively in programming a MC9S12DP512 processor.

 « Return to Thread: Found Bug in AN974 MC68HC11 Floating Point Package