← Sun, Nov 29 digest

A Completely Useless Instruction?

read article ↗ hn thread ↗

An investigation into the obscure FRSTPM instruction on the Intel 80287XL coprocessor reveals that Intel's official documentation listed the wrong opcode.

read it A rare piece of retro-computing archaeology that tests real 80287XL hardware to correct decades-old Intel documentation errors.

summary

The author investigates the obscure FRSTPM instruction introduced on the Intel 80287XL math coprocessor to reverse protected-mode FPU state settings without a full reset. Through physical testing on a restored 286 motherboard, the author discovers that Intel's official datasheets got the instruction's opcode wrong, while third-party sources were correct. Despite working when given the correct opcode, the instruction remains largely pointless since standard systems used a full hardware reset to exit protected mode.

key points

  1. Intel's official 80287XL datasheets incorrectly documented the FRSTPM opcode as DB F4, whereas actual hardware testing proves the correct opcode is DB E5.
  2. Physical testing on a restored 16 MHz 286 motherboard confirmed that executing FRSTPM with DB E5 successfully reverts the FPU from protected-mode to real-mode environment save formats.
  3. The instruction is practically useless because standard 286 systems relied on a CPU reset to drop out of protected mode, rendering software mode-reversal unnecessary.

who should read it

Retro-computing enthusiasts, low-level systems programmers, and x86 hardware history buffs.

discussion positive

consensus

Commenters briefly muse about how esoteric tech debt like FRSTPM originates from parallel development teams and discarded roadmaps.

best comment by bombcar ↗

It's more likely (and I suspect that it's the case here) that we have a complex system being developed by multiple teams in parallel, and Team A has a roadmap that needs a feature from Team B; and by the time Team A realizes they are going a different way (e.g,. forcing a hard reset of both chips) Team B was already done with the feature needed; and it was never removed.

You often see this in APIs - features that still exist even though they're now vestigial.

It draws an insightful parallel between vestigial hardware instructions and modern API cruft left behind by teams changing direction.

Generated by an LLM from the article and thread. Check the sources before relying on it.