X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Wed, 16 Jan 2002 07:46:10 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Andrew Fairburn cc: djgpp AT delorie DOT com Subject: Re: your mail In-Reply-To: <20020115175850.5900.qmail@web10005.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.