Category:Disk BASIC
This page was last modified 01:31, 19 June 2020 by Mars2000you. Based on work by NYYRIKKI and Rderooy.

Contents

Description

Disk BASIC is a BASIC extension that is related to disk drives.

Versions

There are 3 versions of this extension:

Version 1 is provided with external diskdrive interfaces and with MSX1/MSX2/MSX2+ computers with integrated internal diskdrive(s).

Version 2 is provided with the Turbo R computers, the Daisen Sangyo MX30B internal drive, the original MSX-DOS 2 cartridge and its European versions. This cartridge requires at least a MSX2 computer with internal or external disk drive.

This version is not enabled if you boot with a DOS1-formatted disk in drive A (on MSX2 or higher) or on a MSX Turbo R, if you keep the '1' key pressed during the boot sequence.

Version 3 is provided with the Nextor operating system.

Instructions

All versions extend the following 10 instructions: BLOAD, BSAVE, CLOSE, ERR, ERROR, LOAD, MERGE, OPEN, RUN and SAVE.

Version 1 adds 23 new instructions including COPY that is also a MSX-BASIC graphic command introduced on MSX2.

Version 2 extends the FILES and LFILES instructions and adds 5 new instructions.

Version 3 modifies the CALL CHDRV, DSKF(), DSKI$() and DSKO$ instructions and adds 8 new instructions.

The following table includes also Disk-BASIC related instructions that are not part of the standard MSX-BASIC instructions but were reserved during MSX-BASIC development for future disk operations. These reserved words were never actually used: ATTR$(), CMD, FPOS() and IPL. Machine Language experts can divert them to create new instructions.

Note: CALL can be replaced by the character underscore (_). A space is not required after this character. See CALL for more info.

Instruction Generation Versions Remark
ATTR$() MSX1 - Reserved word that can be diverted
CALL CHDIR MSX2 2 -3
CALL CHDRV MSX2 2 -3
CALL CURDRV MSX1/2 3
CALL DRIVERS MSX1/2 3
CALL DRVINFO MSX1/2 3
CALL FORMAT MSX1 1 - 2 - 3
CALL LOCKDRV MSX1/2 3
CALL MKDIR MSX2 2 - 3
CALL MAPDRV MSX1/2 3
CALL MAPDRVL MSX1/2 3
CALL NEXTOR MSX1/2 3
CALL RAMDISK MSX2 2 - 3
CALL RMDIR MSX2 2 - 3
CALL SYSTEM MSX1 1 - 2 - 3
CALL USR MSX1/2 3
CMD MSX1 - Reserved word that can be diverted
COPY MSX1 1 - 2 - 3
CVD() MSX1 1 - 2 - 3
CVI() MSX1 1 - 2 - 3
CVS() MSX1 1 - 2 - 3
DSKF() MSX1 1 - 2 - 3
DSKI$() MSX1 1 - 2 - 3
DSKO$ MSX1 1 - 2 - 3
FIELD MSX1 1 - 2 - 3
FILES MSX1 1 - 2 - 3
FPOS() MSX1 - Reserved word that can be diverted
GET MSX1 1 - 2 - 3
IPL MSX1 - Reserved word that can be diverted
KILL MSX1 1 - 2 - 3
LFILES MSX1 1 - 2 - 3
LOC() MSX1 1 - 2 - 3
LOF() MSX1 1 - 2 - 3
LSET MSX1 1 - 2 - 3
MKD$() MSX1 1 - 2 - 3
MKI$() MSX1 1 - 2 - 3
MKS$() MSX1 1 - 2 - 3
NAME MSX1 1 - 2 - 3
PUT MSX1 1 - 2 - 3
RSET MSX1 1 - 2 - 3


Remark

The addition of diskdrive(s) decreases the amount of memory available for MSX-BASIC. However, you can disable
- drive B by keeping the CTRL key pressed while booting, this frees up a small amount of memory
- both drives A and B by keeping the SHIFT key pressed while booting, this disables Disk BASIC completely.

Pages in category "Disk BASIC"

The following 42 pages are in this category, out of 42 total.

A

B

C

C cont.

D

E

F

G

I

K

L

L cont.

M

N

O

P

R

S