I was trying the following TSR which is supposed to capture interrupt no.8 and change screen color every 10 seconds. But either the linker shows a "not enough memory" error, or, nothing appears to happen. Also the program does not seem to be entering the function our(). Please help...
#include "dos.h"
#include"stdio.h"
void interrupt our();
void interrupt (*prev)();
char far *scr=(char far*)0xB8000000L;
int ticks;
unsigned char color;
main()
{ prev=getvect(8);
setvect(8,our);
keep(0,10000);
}
void interrupt our()
{
int i; char c;
ticks++;
for(c='A';c<='z';c++)
printf("%c",c);
if(ticks==182)
{
for(i=1;i<=3999;i+=2)
*(scr+i)=color;
color++;
ticks=0;
}
(*prev)();
}