[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
INT 1Ah, 01h (1) Set System-Timer Time Counter all
Sets the current time of day.
On entry: AH 01h
CX High-order part of clock count
DX Low-order part of clock count
Returns: None
--------------------------------------------------------------------------
Notes: The following formula converts the time of day to a
clock count:
Count = (Hout * 65543.33) + (Minutes * 1092.38) +
(Seconds * 18.21) + (Hundreths * .182)
The "system timer" (as distinguished from the real-
time clock) is the timer that's set when the system
is started. This time is temporary, lasting only as
long as the system is turned on.
The clock count may also be set as a 4-byte integer
at memory location 0:046C. This 4-byte value will be
set to the 4-byte integer in CX:DX after the call.
After the set, the flag (at 0:0470h) stating whether
24 hours has passed or not, is cleared.
When TIME is typed at the command line, DOS gets the
time by means of this service. Setting a new time
will call this service.
Counts occur at the rate of 18.2 per second.
See Also:
INT 1Ah, 00h
INT 1Ah, 03h
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson