BSAVE
This page was last modified 15:48, 8 September 2019 by Mars2000you. Based on work by DamnedAngel and NYYRIKKI and others.

Contents

Effect

Saves a specified area of memory to the specified device and/or file name.

Syntaxes

  • BSAVE "[<device>:]<filename>",<start address>,<end address>[,<execution address>]
  • BSAVE "[<device>:]<filename>",<start address>,<end address>,S

Parameters

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

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 saving will be made to tape on a system without any disk drive, to the current active drive (generally drive A:) in the other cases.

<filename> is the name of binary file to save. 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)

<start address> and <end address> are used to specify the area of the computer RAM (or VRAM).

<execution address> is the address at which the saved code should start, when loaded with BLOAD ,R. By default the start address is set.

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

Examples

BSAVE "CAS:test",&HC000,&HD0FF,&HC020
BSAVE "A:TEST.BIN",&HC000,&HD0FF,&HC020
BSAVE "PICTURE.SC2",&H0,&H3FFF,S

Related to

BLOAD

Compatibility

MSX-BASIC 1.0 or higher