32-bit x86 assembly programming: Difference between revisions

Content deleted Content added
Dysprosia (talk | contribs)
m fmt
Dysprosia (talk | contribs)
m remove C example - it's incorrect
Line 60:
It is important to differ addresses from each other in protected mode. There are ''physical addresses'', ''linear addresses'' and ''logic addresses''.
 
A logic address is a segment-register and a offset-register paired together. However, only the offset address matters because nearly all operating systems use ''flat addressing'' (see below). With other words: A logic address is a pointer inside a program. (Example: In C, <tt>*pointer</tt> is a logic address.)
 
A linear address is a logic address that has gone through the descriptor-mechanism. (see ''Descriptors'' below.)