Command 0x05: End of subroutine
Marks the end of a subroutine.
Syntax
0x05
Parameters
There are no parameters.
Description
Pops the caller’s position and remaining count from the call stack, and decrements the remaining count by 1.
- If the remaining count is not 0, moves again to the address written in the calling command (it is pushed back onto the call stack).
- If the remaining count has reached 0, returns to immediately after the calling command.
This command takes no time to process; the following event is read within the same tick.
Note
- Executing this with an empty call stack reads the neighboring channel’s call stack, and behavior becomes undefined.