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



Merges a BASIC program saved in ASCII text to the program currently in the MSX memory.

It implies that it has been saved with SAVE and that parameter A has been used for saving on disk or another computer.


  • If both programs have same program lines, the lines of the program in the MSX memory are replaced by the lines of the loaded program
  • The new program created by this merging stays in the MSX memory and can be handled as another BASIC program (especially, you can run it, save it, modify it)


MERGE "[<devicename>:][\<path>][\]<filename>"

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


<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
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 merge. Each folder name in path are separate by a backslash (\). This parameter is only available in version 2 of Disk BASIC.

<filename> is the BASIC program name saved in ASCII text to merge with the program in the MSX memory. The device name 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, MERGE will load the first BASIC program in ASCII text found on tape.

The size of file name is limited to 6 characters without extension, when the device is a Data recorder. If another device is used, then the size is 8 characters followed by a point and an extension with 3 characters.

Related to



MSX-BASIC 1.0 or higher