How would you obtain a far address from segment and offset address of a memory location?

Answer

Pointers to far objects are stored using four bytes (32 bits). The bytes are stored little endian or low to high order. The first word contains the 14-bit memory offset (bits 14 and 15 are always 0). The second word contains the page number (or segment number for function pointers). The memory address is calculated as follows:

Variable Address = (Page * 0x4000L) + Offset

Function Address = (Segment * 0x10000L) + Offset

Improve Answer Discuss the question "How would you obtain a far address from segment and offset address of a memory location?" Watch Question

First answer by Sw sy. Last edit by Sw sy. Contributor trust: 18 [recommend contributor]. Question popularity: 21 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > How would you obtain a far address from segment and offset address of a memory location?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Segment and offset?  What is memory segment?  What is offset address?  What is memory address?  Segment and offset addresses?  Segment and offset registers?  What is an offset and segment?  Segment and offset address in c?  Address description in vdu memory?  Segment address and offset address?  Obtain segment and offset addresses?  What is the location address of 8tv?  What is offset adress and segment adress?  Segment and offset addresses from a far address?  How would you obtain segment and offset addresses?  How you identify the segment and offset in pointer?  How would you obtain a segment and an offset address?  How do you obtain segment and offset addresses from a far address?  How would you obtain segment and offset addresses from a far address?  What would be the offset required to map to physical address location FF2C16 if the contents segment register are 002A16?