ELSEIF
Your brief EB
240 stories from 185 feeds 1183 clusters Refreshed 42 minutes ago next pull 01:42

INFRA Signal 554 3 feeds carried it

Reverse-engineered 8087 FSCALE microcode reveals 140+ micro-instructions handling special cases

The Opcode Collective reverse-engineered the FSCALE instruction microcode in Intel's 8087 floating-point coprocessor and found it uses over 140 micro-instructions with three levels of subroutine calls to handle edge cases.

WHY IT MATTERS

The 8087 established the floating-point standard that most computers still use today, so understanding its microcode reveals how Intel prioritized mathematical correctness over hardware simplicity. The complexity hidden in a seemingly trivial instruction like FSCALE illustrates the engineering effort required to make floating-point arithmetic reliable across corner cases.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

The FSCALE instruction uses over 140 micro-instructions and three levels of subroutine calls, far more complex than its description as a quick power-of-two scaling operation suggests.

02

The 8087's microcode ROM holds 1648 micro-instructions total, controlling a chip with a 16-bit exponent datapath and a 64-bit significand datapath.

03

The 8087 used tag bits to classify values as valid, special (infinity, NaN, denormalized), zero, or empty, allowing the microcode to branch appropriately for each case.

THE CLUSTER

Same story, 3 feeds.

ORDERED BY FIRST SEEN
Ken Shirriff's blog Microcode in Intel's 8087 floating-point chip: the scale instruction Open ↗
Ken Shirriff's blog via Hacker News Microcode in Intel's 8087 floating-point chip: the scale instruction Open ↗
Ken Shirriff's blog via Lobsters Microcode in Intel's 8087 floating-point chip: the scale instruction Open ↗