•  Back 
  •  BIOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileGetbpb()
Mediach()                                                              BIOS

Syntax

LONG Mediach( dev )
WORD dev;

Function      Mediach() inquires as to whether the 'media' has been changed
              since the last disk operation on a removable block device
              (floppy, removable hard drive, floptical, etc...).

Opcode        9 (0x09)

Availability  All TOS versions.

Parameters    dev specifies the mounted device number to inquire
              ('A:' = 0, 'B:' =  1, etc.).

Binding       move.w   dev,-(sp)
              move.w   #$09,-(sp)
              trap     #13
              addq.l   #4,sp

Return Value  Mediach() returns one of three values:

              Name         Value  Meaning

              MED_NOCHANGE   0    Media has not changed

              MED_UNKNOWN    1    Media may have changed

              MED_CHANGED    2    Media has changed

See Also      Getbpb()