Here's the remainder of the code - so you can see for yourself that I haven't included the interr.cpp twice:
Code:
// usermain.cpp
// is called upon from int main(argc,argv)
#include<iostream.h>
#include"interr.h"
#include"lounlo.h"
int userMain(int argc, char* argv[]) {
cout << "hello world!" << endl;
cout << "lets test interrupt routine swaping! :O " << endl;
IntRoutine old;
old = swapTimer();
return 0; // no errors
}
Code:
// main.cpp
int userMain(int argc, char* argv[]);
int main(int argcount, char* argvec[]) {
return userMain(argcount,argvec);
}
That's all I've written, oh and
Code:
// lounlo.h
#ifndef _lockunlock_
#define _lockunlock_
#define lock asm cli
#define unlock asm sti
#endif