delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/10/14:52:32

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Mon, 10 Dec 2001 21:37:28 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Timo Inki" <triq AT mbnet DOT fi>
Message-Id: <7443-Mon10Dec2001213728+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <VR6R7.326$E01.36878@read2.inet.fi> (triq@mbnet.fi)
Subject: Re: Handler call with inline asm
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1011210105850 DOT 20650B-100000 AT is> <VR6R7.326$E01 DOT 36878 AT read2 DOT inet DOT fi>
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

> From: "Timo Inki" <triq AT mbnet DOT fi>
> Newsgroups: comp.os.msdos.djgpp
> Date: Mon, 10 Dec 2001 18:07:49 GMT
> 
> Compiler message for it:
>    Assembler messages:
>    Error:Error: suffix or operands invalid for 'lcall'
> 
> // 64bit
>  long long Oldhandler;
> ...
> Oldhandler=((unsigned long long)original.pm_offset) +
>                     (((unsigned long long)original.pm_selector)<<32);

Run GCC with the -S switch and look at the assembly it produces.
That should probably tell why the assembler barfs.  If you cannot
figure this out, post the assembly produced from the asm here, and
someone will help.

(Personally, I suspect the long long usage, which is quite bogus
here.  Simply declaring Oldhandler like this:

static __dpmi_paddr Oldhandler;

should have been enough.  Perhaps you should try that.)

- Raw text -


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