5.1.5 · D5Instruction Set Architecture (ISA)

Question bank — x86 architecture overview

1,929 words9 min readBack to topic

This page assumes the vocabulary already built in the parent: CISC (pack much work into one instruction), register (fastest on-CPU storage), variable-length encoding (1–15 bytes), segmentation (two 16-bit numbers combined into a 20-bit address), and µops (the small RISC-like steps a CISC instruction is broken into). If any of those feels shaky, re-read the parent before you fight these traps.

Three terms the parent uses inside instruction encoding are worth pinning down before you start, because several traps below rely on them:

Notation used on this page: all hex constants are written like inside math, e.g. , so they parse at a glance and never get mistaken for prose.

Every figure below shares the site's pastel-soft look so the pictures read as one family. Refer to them as you answer — the geometry is the explanation.


The pictures behind the traps

Before the questions, hold these five diagrams in your head. Almost every trap is a misreading of one of them.

The register window hierarchy — one physical cell, four addressable widths. Look at how AL sits inside AX inside EAX inside RAX, and notice the red note: a write to EAX clears the grey upper half.

Figure — x86 architecture overview

Segment:offset → physical address — watch the lavender segment slide left by 4 bits and the coral offset drop into the low bits, adding up to a 20-bit address.

Figure — x86 architecture overview

Aliasing — two different segment:offset pairs, one arrow landing on the same byte. This is designed, not a bug.

Figure — x86 architecture overview

One CISC instruction → many µops — the mint boxes are the small RISC-like steps the coral CISC instruction is split into inside the CPU.

Figure — x86 architecture overview

The 15-byte instruction layout — every optional field drawn to scale, so you can see how prefixes, opcode, ModR/M, SIB, displacement, and immediate must sum to at most 15.

Figure — x86 architecture overview

True or false — justify


Spot the error


Why questions


Edge cases


Back to x86 architecture overview.