Ceci est une version archivée de
Metagettoc() à 2005-06-08 23:06:48.
LONG Metagettoc( drive,dummy,tocentry )
WORD drive;
WORD dummy;
bos_tocentry_t *tocentry;
Opcode
62 (0x3e)
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'.
dummy is an unknown parameter.
toc is a pointer to an array of these structures (100 should be enough):
typedef struct {
unsigned char track; /* Number of this track, or 0xA2 for end of CD */
unsigned char minute; /* Minute where this track starts */
unsigned char second; /* Second where this track starts */
unsigned char frame; /* Frame where this track starts */
} bos_tocentry_t;
If track is 0xA2 (CDROM_LEADOUT), then minute:second:frame is the total length of the CD.
Binding
pea tocentry,-(sp)
clr.w -(sp)
move.w drive,-(sp)
move.w #$3e,-(sp)
trap #14
lea 10(sp),sp
Return Value
The LONG value contains 0 if the operation was successful, or a negative error code.