sam-astro / Astro8-Computer

Custom 16-bit homebrew CPU, emulator, renderer, PCB, and language

Repository from Github https://github.comsam-astro/Astro8-ComputerRepository from Github https://github.comsam-astro/Astro8-Computer

Floating point numbers in Armstrong

swift502 opened this issue · 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.

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

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