1 static char RCSId[] = "$Id$";
2 static char Copyright[] = "Copyright Robert J. Amstadt, 1993";
7 #include "prototypes.h"
11 GetTimeDate(int time_flag)
17 now = localtime(<ime);
20 _CX = (now->tm_hour << 8) | now->tm_min;
21 _DX = now->tm_sec << 8;
25 _CX = now->tm_year + 1900;
26 _DX = ((now->tm_mon + 1) << 8) | now->tm_mday;
31 printf("GetTimeDate: AX = %04x, CX = %04x, DX = %04x\n", _AX, _CX, _DX);
34 ReturnFromRegisterFunc();
35 /* Function does not return */
38 /**********************************************************************
44 switch ((_AX >> 8) & 0xff)
48 ReturnFromRegisterFunc();
49 /* Function does not return */
57 /* Function does not return */
61 /* Function does not return */
67 fprintf(stderr, "DOS: AX %04x, BX %04x, CX %04x, DX %04x\n",
69 fprintf(stderr, " SP %04x, BP %04x, SI %04x, DI %04x\n",
71 fprintf(stderr, " DS %04x, ES %04x\n",