EasyManua.ls Logo

Atari ST series - Page 297

Atari ST series
420 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Fdatime
Get/Set File Date/Time Stamp
Fdatime() Opcode = 87 ($57)
T his fu nction is u se d to re ad o r ch an g e th e tim e an d d ate sta m p of an
o p en file.
C macro format
in t h an d le, m o d e;
lo n g * tim e p tr;
F d atim e (tim ep tr, h an d le, m o de );
Machine language format
m o v e .w m o d e, - (sp )
m o v e.w h an d le , - (sp )
m o v e.l tim e p tr, - (sp )
m o v e .w
# $ 5 7 , - (sp )
trap
# 1
ad d q .
# 1 0 , sp
Inputs
m od e
w o rd
R ea d o r ch an g e flag:
0 = R ead
1 = C h a n g e
h an dle w o rd
T h e h an d le o f th e file
tim ep tr
lo ng T h e a d d res s o f a 32 -b it b uffer th at h old s
th e tim e a n d d a te stam p in fo rm a tio n. T h e
d ate in fo rm a tio n is sto re d in th e first
w o rd .
C o n te n ts o f first w o rd o f b uffer p oin ted to by timeptr:
Bit Number
Description Range
0 - 4
D ay
1 -3 1
5 - 8 M o n th 1 - 1 2
9 - 1 5
Y e ar - 19 80
0 -1 1 9
T h e se co n d
w o rd h o ld s th e tim e, in th e follo w in g fo rm at:
Bit Number Description
Range
0 - 4
S ec o n d s divid ed by 2 0 - 2 9
5 - 1 0
M in u tes 0 - 5 9
1 1 -1 5
H o u r
0 - 2 3
Results
N o n e
See also
Tgettime(), Tsettime()
289