Function Definition
#pragma TRAP_PROC
See HC(S)08 Backend.
None
This pragma marks a function as an interrupt function. Because interrupt functions may need some special entry and exit code, you must use this pragma to mark interrupt functions.
Do not use this pragma for declarations (e.g., in header files), as the pragma is valid for the next definition.
See HC(S)08 Backend for details.
The following listing marks the MyInterrupt() function as an interrupt function.
#pragma TRAP_PROC void MyInterrupt(void) { ... }