LONG Metaread( drive, buffer, first, length )
WORD drive;
VOID *buffer;
LONG first, length;
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.