Page 47 of 62
SBasic User's Manual SBasic Version 2.7 Page 47
Printed: December 5, 1999
You can enable or disable system-wide interrupts by using the
INTERRUPTS statment. This statement takes a single argument that is
ON to enable interrupts or OFF to disable them. This statement only
affects system-wide interrupts, and its exact implementation varies,
based on the target system.
For the 68hc11 and 68hc12 MCUs, INTERRUPTS ON is compiled into a CLI
instruction and INTERRUPTS OFF is compiled into a SEI instruction.
Example:
INTERRUPTS ON ' turn on system-wide interrupts