I'm trying to add WE32106 Math Accelerator support to my 3B2 emulator. So far so good, but I feel dirty: My code assumes floating point types are stored in IEEE-754 format in memory. The C standard guarantees no such thing.
I mean... so far it works? But there's no guarantee it will work on every platform, or even with every compiler.
I guess the other option is to use a library like SoftFloat, but that adds a lot of code to the emulator.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!