GO-V.ORG
As seen in

X86 memory models

In computing, the x86 memory models are a set of six different memory models of the x86 CPU operating in real mode which control how the segment registers are used and the default size of pointers.[src]

In computing, the x86 memory models are a set of six different memory models of the x86 CPU operating in real mode which control how the segment registers are used and the default size of pointers.[src] mov bx, word [reg] mov ax, word [bx] mov dx, word [bx+2] Far pointers are 32-bit pointers containing a segment and an offset.[src] To use them the segment register ES is used by using the instruction LES Reg, dword ptr [mem] .[src] They may reference up to 1024 KiB of memory.[src] Note that pointer arithmetic (addition and subtraction) does not modify the segment portion of the pointer, only its offset.[src] Operations which exceed the bounds of zero or 65535 (0xFFFF) will undergo modulo 64K operation just as any normal 16-bit operation.[src] For example, if the segment register is set to 0x5000 and the offset is being incremented, the moment this counter offset becomes (0x10000), the resulting absolute address will roll over to 0x5000:0000.[src] les bx,dword [reg] mov ax,word [es:bx] mov dx,word [es:bx+2] Huge pointers are essentially far pointers, but are (mostly) normalized every time they are modified so that they have the highest possible segment for that address.[src] This is very slow but allows the pointer to point to multiple segments (i.e.[src] to span more than 64 KB), and allows for accurate pointer comparisons, as if the platform were a flat memory model: It forbids the aliasing of memory as described above, so two huge pointers that reference the same memory location are always equal.[src] les bx,dword [reg] mov ax,word [es:bx] add bx,2 test bx,0xfff0 jz lbl sub bx,0x10 mov dx,es inc dx mov es,dx lbl: mov dx,word [es:bx] In reality, a compiler may optimize the above Huge pointer code using no branches.[src] This version decrements the segment unconditionally and to compensate, a segment length (0x10) is added to BX.[src] Unlike the previous Huge example, this version does not require the segment:offset to be normalized.[src] les bx,dword [reg] mov ax,word [es:bx] mov dx,es dec dx mov es,dx mov dx,word [es:bx+(2+0x10)] ===x86-64=== On the x86-64 platform, a total of seven memory models exist, as the majority of symbol references are only 32 bits wide, and if the addresses are known at link time (as opposed to position-independent code).[src] This does not affect the pointers used, which are always flat 64-bit pointers, but only how values that have to be accessed via symbols can be placed.[src] ==See also== Protected mode ==References==[src]

17 sentences · 17 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"X86 memory models." encyclopegia.org, 2026, https://encyclopegia.org/wiki/x86-memory-models. Accessed 04 December 2026.

Chicago

"X86 memory models." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/x86-memory-models.

APA

encyclopegia.org. (2026). X86 memory models. Retrieved December 4, 2026, from https://encyclopegia.org/wiki/x86-memory-models

Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Memory Wall

article · references available

declarative memory

stub · references available

explicit memory

stub · references available

echoic memory

stub · references available

x86 assembly language

stub · references available

In Memory of Nikki Arane

stub · references available

non-volatile random-access memory

stub · references available

memory address register

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

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
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

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