BLOAD
This page was last modified 04:31, 6 September 2018 by DamnedAngel. Based on work by Mars2000you and NYYRIKKI and others.

Contents

Effect

Loads binary code from the specified device and/or filename.

Syntaxes

  • BLOAD "[<device>:][<filename>]",[R][,<offset>]
  • BLOAD "[<device>:][<filename>]",S[,<offset>]

Note: Do not put a comma if no parameters are behind.

Parameters

<device> is device name to indicate the device to use. Here are the useful devices for BLOAD:

Device type Device name Remark
Disk drive A, B, C, D, E, F, G, H A floppy disk interface can control up to 2 drives.
Data recorder CAS Not available on MSX Turbo R


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.

<filename> is the name of the binary file 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, BLOAD will load the first binary file 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)

The parameter R is used to run automatically the binary code contained in the loaded file.

The parameter S is used to load the contents to VRAM (only from disk) - This can be done in any screen mode but only the active pages are valid when the screen mode is higher than 4.

<offset> indicates the program will be loaded at start address+offset. This parameter also affects the execution address.

Examples

BLOAD "CAS:test",R,&H20
BLOAD "A:TEST.BIN",R
BLOAD "PICTURE.SC2",S

Related to

BSAVE

Compatibility

MSX-BASIC 1.0 or higher