Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- BIOS ref. - <b>int 1ah, 00h read system-timer time counter all</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Int 1Ah, 00h            Read System-Timer Time Counter                    all

    Reports the current time of day, and whether 24 hours has passed
    since 1) the last power-on, 2) the last system reset, or 3) the
    last system-timer time read or set.

        Entry   AH = 00h

        Return  CX = High-order part of clock count
                DX = Low-order part of clock count
                AL = 0 if 24 hours has not passed; else 1

    ------------------------------------------------------------------

    The following formulas convert the clock count to the time of day:

                Hour      = Clock / 65543 (1007h)
                Remainder = Clock MOD 65543

                Minutes   = Remainder / 1092 (444h)
                Remainder = Remainder MOD 1092

                Second    = Remainder / 18.21
                Remainder = Remainder MOD 18.21

                Hundredths = CINT(Remainder * 100)


    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 read as a 4-byte integer at memory
    location 0040h:006Ch. This 4-byte value is equal to the 4-byte
    integer in CX:DX after Service 00h has been called.

    After the call, the flag (at 0040h:0070h) 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.

    Counts occur at the rate of 18.2 per second.

See Also: Int 1Ah, 01h Int 1Ah, 02h

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