delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/09/09:03:16

From: Airhead Zoom - Programmer <airhead_zoom AT hetnet DOT nl>
X-Priority: Normal
To: djgpp AT delorie DOT com
Subject: Interrupt vector probs
X-Mailer: Pronto Pro [ver 1.00 (0225)Trio]
Mime-Version: 1.0
Message-ID: <04e2a0304140929MCIS2MAIL1@hetnet.nl>
Date: 9 Feb 1999 15:04:04 +0100
Reply-To: djgpp AT delorie DOT com

Hello everyone,

I'm new on this mailing list, so tell me if I do something wrong with the 
posting method...

I'm writing a little function to program the so-called Programmable Interrupt 
Timer (PIT) and that requires setting an interruptvector.
I've just downloaded DJGPP and converted the program to it (originally was 
TurboC source).

I've fixed a few things here and there (Int as a returnvalue for main?? sick!)
and I just couldn't get the interrupts working. It seems that the complete 
'interrupt' keyword doesn't exist anymore...
Also, setvect and getvect are gone!
I've found the following function, located in DPMI.H:

int	__dpmi_get_protected_mode_interrupt_vector
(int _vector, __dpmi_paddr *_address);

(and of course, also __dpmi_SET .....whatever)

Now, I've also figured out how it should be implemented, but how can I get the 
32-bits Offset and the selector of a function?
In TurboC you could just pass a pointer to a function to the getvect/setvect 
routines and the interrupt vector number.

I've switched from realmode to protected mode by downloading the DJGPP, so if 
something is non-realmode, please mention what the function does.

(Another simple question, (I just AM a curious person) if all these functions 
and far-pointer/interrupt keywords are gone, how can the compiler contain ANSI 
support? Or is there a separate ANSI for protected mode?)

Greetz,

Airhead Zoom of Dancing Pumpkin Productions

- Raw text -


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