Skip to content

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

Notifications You must be signed in to change notification settings

bkeil/cc65-floatlib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Assembly 49.2%
  • C 39.0%
  • C++ 9.8%
  • Makefile 2.0%