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

Contents

Effect

Writes several sectors of the disk inserted in the default drive with the data coming from a specified location of the RAM.

Note: This instruction is not compatible with FAT16.

Syntax

CALL DSKO (<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 written, 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 DSKO (300,10,40960)

Related to

CALL DRIVE, CALL DSKI, CALL VERIFY, DSKO$

Compatibility

SCC-BASIC