Re: segment offset to liner address
- Posted by LarryMiller May 12, 2010
- 1097 views
hayden_mckay said...
it's been a while and i just cant remember how to convert segment offset address to a linear address. Could somebody help me please.
To obtain the linear address you must multiply the segment value by 16 and add the 16 bit address. The CPU does this internally. This provides a 1MB addressing range. It was awkward to program but it did work and required only 16 bit address registers.
This has no relevance to any version of Windows after Windows 3.1. Modern operating systems use linear 32 bit addressing without segments.
Euphoria 4.0 no longer supports DOS. You must use 3.x or older.