Category : C Source Code
Archive   : TCCLIB2.ZIP
Filename : SCRPTR.C

 
Output of file : SCRPTR.C contained in archive : TCCLIB2.ZIP
#define VIDMODE *(unsigned char far *) 0x00449lu
#define MONOSEG 0xb0000000L
#define COLOR 0xb8000000L
#define VIDSEG (unsigned char far *)((7 == VIDMODE) ? MONOSEG : COLOR )

unsigned char far *ScrPtr( int col, int row )
{
return( VIDSEG + (--row * 160) + (--col << 1) );
}


  3 Responses to “Category : C Source Code
Archive   : TCCLIB2.ZIP
Filename : SCRPTR.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/