Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>function 2ah (42) get system date</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 2Ah (42)        Get System Date

    Reports the current system date, including the day of the week.

       On entry:      AH         2Ah

       Returns:       AL         Day of the week (0 - 6; 0 = Sunday)
                      CX         Year (1980 - 2099)
                      DH         Month (1 - 12)
                      DL         Day (1 - 31)

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

       Notes:         The DOS 2.00 and 2.10 manuals state that Function
                      2Ch returns the day of the week in AL. That is
                      incorrect: This function, not Function 2Ch, returns
                      the day of the week.

                      Note the similarity between the registers returned
                      for this function, and the register setup of
                      Function 2Bh, Set System Date.

See Also: 2Bh 2Ch 2Dh

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