How about this?


Main:
n = n + INTCON.2
INTCON.2 = 0

IF n.3 THEN
LATA = LATA ^ %000011
n=0