delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/16/00:47:19

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 <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Andrew Fairburn <foggy71 AT yahoo DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: your mail
In-Reply-To: <20020115175850.5900.qmail@web10005.mail.yahoo.com>
Message-ID: <Pine.SUN.3.91.1020116074320.2698B-100000@is>
MIME-Version: 1.0
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

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&nbsp;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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019