DSKI$()
This page was last modified 11:27, 18 May 2020 by Mars2000you. Based on work by NYYRIKKI and Gdx and others.

Contents

Effect

This function reads a sector (512 bytes) of the disk inserted in the specified drive and loads the data to a temporary buffer pointed by addresses &HF351 and &HF352.

The function itself always returns an empty string as maximum string space (255 bytes) is too small to store the sector.

Syntax

DSKI$(<DriveNumber>,<SectorNumber>)

Parameters

<DriveNumber> is a value between 0 and 8, according the following tabel:

Number Drive
0 Default drive
1 Drive A
2 Drive B
3 Drive C
4 Drive D
5 Drive E
6 Drive F
7 Drive G
8 Drive H


<SectorNumber> 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.

Example

10 X$ = DSKI$(0,0)
20 AD = PEEK(&HF351)+PEEK(&HF352)*256
30 FOR I=0 TO 511:PRINT PEEK(AD+I);:NEXT

Related to

DSKO$

Compatibility

Disk BASIC 1.0 or higher