CALL DSKI
This page was last modified 11:45, 11 September 2021 by Mars2000you. Based on work by Gdx.

Contents

Effect

Reads several sectors of the disk inserted in the default drive and loads the data in a specified location of the RAM.

Note: This instruction is not compatible with FAT16.

Syntax

CALL DSKI (<StartSector>,<Sectors>,<RAMaddress>)

Parameters

<StartSector> can vary between 0 and a maximum that depends from the used drive to format the disk. The highest possible maximum on MSX for floppy disks is 719 for single sided disks and 1439 for double sided disks.

<Sectors> is a number to specify how many sectors need to be read, starting at the specified <StartSector>.

<RAMaddress> must be in the range -32768 to 65535.

If <RAMaddress> is negative the binary complement is used. This means PEEK(-1)=PEEK(65536-1)=PEEK(65535).

Example

CALL DSKI (300,10,40960)

Related to

CALL DRIVE, CALL DSKO, CALL VERIFY, DSKI$()

Compatibility

SCC-BASIC