Sharp MZ-700 Basic Manual page 13

Disk basic interpreter
Hide thumbs Also See for MZ-700:
Table of Contents

Advertisement

12
• Program file control
The BASIC program file control commands
CHAIN
(page 44) and
SWAP
(page 45)
are for read-out of another program in the memory during the execution of one
program and moving the control to that program.
As shown in the figure below, CHAIN has the same function as the <goto
"filename">. (For detailed information, please refer to page 26.)
file "ABC"
file "DEF"
10
PRINT "MZ-700"
,.-
10
PRINT "DISK BASIC"
20
20
,
,
, ,
100
CHAIN "DEF"
-
100
END
CHAIN
SWAP has the same function as the <gosub "filename">. After execution of
movement from the currently executing program to a separate program, it is then
possible to return to the first program. (For detailed information, refer to page 27.)
file "GHI"
file "JKL"
10
PRINT "MZ-700"
,---
10
INPUT A, B
20
!
20
FOR A=B TO A*B
50
SWAP "JKL"
f - - -
,
IL-
i
200
END
150 END
SWAP
In addition it is also possible to control the various files as utility programs files and
commands of the machine language program files.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mz-2z009

Table of Contents