tsupplis / cc65-floatlib

a naive approach for using kernal floating point numbers on C64, while using IEEE float values at application level

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cc65-floatlib

a naive approach for using kernal floating point numbers on C64, while using IEEE float values at application level

right now CC65 does not support floats by itself, this library is a wrapper to the C64 kernal floating point routines and can be used to call these from C. It may serve as a starting point for a proper library once CC65 has been updated to support floating point.

TODO:

  • actually use IEEE floats, the current code uses the CBM binary format (truncated to 32bit)
  • conversion from/to (un)signed long is missing
  • fix atan2
  • fix the polynom calculation functions
  • implement more missing functions
  • improve the tests
  • disable the BASIC errors somehow(?)

About

a naive approach for using kernal floating point numbers on C64, while using IEEE float values at application level

License:zlib License


Languages

Language:C 46.3%Language:Assembly 41.8%Language:Pascal 10.0%Language:Makefile 1.8%