0
votes

How would I implement floating point operations if I only have memory locations that are 16 bits wide?

I am trying to implement IEEE-754 32-bit single precision floating point.

Thank you

2
You need to specify the required range and precision before anyone can answer this - Paul R
From your comments to the answers it appears as though you want larger values than fit into a single 16-bit word. In that case, what do you need? Normally, one does not implement floating points operations yourself but use built-in types like float or double. If you plan to write something yourself, maybe you could do something like a fixed-point solution. - Lindydancer

2 Answers

1
votes

I ended up figuring out that there is no easy way to to this. I had to create my own software library for all of the functions in assembly.
If anybody has questions regarding how to do this, I implemented add,subtract,multiply,square root, divide, cosine, and sine.