Astro8-Computer icon indicating copy to clipboard operation
Astro8-Computer copied to clipboard

Floating point numbers in Armstrong

Open swift502 opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. I'd love to make a raytracing demo, but without floats it seems beyond impractical, and more just impossible.

Describe the solution you'd like Signed fractional numbers with add, sub, mult and div operators. Even very limited precision will do the job, since screen resolution is so small.

Additional context I don't know much about low level programming so sorry if I'm asking for something impossible. But either way this is an awesome project! Really cool stuff. 🙂

swift502 avatar Jul 31 '22 18:07 swift502

The 6502 used a decimal flag/mode. Maybe that could be integrated into this in some way?

nbarger avatar Jul 31 '22 23:07 nbarger

A floating point library has been developed in Yabal, as well as a raytracer, see: https://github.com/sam-astro/A8-Programs-written-in-Yabal/blob/main/raytracer.yabal

sam-astro avatar Dec 01 '23 13:12 sam-astro