Atari ST series Technical Reference Manual page 223

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

Get System Time and Date
Gettime()
T h is f u n c t i o n a l l o w s y o u to r e a d t h e in te l l i g e n t k e y b o a r d s ti m e a n d d a t e
c lo c k .
C macro format
l o n g d a t e t i m e ;
d a t e t i m e =
G e t t i m e ( );
Machine language format
m o v e . w
# 2 3 , - ( s p )
t r a p
# 1 4
a d d q .l
# 2 , s p
Inputs
N o n e
Results
DO
d a t e t i m e
V a lu e s f o r d a t e t i m e :
Bit Number
Description
0 - 4
S e c o n d s d i v i d e d b y 2
5 - 1 0
M i n u t e s
1 1 - 1 5
H o u r
1 6 - 2 0
D a y
2 1 - 2 4
M o n t h
2 5 - 3 1
Y e a r -
See also
S e t t i m e ( )
Gettime
l o n g
A 3 2 - b i t v a l u e t h a t i n d i c a t e s t h e c u r r e n t ti m e a n d
d a t e s e t t i n g s .
1 9 8 0
Range
0 - 2 9
0 - 5 9
0 - 2 3
1 - 3 1
1-12
0 - 1 1 9 )
Opcode = 23
215

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents