my codes:
unsigned int i=0; void Timer(void) interrupt 1 { i++; } void Main (void) { while (1) printf ("i=%d\n", i); }
I tried
while (1) { EA=0; printf("i=%d \n",i); EA=1; }