CALL CHCAS
This page was last modified 17:06, 17 May 2020 by Mars2000you.

Contents

Effect

Mounts (inserts) the specified tape image (CAS file) to the virtual cassettedrive of the MSX1/MSX2 computer emulated in a Turbo R with the rMSX emulator.

Notes:

  • Programs on cassette can usually be loaded and started with one of the following instructions:
    • BLOAD"CAS:",R for binary programs
    • RUN"CAS: (or LOAD"CAS: followed by RUN) for BASIC programs saved in ASCII text with SAVE
    • CLOAD followed by RUN for BASIC programs saved in tokenized format with CSAVE
  • If you are not too familiar with cassettes, then simply use CALL CASRUN to load and run the first program found on the inserted tape image
  • Most games on tape have been created for MSX1; to avoid problems with loaders on MSX2, it's recommended to emulate a MSX1 machine on Turbo R with the rMSX emulator
  • Many games on tape require maximum free memory; for that, you need to start rMSX with the NODISK parameter or to press the SHIFT key while booting the MSX1 or MSX2 computer emulated by rMSX

Syntax

CALL CHCAS ("<Device>:\<Path>\<Filename.CAS>")

Notes:

  • Character backslash (\) serves as a separator between the folders and the file name in MSX-DOS2. You don't have to put it after the colon of the device name.
  • Character backslash is replaced by the character yen (¥) on Japanese MSX or the character won (₩) on Korean MSX.

Parameters

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

If you don't specify the drive, the instruction will be applied to the currently active drive (by default, it's drive A:)

Device type Device name Remark
Disk drive A, B, C, D, E, F, G, H A floppy disk interface can control until 2 drives.


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

Dot (.) represents the current working directory, Dot Dot (..) represents the directory before the current (one level up).

<Filename.CAS> is the name of the CAS file to insert in the emulated MSX1 or MSX2 computer.

Example

_CHCAS ("A:\GAMES\CAS\ARKANOID.CAS")

Related to

CALL CASRUN, CALL CHDIR, CALL FILES, FILES

Compatibility

RMSX BASIC