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.
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 sourceThe three things worth knowing
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.
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.
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