Atari ST series Technical Reference Manual page 285

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

Fattrib()
T h is f u n c t i o n c a n b e u s e d t o r e a d o r c h a n g e f ile 's a tt r i b u t e s .
C macro format
in t a t t r i b u t e s , m o d e , n e w a t t r ;
c h a r ^ f ile n a m e ;
a t t r i b u t e s =
F a t t r i b ( f i l e n a m e , m o d e , n e w a t t r ) ;
Machine language format
m o v e . w
n e w a t t r , - (s p )
m o v e . w
m o d e , — ( s p )
m o v e . l
f i l e n a m e , - ( s p )
m o v e . w
# 0 , - (s p )
#1
t r a p
a d d q .l
# 6 , s p
Inputs
n e w a t t r
w o r d
newattr
I n t e r p r e t a t i o n o f
Bit Number
Attribute
0
R e a d - o n l y file ( c a n 't b e d e l e t e d o r w r i t t e n to )
1
H i d d e n file ( e x c l u d e d f r o m n o r m a l d i r e c t o r y s e a r c h e s )
2
S y s t e m file ( e x c l u d e d f r o m n o r m a l d i r e c t o r y s e a r c h e s )
3
V o l u m e la b e l ( c a n o n l y e x i s t i n r o o t )
4
S u b d i r e c t o r y
5
A r c h i v e b it
m o d e
w o r d
f ile n a m e
l o n g
Results
DO
a t t r i b u t e s
See also
F c r e a t e ( )
Fattrib
Get/Set File Attributes
A b it f la g t h a t i n d i c a t e s t h e f ile 's n e w a t ­
tr ib u te s .
f la g :
A f la g t h a t d e t e r m i n e s w h e t h e r t h e a t t r i ­
b u t e s a r e r e a d o r c h a n g e d :
0 =
1 =
A p o i n t e r t o a n u l l - t e r m i n a t e d A S C I I
s t r i n g t h a t c o n t a i n s t h e n a m e o f t h e file s
w h o s e a t t r i b u t e s w ill b e r e a d o r c h a n g e d .
mode
w o r d
If
is s e t t o 0 , t h e c u r r e n t file a t t r i b u t e s a r e
r e t u r n e d h e r e , in t h e s a m e f o r m a t a s d e s c r i b e d
newattr,
f o r
Opcode = 67 ($43)
R e a d
C h a n g e
a b o v e .
277

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents