The correct way to clear a flag is to write just that flag... EIFR = 1; // clear INT0 flag
EIFR = 1; // clear INT0 flag