Category : Alternate Operating Systems - Quarterdeck DesqView, CP/M, etc
Archive   : MULTIDOS.ZIP
Filename : DEMO1.C
Output of file : DEMO1.C contained in archive : MULTIDOS.ZIP
/* DEMO1.C */
/*********************************************/
#include
#include
#include
union REGS inregs;
union REGS outregs;
/****************/
/* main program */
/****************/
int main(int argcnt, char *arglst[])
{
printf("\x01b[2J"); /* ANSI.SYS clear screen */
printf("\x01b[5;5H*** MultiDos Plus DEMO1 Program ***");
for (;;)
{
printf("\x01b[10;10H"); /* position cursor */
inregs.h.ah = 0x2a; /* DOS GET DATE function code */
int86(0x21, &inregs, &outregs);
outregs.x.cx -= 1900;
printf("%d/%d/%d", outregs.h.dh, outregs.h.dl, outregs.x.cx);
inregs.h.ah = 0x2c; /* DOS GET TIME function code */
int86(0x21, &inregs, &outregs);
printf(" %d:%2.2d", outregs.h.ch, outregs.h.cl);
printf(":%2.2d.%2.2d ", outregs.h.dh, outregs.h.dl);
inregs.h.ah = 0; /* MultiDos Plus GIVE UP TIMESLICE */
int86(0x15, &inregs, &outregs);
}
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/