Post
I can now explain the microcode for an instruction called FSCALE that scales a number by a power of 2. It sounds simple, but the 8087 has an appalling number of special cases: positive and negative 0, two infinities, four rounding modes, three number sizes, six exceptions... so the code is complex.
0 reposts52 likes
The 8087's microcode is too complicated and low-level to explain here. For details, see my latest article: www.righto.com/2026/09/8087...
righto.comMicrocode in Intel's 8087 floating-point chip: the scale instructionIn the 1970s, floating-point arithmetic was a mess. Computer manufacturers had a dozen incompatible arithmetic standards. Moreover, floating...
Credits: I've been working on this with the members of the "Opcode Collective", especially Smartest Blob and @gloriouscow.bsky.social , who converted the ROM images to microcode data and extensively analyzed the contents.