sir, in below code how do we get to know that interrupt is enabled or not?..because in step into the control is not going to ISR .
#include<stdio.h> #include <ADUC842.H>
sbit intr=P0^2; void ex0_isr (void) interrupt 0 { intr=~intr; EX0=0; }
void main()
{
IT0 = 1; // Configure interrupt 0 for falling edge on /INT0 (P3.2) EX0 = 1; // Enable EX0 Interrupt EA = 1; // Enable Global Interrupt Flag
}
"The following shows currently approved best practice:"
That's not even the slightest bit funny. You shouldn't be giving an obvious beginner the impression that the use of labels and goto is acceptable for a simple loop like that.
I wholehardely agree
Erik