CALL instruction
This instruction invokes an execution of named set of instructions - Function (see Function). Putting it differently: when an executing Action reaches the CALL instruction, it continues the execution with the instructions specified in the Function Declaration and when the Function reaches its end, the Action continues to execute the instruction following the CALL instruction.
Syntax:
call function-name [( parameters-declaration )]
where
- function-name
- is a name of one of the functions declared in the current object.
- parameters-declaration
- the function may expect parameters as specified in its declaration. The values of these parameters are given here. They are then apropriately used when executing the Function. For more details see Parameters in SMI.
Example
Action : START_RUN (new_run_number)
...
call PREPARE_FOR_RUN (run_number = 5) ...
...
call PREPARE_FOR_RUN (run_number = 5) ...