EasyManua.ls Logo

Atari ST series - Page 223

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...
Gettime
Get System Time and Date
Gettime()
Opcode = 23
T his fu n ctio n a llo w s y o u to rea d th e in te llig en t k ey b oa rd s tim e a n d d ate
clo ck .
C macro format
lo ng da te tim e;
d a tetim e = G e tti m e ();
Machine language format
m o v e.w # 2 3 , - ( s p )
trap # 1 4
ad d q.l # 2 ,s p
Results
DO d ate tim e lo n g A 32 -b it v alu e th a t in d icates th e cu rre n t tim e a n d
d ate s ettin g s.
V alu es fo r d atetim e:
Inputs
N o ne
Bit Number Description
0 - 4 S ec o n d s d iv ide d b y 2
5 - 1 0 M in ute s
1 1 -1 5 H o u r
1 6 -2 0 D ay
2 1 - 2 4 M on th
2 5 -3 1 Y e ar - 1 980
Range
0 - 2 9
0 - 5 9
0 - 2 3
1 -3 1
1-12
0 -1 1 9 )
See also
S e ttim e ()
215