#ifdef __GNUC__ #include #include /* these work as expected */ /* #define INT0_vect _VECTOR(2) #define INT1_vect _VECTOR(4) */ #else #include #endif int main(void) { PORTB = 0xFF; DDRB = 0xFF; GICR |= 0xC0; MCUCR = 0x0A; GIFR = 0xC0; sei(); PORTB = ~(0x80); while (1); } #ifdef __GNUC__ ISR(INT0_vect) #else interrupt [EXT_INT0] void ext_int0_isr(void) #endif { PORTB = ~(0x01); } #ifdef __GNUC__ ISR(INT1_vect) #else interrupt [EXT_INT1] void ext_int1_isr(void) #endif { PORTB = ~(0x02); }