Topic : TOS - The Operating System
Author :
Version : tos.hyp (December 19, 2008)
Subject : Programmieren/Atari
Nodes : 3010
Index Size : 93790
HCP-Version : 5
Compiled on : Atari
@charset : atarist
@lang :
@default : Title
@help :
@options : +g -i -s +x +zz -t4
@width : 70
View Ref-File3.1.11 Mediach TOS Name: Media change
Opcode: 9
Syntax: int32_t Mediach ( int16_t dev );
Description: The BIOS routine Mediach establishes whether the data-
carrier 'medium' on the device dev has been changed
since the last disk operation of the particular drive.
Valid are:
dev = 0 (Drive A)
= 1 (Drive B)
= 2 (Drive C, similarly for other drives)
Note: One should never assume that a device's medium
cannot be exchanged (removable disk catridge, CD-ROM,
floppy drive, floptical ...). The recognition of a
floppy disk change usually only works reliably if the
floppy is not write-protected. In addition one should
note that during formatting a floppy different serial
numbers will be asssigned.
Return value: The function returns an integer-value with the
following meaning:
Value Meaning
0 Media definitely has not changed.
1 Media might have changed.
2 Media definitely has changed.
Availability: All TOS versions.
See also: BindingFlopfmtProtobt