Mail Archives: djgpp/2002/01/16/00:47:19
On Tue, 15 Jan 2002, Andrew Fairburn wrote:
> ive been trying to get a real mode callback to work as
> part of my final year project, but have been unable to
> sort it out. The problem ive been having is after
> the callback enters teh protetected mode function i
> cant get it to return to the real mode program. I know
> its supposed to extract th return address from the
> stack position pointed to by ds:si, but i am unable to
> get the assembler code syntax to work....
> I was hoping you would be able to provide a piece of
> assembler which extracts the address and puts it in th
> correct part of the real mode structure.
Do I understand correctly that you don't use the _go32_* wrappers
provided in the DJGPP library for such callbacks? If so, the example of
assembly you are looking for is in the library sources: download
djlsr203.zip and look inside the file src/libc/go32/gormcb.c.
- Raw text -