Category : C Source Code
Archive   : LSPD05-2.ZIP
Filename : 082.C

 
Output of file : 082.C contained in archive : LSPD05-2.ZIP
/* Light Speed Reference Example Program */
/* Find the page addresses of the current mode */
#include "lspeed.h"

main()
{
/* Variables */
unsigned int firstp, secondp;

/* Set graphics mode, register font */
set640x350();
registerstandardfont();

/* Assign the values, print output */
firstp = ega_firstpageaddress();
secondp = ega_secondpageaddress();
ega_formattext(10, 10, LS_WHITE, LS_BLACK, STANDARD_FONT,
"First page address is %04X:0000", firstp);
ega_formattext(10, 20, LS_WHITE, LS_BLACK, STANDARD_FONT,
"Second page address is %04X:0000", secondp);

/* Wait for key, restore text, exit */
ega_writetext(10, 30, LS_WHITE, LS_BLACK, STANDARD_FONT,
"Press a key...");
getxch();
set80x25();
}




  3 Responses to “Category : C Source Code
Archive   : LSPD05-2.ZIP
Filename : 082.C

  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/