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" Sender: halo1 AT zahav DOT net DOT il To: "Timo Inki" 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: (triq@mbnet.fi) Subject: Re: Handler call with inline asm References: 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 > From: "Timo Inki" > 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.)