7-110
CALL(P)
7.6.3 Subroutine program calls (CALL(P))
CALL(P)
Function
(1) When the CALL (P) instruction is executed, executes the subroutine program of the program
specified by Pn.
Pn : Head pointer number of a subroutine program (Device name)
to : Number of the device to be passed as an argument to a subroutine program (bits, BIN 16 bits, BIN 32 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
P
Bit Word Bit Word
Pn –– –– ––
to
(Other
than F)
––
The CALL (P) instruction can execute subroutine programs specified by a
pointer within the same program file and subroutine programs specified by a
common pointer.
Basic
Process
High
performance
Redundant
Universal
Command
Command
Command
Command
CALL
Pn
CALLP
Pn
PnCALL
to
PnCALLP
to
CALL
CALLP
S1
S5
S1
S5
CALL
CALLP
S1
S5
S1
S5
Main routine
program
CALL Pn
END
Subroutine
program
RET
Pn