cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/24/11:28:15

Date: Mon, 24 Feb 1997 18:14:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: nikki <nikki AT gameboutique DOT co>
cc: djgpp AT delorie DOT com
Subject: Re: real mode calls pmode
In-Reply-To: <5es5th$hnj@flex.uunet.pipex.com>
Message-ID: <Pine.SUN.3.91.970224181126.4636D-100000@is>
MIME-Version: 1.0

On 24 Feb 1997, nikki wrote:

> >> void receiver()
> > 
> > This should be "void receiver (__dpmi_regs *r)".
> 
> ok, i changed this but it made no difference sadly :(

It's C, so it shouldn't have made any difference (since the caller pops 
the stack); I just wanted to point out that the regs *are* pushed onto 
the stack before your `receiver' is called.

> i thought callback_regs was global and therefore you wouldn't need to pass
> *r like this?

Yes, but you can define the callback on one source file and install it in 
another.

- Raw text -


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