WikiPendium

(beta)

Metaread()

WikiPendium :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-3-138-122-4.us-east-2.compute.amazonaws.com

Metaread()


LONG Metaread( drive, buffer, first, length )

WORD drive;
VOID *buffer;
LONG first, length;

Metaread() reads data from a MetaDOS device, to memory.

Opcode

51 (0x33)

Availability

A MetaDOS driver must be installed.

Parameters

drive is the letter of a MetaDOS device, i.e. the ASCII code for any character from 'A' to 'Z'.
buffer is a pointer to a memory buffer large enough to hold the data to be read from the device.
first is the number of the 2048-byte block, where to start the read.
length is the number of 2048-byte blocks to read.

Binding

	move.l	length,-(sp)
	move.l	first,-(sp)
	pea	buffer
	move.w	drive,-(sp)
	move.w	#$33,-(sp)
	trap	#14
	lea	16(sp),sp


Return Value

The LONG value contains 0 if the operation was successful, or a negative error code.

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]