delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/04/12:10:41

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Mon, 4 Feb 2002 19:08:47 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Richard <ts_swe_dpt AT yahoo DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: go32 wrapped interrupt handler returns register value ?
In-Reply-To: <3c5eb520$0$227$cc9e4d1f@news.dial.pipex.com>
Message-ID: <Pine.SUN.3.91.1020204190535.14403C-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 Mon, 4 Feb 2002, Richard wrote:

> Hi, Im trying to return a register value from a software interrupt using the
> go32 wrapper.
> 
> static _go32_dpmi_seginfo int24_wrap;
> static void int24_interrupt(void)
> {
>     // blah blah
>     // How on earth do I set _AL return code here ???
> }

Take a look at the module exceptn.S in the library sources 
(djlsr203.zip): the DJGPP startup code already installs a PM handler for 
Int 24h, and that handler instructs DOS to fail the call.

Note that some DPMI servers (notably, CWDPMI) catch Int 24h themselves 
and fail the call even before your application sees Int 24h.  See section 
22.13 of the DJGPP FAQ list for more fun.

- Raw text -


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