Category : C Source Code
Archive   : CENVID17.ZIP
Filename : DOSTIME.BAT

 
Output of file : DOSTIME.BAT contained in archive : CENVID17.ZIP
@echo off
REM DosTime - CEnvi example program for showing the Dos system time
cenvi %0.bat
GOTO CENVI_EXIT

printf("Displaying DOS system time; press any key to end:\n")

while( !kbhit() ) {
reg.ah = 0x2C
interrupt(0x21,reg)
printf("\r%2d:%02d:%02d.%02d",reg.ch,reg.cl,reg.dh,reg.dl)
}

while( kbhit() ) getch() // flush keyboard buffer
printf("\n")


:CENVI_EXIT


  3 Responses to “Category : C Source Code
Archive   : CENVID17.ZIP
Filename : DOSTIME.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. 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/