EasyManua.ls Logo

Casio PB-100 - Page 53

Casio PB-100
67 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
rhe numerical expression following the GOSUB statement indicates the initial line
lumber of the subroutine area. Without a RETURN statement at the end of the
lubroutine area, program execution cannot return to the main routine.
1 0 0 G O S U B 1 0 0 0
1000 A=B
1990
subroutine area
RETURN
999
The numerical expression following a GOSUB statement may be either a numerical
/ariable or a calculation formula. In the case of a variable or a numerical expression, the
subroutine which is called out will be different depending on the numerical value
contained in the variable or the result of the numerical expression. When a is
attached prior to the numerical expression, another program area (P0 through P9) will
be used as the subroutine. This method is very convenient because even different
programs can use the same routine.
G O S U B # 9
10.A=B
999 RETURN
999 END
3 0 0 G O S U B # 9
999 END
-52-

Related product manuals