??? 08/13/05 15:21 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#99343 - interrupt exit Responding to: ???'s previous message |
After you did the "housekeeping" with ports, LCD, whatever; do: clr ea ;disable all interrupt call RetiSub ;release internal interrupt-in-progress flag jmp 0 ;restart ;restart contains explicit reset of stack pointer, ;so no other stack housekeeping is needed RetiSub: retiYou might also want to wait until the button is released. Jan Waclawek |