
Chapter 2. Functions
2-31
2.7.2
CALL , SBRT / RET
1) CALL n, CALLP n :
The CALL(P) instruction executes the subroutine program specified by the pointer ‘n’. Multiple
levels of nesting of the CALL(P) instruction are allowed.
2) SBRT / RET
SBRT instruction shows the start of subroutine program, and RET shows the end. Those two
instructions should be in pairs.
LOAD P000
SBRT 40
:
Error (SBRT before END)
END
RET
: Error
(Stand Alone)
LOAD P042
CALL 30
:
Error (No SBRT)
END
LOAD P010
CALL 30
END
SBRT
30
:
Error (No RET)