Mail Archives: djgpp/1999/02/09/09:03:16
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 -