Topic: help: far


Author: feraraw@iia.org (-=crASh!)
Date: 15 Feb 1995 23:39:42 GMT
Raw View
Can someone please explain in simple english what the keyword far does do
a pointer?





Author: James Miller <jmiller@gate.net>
Date: Wed, 15 Feb 1995 19:02:18 -0500
Raw View

On 15 Feb 1995, -=crASh! wrote:

> Can someone please explain in simple english what the keyword far does do
> a pointer?
>
>
>
The 80x86 processors break a memory address into 2 parts, the segment and
the offset. Normally only the offset is manipulated. For the 16 bit
address mode this limits memory to 64k byte sections. A near pointer
contains only the offset portion of the address, the segment being taken
to be the current value of one of the segment registers. A far pointer
contains both the segment and the offset and can address all of memory. A
near pointer can only address a 64k byte section. The memory model
determines the default type of pointer (near or far) but that can be
overriden.