delay()是会被0x1c软定时中断掉的,运行下
#include
#include
#include
void interrupt new1cv(...){
printf("this is new1cv \n ");
}
int main(){
clrscr();
void interrupt (*old1cv)(...);
old1cv=getvect(0x1c);
setvect(0x1c,new1cv);
delay(1000); //delay 1 second
setvect(0x1c,old1cv);
printf("setvect old1cv \n ");
getchar();
return 0;
}