Jump Between Rungs
Jump Instruction: JMP, JMPP, JME
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. | Error | Zero | Carry | |||
JMP (P) JME | n | - | - | - | - | - | - | - | - | - | - | - | - | o | 1 | - | - | - |
Functions
When the input for the JMP n instruction is turned ON, the execution of a program jumps into the JME n instruction, disabling and skipping all the instructions between JMP n and JME n.
For example, when the input (M00) for the JMP 1 is turned ON, the program skips and will not operate the INC D10 instruction, resulting in ‘0’ value for the device D10 because it is between JMP 1 and JME 1.
While D10 stays ‘0’ value due to the JMP command, notice how the value of D20 is +25792 because the INC D20 instruction is not included between JMP 1 and JME 1.
Multiple JMP instructions can pair with one JME instruction.
Though the number from 0 to 127 can be used for the JMP Number n, this number should not be interchangeable with the number used for sub routine (SBRT, RET) function.
Please note that the JMP instruction between SBRT and RET blocks is considered as an error.