WARNING Segment : Offset
- Posted by "Lucius L. Hilley III" <luciuslhilleyiii at JUNO.COM> Feb 14, 1997
- 1096 views
000F:000F = 000F0 + 000F = 000FF = FF 000F:000F != 000F000F 000F:000F = FF F00D:F00D = F00D0 + F00D = FF0DD what the above means is: All of these segment offset pairs 0100: 0100 = 0110:0000 = 0000:1100 = 0010:1000 are the same address. IF address = full address returned. offset and segment are retrieved with the following math. offset = remainder(address, 65536) segment = (address - offset) * 65536