
RPBASIC-52 PROGRAMMING GUIDE
2-95
RETI
Syntax: RETI
Function: Return from ONITR or ONTICK interrupt. RETI must be the last instruction of the interrupt
subroutine.
Mode: Run
Use: RETI
Cards: All
DESCRI PTION
The R ETI in struction causes you to exit from O NTICK , ONT IME (RPC -52 ca rd only ) and ONITR inte rrupts.
RETI functions like RETURN, but it clears software interrupt flags so that RPBASIC-52 can acknowledge
subsequent interrupts. If you don't execute the RETI instruction in the interrupt proc edure, all future
interrupts, hardware and software, are ignored.
RELATED
ONITR, ONTICK
EXAMPLE
Refer to ONTICK and ONITR examples.
Commenti su questo manuale