6.12.2 Jump to label and label
Input/output
Data type
n:constant ( 0~255 )
word
JMP instruction performs the branch operation to the
program in the specified tag (n) . When the jump is
accepted, the top value of the stack is 1.
LBL instruction signs the location of n.
You can use the "jump" instruction in the main
program, subroutine, or interrupt routine.
You can't jump from the main program to a subroutine
or an interrupt routine.You can use the "jump"
instruction in the SCR segment, but the corresponding
"label" instruction must be located within the same SCR segment.
Example:
When the M0.0 bit is 1, the value of VW100 is no longer increased.
167
Made with FlippingBook - Online magazine maker