Mail Archives: djgpp/1994/10/05/12:34:48
> Is there a way to convert a normal memory address to segment:offset
> notation?
What do you mean by normal memory address? If you mean "char *", then
yes, you can. The segment is _go32_my_cs, and the offset is (int)ptr.
I don't think this will do you much good though - I think you're
talking about something you can use in real mode. Sorry, real mode
programs won't be able to see the 32-bit memory anyway.
You can convert a linear address in the dos memory by using divide and
remainder functions. This is useful for the linear addresses in
_go32_info_block.
- Raw text -