logoalt Hacker News

8087 Emulation on 8086 Systems

57 pointsby ingvetoday at 11:27 AM23 commentsview on HN

Comments

wglbtoday at 2:46 PM

While I was at Mark Williams back in the day, the engineers wrote 8087 emulation floating point for the Mark Williams 8086 compiler. This involved some quality time with the Volume 2 of Knuth in the log division section.

xattttoday at 1:41 PM

The article states that the 8087 was an expensive add-on.

Was this price point a deliberate market differentiator, or was there some special sauce within FPU that was otherwise difficult to attain?

show 8 replies
dehrmanntoday at 5:01 PM

Fun trivia: Intel's PCI vendor ID is 8086.

show 1 reply
bombcartoday at 2:02 PM

The interesting thing about the 8087 is that the co-processor interface was kind of generic. In theory you could have had things beyond just an FPU, but I don't know if much was ever done using it.

show 2 replies
anthktoday at 7:27 PM

https://github.com/howerj/muxleq (subleq and muxleq). Look at the EForth code on how a small FP it's implemented. Also, learn about Forth, it's dumb easy to understand.