1. Subroutine jumps RET
1. Subroutine jumps RET
1.1. Instruction Description
When the input condition is turned on, the instruction after this instruction in the current subroutine is abandoned and jumps directly to the position where the subroutine is called, continuing to execute the instructions after the parent program.
1.2. The valid operands of the instruction
| Input/Output | Data Type | operand | Description |
|---|
1.3. Example
command table:
NETWORK 000
LD X001
RET // If the top value of the stack is 1, jump out from here and continue executing the previous level program.
NETWORK 001
LD X002
SUB D0 D1 D2 // If there is no jump above, the program here will continue to execute.
图1 RET