Ceci est une version archivée de
Metawrite() à 2005-05-14 00:31:01.
LONG Metawrite( drive,buffer,first,length )
WORD drive;
void *buffer;
LONG first;
LONG length;
Opcode
52 (0x34)
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 written to the device.
first is the number of the 2048-byte block, where to start the write.
length is the number of 2048-byte blocks to write.
Binding
move.l length,-(sp)
move.l first,-(sp)
pea buffer
move.w drive,-(sp)
move.w #$34,-(sp)
trap #14
lea 16(sp),sp
Return Value
The LONG value contains 0 if the operation was successful, or a negative error code.