From The Old New Thing · Raymond Chen · · 1m 40s
TL;DR: Why x86's undefined instruction is called ud2
Two rival byte sequences, one broken processor upgrade, and the reason Intel skipped straight to number two.
ud2 exists because programmers had already standardised on two unofficial crash opcodes, so Intel made a third one official and renamed the old ones ud0 and ud1. Two rival byte sequences, one broken processor upgrade, and the reason Intel skipped straight to number two. ud2 is an x86 instruction guaranteed to raise an invalid opcode exception.
- The crash on purpose
- Two rival byte sequences
- The next chip broke it
- Hyrum's Law in silicon
Read the story version — the same reporting as a swipeable deck of 6 cards.






