LOAD
This page was last modified 02:03, 21 July 2018 by Mars2000you. Based on work by NYYRIKKI and Gdx.

Contents

Effect

Loads a BASIC program in the MSX memory.

If you use cassette, the program needs to be in ASCII text, what means that it has been saved with SAVE, not with CSAVE.

If you use another device, the program can be in ASCII text or in tokenized format.

Syntax

LOAD "[<devicename>:][\<path>][\]<filename>"[,R]

Note: Character backslash (\) is used in Disk BASIC 2.x. It is replaced by the character yen (¥) on Japanese MSX.

Parameters

<devicename> is the name for used device. (see table below)

Device type Device name Remark
Disk drive A, B, C, D, E, F, G, H A floppy disk interface can control until 2 drives.
Data recorder CAS Not available on MSX Turbo R
Data cartridge CAT Requires Sony HBI-55 or Yamaha UDC-01
Linked computer COM Requires RS-232C interface
Memory disk MEM Created with CALL MEMINI


By default, the loading will be made from tape on a system without any disk drive, from the current active drive (generally drive A) in the other cases.

<path> is used to specify the location in folders of file to load. Each folder name in path are separate by a backslash (\). This parameter is only available in version 2 of Disk BASIC.

<filename> is the file name that contains the BASIC program to load. It needs to be specified if the file is on disk or memory disk. If you use a tape and don't indicate the file name, LOAD will load the first BASIC program in ASCII mode found on tape.

When the file is saved on tape the format of file name is case sensitive and limited to 6 characters without extension. If another device is used, then the format is 8 characters followed by a point and an extension with 3 characters. (Not case sensitive)

Parameter R forces the execution of BASIC program after load.

Related to

CALL MEMINI, CLOAD, CSAVE, MERGE, RUN, SAVE

Compatibility

MSX-BASIC 1.0 or higher