🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.c++.leda
1 messages
1 total messages Started by Simon van Tongeren Mon, 09 Oct 1995 09:02
Need examples of how to setup a TimerIrq Handler....
#123
Author: Simon van Tongeren
Date: Mon, 09 Oct 1995 09:02
41 lines
1328 bytes
Hello,

Is there anybody outthere who could supply me with some examples of
how I can setup a TimerIRQ Handler???
I use borlandC/C++ (3.1) and I have trouble using the SETVECT &
GETVECT functions.
If I do the same as shown in the example inside the helpfile I get the
following error message(s):

*error: can't convert (void)(interrupt near)*. to (void)(interrupt)*..
--> refered to setvect ... statements!
*error: call to non-function... -> refered to OldTimerIrq();

This is what I tried to do:

#define __CPPARGS
#define TIMERIRQnr  0x8

void interrupt (*OldTimerIrq)(__CPPARGS);

void interrupt NewTimerIrq(__CPPARGS)
{
	.....
	....
	OldTimerIrq();
}

void main()
{
	OldTimerIrq = getvect (TIMERIRQnr);
	setvect (TIMERIRQnr, NewTimerIrq);
	.....
	....
	setvect (TIMERIRQnr, OldTimerIrq);
}

What am I doing wrong, or is there someone who is kind enough to send
me a working source....????

Thanx for the help,
Simon
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads