Story

On air. The free wire runs 15 minutes behind live. See pricing

World, crypto, finance and tech news, scored for impact.

TechHacker NewsFiled 2 days ago

This Code Smells of Desperation

Open the sourceReported by Hacker News, os2museum.com, 12 November 2026

Not investment advice. Muhabbit scores how much a story may matter, not which way to trade.

Microsoft’s Windows 3.1 math coprocessor emulator WIN87EM.DLL, shipped essentially unchanged from Windows 3.0 through Windows 3.11, contains an interrupt handler that looks like the product of repeated desperate patching rather than deliberate design, according to a fresh code analysis. The routine, which hooks NMI vector 2 on PCs and XTs or IRQ 13 on PC/AT compatibles, disables interrupts, writes zero to I/O port F0h three separate times to clear the FPU error latch, issues an end-of-interrupt only to the master controller, and pads the sequence with dozens of redundant PUSH/POP operations on the AX register. It also executes the FNSTSW and FNCLEX instructions multiple times before reaching the actual error-handling code, which stores the FPU environment, restores a saved status word, and checks the error pointer for instruction prefixes that could cause a crash. The oddities reflect how treacherous x87 math error handling was across FPU and CPU generations, a period in which Intel itself shipped numerous bugs in this area. The takeaway for developers is that legacy compatibility code can survive for years on superstition as much as logic; what to watch is whether similar rituals persist in modern emulation layers.

Muhabbit's AI wrote this summary in its own words from Hacker News's report. It can get details wrong, so check the source.

Named in this story

A linked name opens that asset's sentiment page.