Rpbasic-52 programming guide – Remote Processing BASIC 52 User Manual
Page 114
RPBASIC-52 PROGRAMMING GUIDE
2-95
RETI
Syntax:
RETI
Function:
Return from ONITR or ON TICK interrupt. RETI must be the last instruction of the interrupt
subroutine.
Mode:
Run
Use:
RETI
Cards:
All
D E S C R IP T I ON
The R ETI in structio n caus es you to exit fr om O NTI CK , ONT IME (RPC -52 ca rd only ) and O NIT R inte rrupts.
RETI functions like RETURN , but it clears software interrupt flags so that RPBAS IC-52 can acknowledge
subsequent inte rrupts. If you don't execute the RET I instruction in the interrupt proc edure, all future
interrupts, hardware and software, are ignored.
RELATED
O N I T R , O N T I C K
EXAMPLE
Refer to ONT ICK and O NITR exa mples.