encyclopegia.org

REX prefix

The REX prefix (from "register extensions") and REX coding scheme was introduced as part of AMD's x86-64 instruction set architecture that extended Intel's IA-32 instruction set architecture for microprocessors from Intel, AMD and others.[src] It provides additional space for encoding 64-bit addressing modes and additional registers present in the x86-64 architecture.[src] The one-byte REX prefix can be added to new and existing instructions.[src] It provides 4 bits of payload in total and allows addressing 16 registers.[src] A two-byte REX2 prefix was proposed by Intel's Advanced Performance Extensions in 2023 that would offer 8 bits of payload and allow addressing 32 registers.[src]

The REX prefix (from "register extensions") and REX coding scheme was introduced as part of AMD's x86-64 instruction set architecture that extended Intel's IA-32 instruction set architecture for microprocessors from Intel, AMD and others.[src] It provides additional space for encoding 64-bit addressing modes and additional registers present in the x86-64 architecture.[src] The one-byte REX prefix can be added to new and existing instructions.[src] It provides 4 bits of payload in total and allows addressing 16 registers.[src] A two-byte REX2 prefix was proposed by Intel's Advanced Performance Extensions in 2023 that would offer 8 bits of payload and allow addressing 32 registers.[src] The base-plus-index and scale-plus-index forms of 32-bit addressing (encoded with r/m = 100 and mod ≠ 11) require another addressing byte, the SIB byte.[src] It has the following fields: scale factor, encoded with bits [7:6] index register, bits [5:3] base register, bits [2:0].[src] The REX prefix 's bit-field W changes the operand size to 64 bits, R expands reg to 4 bits, B expands r/m (or opreg in the few opcodes that encode the register in the 3 lowest opcode bits, such as "POP reg"), and X and B expand index and base in the SIB byte.[src] The REX2 prefix is a 2-byte variant of the REX prefix, that is proposed with Intel's Advanced Performance Extensions and allows addressing 32 registers.[src] R 3 , X 3 , and B 3 bits are the same as R, X and B bits in the REX prefix.[src] R 4 , X 4 , and B 4 bits are additional bits used to encode the 32 EGPR registers.[src] W bit is the same as in the REX prefix.[src] M 0 bit selects between legacy map 0 (1-byte opcodes, no escape) and legacy map 1 (2-byte opcodes, escape 0x0F).[src]

18 sentences · 18 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"REX prefix." encyclopegia.org, 2025, https://encyclopegia.org/wiki/rex-prefix. Accessed 26 November 2026.

Chicago

"REX prefix." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/rex-prefix.

APA

encyclopegia.org. (2025). REX prefix. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/rex-prefix

Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Rut Rex

stub · references available

dmedia T-REX

stub · references available

Rex Lee

stub · references available

Generator Rex

stub · references available

Saint-Georges-de-Rex

stub · references available

prefix grammar

stub · references available

Rex Grossman

stub · references available

Rex Williams

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1317617501 · 0.5 · snapshot enwiki-001317617501

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.