Results 1 to 4 of 4
How does one go about finding the segment and offset of a 16-bit address? (For x86 -- real mode)...
- 03-17-2007 #1
Offset and Segment of an Address
How does one go about finding the segment and offset of a 16-bit address? (For x86 -- real mode)
- 03-17-2007 #2
I believe your question is very highly contextually dependent...

There is not a single answer - because there is not a one-to-one association of physical and segment : offset addresses. The 'x86' architecture actually requires that physical addresses be addressable by multiple segment : offset addresses (by design, 'relative' rather than 'fixed' addressing).
However, I would like to suggest that - for a 16-bit address, the segment would be zero - because [based on 'x86' architecture], the offset alone is a 16-bit number...
Hope this helps (at least a little)...
- 03-17-2007 #3
Thanks...
Okay, so when I do something like this:
LDS, ds, [something-16bit]
What does LDS load in ds?
Edit: Fixed
- 03-18-2007 #4


Reply With Quote