Atari ST series Technical Reference Manual page 222

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

Set System Time and Date
Settim e()
T h e S e t t i m e ( ) f u n c t i o n is u s e d t o s e t t h e in te l l i g e n t k e y b o a r d 's t i 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 ;
S e t t i m e ( d a t e t i m e ) ;
Machine language format
m o v e . l
# d a t e t i m e , - (s p )
m o v e . w
# 2 2 , - (s p )
t r a p
# 1 4
a d d q .l
# 6 , s p
Inputs
d a t e t i m e
l o n g
V a l u e s c o n t a i n e d in 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 -
Results
N o n e
See also
G e t t i m e ( )
214
Settime
A 3 2 - b i t w o r d i n d i c a t i n g t h e t i m e a n d
d a t e to w h i c h t h e c lo c k s h o u l d b e s e t .
Range
0 - 2 9
0 - 5 9
0 - 2 3
1 - 3 1
1-12
0 - 1 1 9 )
1 9 8 0
Opcode = 22

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents