LONG Metagettoc( drive, dummy, tocentry )
WORD drive, 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
bos_tocentry_t structures (enough memory for 100 of these should be enough).
If track is CDROM_LEADOUT (0xA2), 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.
See Also