ionutdinulescu
March 22nd, 2005, 05:00 AM
I´m trying to make a timer isr
void interrupt (*oldhandler)(...);
void interrupt far timerISR(...)
{
cout << "Timer ISR";
}
void()
{
oldhandler = getvect(8);
setvect(8, timerISR);
while (true);
}
The code above doesn´t seem to work, the new timer isr is never executed.
Im using BCC and run the code above in a command window under XP.
I also tried to run it after booting to DOS, but hopeless.
Can anyone help me
void interrupt (*oldhandler)(...);
void interrupt far timerISR(...)
{
cout << "Timer ISR";
}
void()
{
oldhandler = getvect(8);
setvect(8, timerISR);
while (true);
}
The code above doesn´t seem to work, the new timer isr is never executed.
Im using BCC and run the code above in a command window under XP.
I also tried to run it after booting to DOS, but hopeless.
Can anyone help me