Why x86's undefined instruction is called ud2

Cover art for Why x86's undefined instruction is called ud2

TL;DR: 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.

Raymond ChenSep 10, 2026

From · · · 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.

Read the original on The Old New Thing

How we make summaries

React

Sign in to react and comment.

Comments (0)

Life is short. Keep it sweet. Respect others' opinions and be kind!

    Recommended next

    More decks on x86 and related topics.