Denso RC5 Specifications Page 254

  • Download
  • Add to my manuals
  • Print
  • Page
    / 692
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 253
11-4
11.2 Call
CALL (Statement)
Function
Calls a program and executes it.
Format
CALL <Program name> [(<Argument>[,<Argument>])]
Explanation
A CALL statement calls the program designated by <Program name> and
transfers control.
An END statement in a CALL program has the same meaning as a RETURN
statement in a subroutine and returns control to the calling program.
Designate an argument to send the program designated by <Program name>
for <Argument>.
<Argument> can be sent either by “calling with a value” which uses a constant
or expression, or by “calling with reference” which sends a variable. Refer to
Part 1 “2.16 Calling with a Value and with Reference.
1. Calling with a value
A constant, an arithmetic expression and a character expression with a
value are sent. A variable even when enclosed in parentheses ( ) is
regarded as an expression and can be sent as a value.
For numbered variables, an integer type, single precision type, double
precision type or character string type can be enclosed in parentheses ( )
and sent with a value.
Example: Calling a program of PROGRAM SUB1(AA#)
If a variable is sent as a value CALL SUB1((D1))
If a constant is sent CALL SUB1(10#)
If an arithmetic expression is sent CALL SUB1(D1 + D2)
Note: If an arithmetic expression is sent, note the result type of
expression. The type must be the same as the argument in the
called program.
Page view 253
1 2 ... 249 250 251 252 253 254 255 256 257 258 259 ... 691 692

Comments to this Manuals

No comments