delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/10/13:18:05

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Timo Inki" <triq AT mbnet DOT fi>
Newsgroups: comp.os.msdos.djgpp
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1011210105850 DOT 20650B-100000 AT is>
Subject: RE: Handler call with inline asm
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <VR6R7.326$E01.36878@read2.inet.fi>
Date: Mon, 10 Dec 2001 18:07:49 GMT
NNTP-Posting-Host: 62.71.171.93
X-Trace: read2.inet.fi 1008007669 62.71.171.93 (Mon, 10 Dec 2001 20:07:49 EET)
NNTP-Posting-Date: Mon, 10 Dec 2001 20:07:49 EET
Organization: Sonera corp Internet services
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

It doesn't help. The idea is to call old timerhandler (BIOS) from my new
timerhandler and it won't work right with just call. Iret after old
timer-routine should return to my own code.

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);
The idea is explained in PCGame Programmers Encyclopedia (pcgpe)
and the djgpp code has been taken from lamertut 2.11 (laama211).
As I said, it worked fine with older version of djgpp and gcc.

Timo Inki


- Raw text -


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