Command 0x05: End of subroutine

Marks the end of a subroutine.

Syntax

0x05

Parameters

There are no parameters.

Remarks

Pops the caller’s position and the 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 become 0, returns to right after the calling command.

This command takes no time to process, and the following event is read within the same tick.

Note

  • If executed while the call stack is empty, it reads the call stack of the neighboring channel and the behavior becomes undefined.

See also

Structure of sequence data
Command 0x04
Command 0x21