Atari ST series Technical Reference Manual page 295

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

Find Next File in Directory Chain
Fsnext()
T h is f u n c t i o n is u s e d to f in d a d d i t i o n a l file s in a d i r e c t o r y c h a i n t h a t m e e t
th e c r i t e r i a s e t f o r t h in a p r e v i o u s F s f i r s t ( ) c a ll. T h is f u n c t i o n w ill o n l y
w o r k if t h e file s p e c i f i c a t i o n u s e d f o r F s f i r s t ( ) i n c l u d e d a w i l d c a r d c h a r a c ­
t e r .
C macro format
i n t s t a t u s ;
s t a t u s =
F s n e x t ( ) ;
Machine language format
m o v e . w
# $ 4 F , - ( s p )
t r a p
# 1
a d d q .l
# 2 , s p
Inputs
N o n e — s e a r c h c r i t e r i a a r e s e t b y p r e v i o u s F s f i r s t ( ) c a ll.
Results
DO
s t a t u s
w o r d
I n f o r m a t i o n in d a t a s t r u c t u r e r e t u r n e d if m a t c h is s u c c e s s f u l :
Byte Number
Contents
0 - 2 0
R e s e r v e d f o r i n t e r n a l u s e ( m u s t n o t b e a l t e r e d )
2 1
F ile a t t r i b u t e s
2 2 - 2 3
T i m e s t a m p
2 4 - 2 5
D a t e s t a m p
2 6 - 2 9
F ile s iz e
3 0 - 4 3
F i l e n a m e a n d e x t e n s i o n
See also
F s f i r s t ( )
Fsnext
If a m a t c h is f o u n d , a v a l u e o f 0 is r e t u r n e d h e r e ,
a n d a 4 4 - b y t e d a t a s t r u c t u r e is w r i t t e n to t h e a d d r e s s
p o i n t e d to b y th e D T A . I f n o m a t c h is f o u n d , t h e
a p p r o p r i a t e n e g a t i v e G E M D O S e r r o r n u m b e r is r e ­
t u r n e d .
Opcode = 79 ($4F)
287

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents