Mail Archives: djgpp/1996/07/31/01:50:59
On 29 Jul 1996, Joonas W N Reynders wrote:
> What type is the pointer malloc returns? Is it a selector:offset
> pair, just a 32bit offset or what?
Just a 32-bit offset. DJGPP works in a flat address space, whereby the
segment registers (almost) never change values, so you can effectively
forget about them, unless you need to access absolute addresses of
memory-mapped hardware.
> The reason I need to know this is
> that I've got a few routines made with MASM which copy information from
> a mallocated buffer to SVGA buffer.
This is done in an entirely different way in DJGPP. Please read section
18.4 of the DJGPP FAQ list (available as v2/faq201b.zip from the same
place you get DJGPP) to see how it should be done.
- Raw text -