Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>int 1ah, 01h (1) set system-timer time counter all</b> http://www.X-Hacker.org [<<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

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson