Tandy 1000 Programmer's Reference Manual page 91

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 1
I
System Calls
SetTime
Set Time
Function Call 2DH
Sets the time to a valid time in binary given in CX and
DX.
Entry Conditions:
AH
=
2DH
CH
=
hour
(0-23)
CL
=
minutes
(0-59)
DH
=
seconds
(0-59)
DL
=
hundredths
of a second
(0-99)
E xi t Conditions
:
If AL
=
00H, the time specified on entry is valid.
If AL
=
FFH, the time was not valid; the function was
canceled.
Macro Definition:
s e t - t i m e
m a c r o
h o u r , m ~ n u t e s , s e c o n d s , h u n d r e d t h s
mov
c h , h o u r
mov
c l , m i n u t e 5
mov
d h , s e c o n d s
mov
d 1 , h u n d r e d t h s
mov
ah,2DH
I n t
21 H
endm
89

Advertisement

Table of Contents
loading

Table of Contents