Hi Everyone,
Can this be done, using 2 buttons which work to control existing sub programs,
can I push them both so as to invoke an interrupt which would then clear the
counter variables and cancel whichever subprogram is running, I may have as many as 4 or 5 different subprograms, i would like to cancel any of them by pressing these 2 buttons, I can do this with an AND gate and a seperate input pin on the PIC, But is there a way to code it without using the gate or the extra input pin?

something like:
IF PortA.0 AND PortA.1 >= 2 THEN
ON INTERRUPT GOTO Cancel
RESUME

Cancel:
ButtonVar1 = 0
ButtonVar2 = 0
RETURN

Any input is Appreciated.
Thanks
JS