Settime
Set System Time and Date
Settime()
Opcode = 22
T h e S e ttim e () fu n ctio n is u se d to se t th e inte llig en t k e yb o a rd 's tim e a n d
d ate clock .
C macro format
lo n g da te tim e;
S ettim e(d ate tim e);
Machine language format
m o v e .l # d a te tim e , - (sp )
m o v e.w # 2 2 , - (sp)
tra p # 1 4
ad d q .l # 6 ,s p
Inputs
d atetim e lo ng
A 32 -b it w o rd in d icatin g th e tim e a n d
d a te to w h ich th e clock sh o u ld be set.
V alu es co n ta in e d in d ate tim e:
Bit Number Description
0 - 4 S ec o n d s d iv id ed b y 2
5 - 1 0 M in u tes
1 1 -1 5 H o u r
1 6 -2 0 D ay
2 1 - 2 4 M o n th
2 5 -3 1 Y e a r - 19 80
Range
0 -2 9
0 -5 9
0 -2 3
1 -3 1
1-12
0 -1 1 9 )
Results
N o ne
See also
G e ttim e ()
214