This instruction is available in Network Basic, QuickDisk Basic and X-Basic.
Contents |
CALL RUN in Network Basic
Effect
Runs BASIC program that is in the memory of a student computer. This instruction is available only for the teacher.
Syntax
CALL RUN (<StudentNumber>,<LineNumber>)
All the parameters are optional. Parameters can not end with a comma alone.
Parameters
<StudentNumber> can vary from 1 to 15. When omitted or equal to zero, the BASIC programs will be started on all student computers.
<LineNumber> is the line to run the BASIC program automatically after loading. If the parameter is omitted, the program will be started from the smallest line number.
Example
CALL RUN (1,100)
Related to
CALL RECEIVE, CALL SEND, CALL SNDCMD, CALL SNDRUN, CALL STOP
Compatibility
CALL RUN in QuickDisk Basic
Effect
Loads a BASIC file from the specified Quick Disk device in the MSX memory and executes it.
Note: You can also press the F1 function key
Syntax
CALL RUN ("QDn:<Filename>")
Specify at least the <Filename>
Parameters
QD specifies used device is the Quick Disk. Value n can vary between 0 and 7. By default, the loading will be made from Quick Disk device 0.
<Filename> is the file name in format of 8 characters followed by a point and an extension with 3 characters. This extension can be used to make the difference between BASIC files (extension BAS) and DATA files (extension DAT).
Related to
CALL LOAD, CALL MERGE, CALL SAVE
Compatibility
CALL RUN in X-Basic
Effect
Compiles and executes the entire BASIC program present in the MSX memory.
Syntax
CALL RUN
Using
As X-BASIC does not support all the MSX-BASIC instructions, but only a part, and sometimes with a few limitations and/or differences, CALL RUN can only be used with programs that don't include non-compilable instructions.
Also the program can't include CALL TURBO ON and CALL TURBO OFF, as these instructions define compilable blocks while other parts of the program are not compilable.
Note: A program that is executed with CALL RUN can't be stopped except if the program terminates itself or you have enabled debug warm start with POKE &HFBB0,1.
If you use the version of X-BASIC available on MSX2+ Sanyo computers with internal disk drive(s), you must first initialize X-BASIC with CALL BC before using CALL RUN.
Related to
CALL BC, CALL TURBO OFF, CALL TURBO ON