I have to write my own code for setvect and getvect functions instead of using turbo c's setvect and getvect. The prototypes are:
void interrupt (*getVect(int intNo)) ();
void interrupt setVect(int intNo, void interrupt(*isr) ());
I tried to use far pointers but i had errors(cannot convert from void far * to void interrupt far *). I tried to cast void far to void interrupt far, this time compiler said: "Not an allowable type". I tried writing assembly code in turbo c, it didn't work either. Can somebody help pls. I think the trouble is in generating a void interrupt far pointer.
void interrupt (*getVect(int intNo)) ();
void interrupt setVect(int intNo, void interrupt(*isr) ());
I tried to use far pointers but i had errors(cannot convert from void far * to void interrupt far *). I tried to cast void far to void interrupt far, this time compiler said: "Not an allowable type". I tried writing assembly code in turbo c, it didn't work either. Can somebody help pls. I think the trouble is in generating a void interrupt far pointer.