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.

Gross.

Follow

I guess the other option is to use a library like SoftFloat, but that adds a lot of code to the emulator.

ALSO ALSO ALSO ALSO: 

ALSO ALSO ALSO ALSO: 

ALSO ALSO ALSO ALSO: 

Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko