Applied Instructions
CALL
X0
FEND
SRET
END
P10
P10
Call subroutine
[CALL] and Subroutine return [SRET]
16 bits instruction:CALL、SRET 32 bits instruction:-
Suitable Models:
XC1、XC3、XC5
Function
z If X000“ON”, carry on Jump instruction and jump to step of
flag P10. Here, after executing the subroutine, return to the
original step via executing SRET instruction. After the
following FEND instruction, program with the flag.
z In the subroutine, 9 levels Call instruction is allowed, so to the
all, 10 levels nesting is available.
Main program Subroutine
Pointer: P
Soft Unit’s Bound: P0~P9999
Suitable Device
73