Atari ST series Technical Reference Manual page 192

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

Get Media Change Status
Mediach()
T h is f u n c t i o n is u s e d b y t h e d i s k o p e r a t i n g s y s t e m t o d e t e r m i n e w h e t h e r a
d i s k h a s b e e n c h a n g e d .
C macro format
i n t d r i v e n u m ;
l o n g s t a t u s ;
s t a t u s =
M e d i a c h ( d r i v e n u m ) ;
Machine language format
m o v e . w
# d r i v e n u m , - (s p )
m o v e . w
# 9 , - ( s p )
t r a p
# 1 3
a d d q .l
# 4 , s p
Inputs
d r i v e n u m
w o r d
Results
DO
s t a t u s
l o n g
184
Mediach
T h e n u m b e r o f th e d r i v e t o c h e c k
(0 =
T h e m e d i a c h a n g e s t a t u s o f th e d r iv e .
0 =
D is k w a s d e f in ite l y c h a n g e d .
1 =
D is k m i g h t h a v e b e e n c h a n g e d .
2 =
D is k d e f in ite l y w a s n o t c h a n g e d .
d r i v e A : , 1 =
d r i v e B :, a n d s o o n ) .
Opcode = 9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents