Category : C Source Code
Archive   : JAZLIB.ZIP
Filename : JZSCROFF.C

 
Output of file : JZSCROFF.C contained in archive : JAZLIB.ZIP
#include
/*
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³jzscroff.c ³
³Turn the display screen off. When turned back on the screen will be as it ³
³was before. There is no need to save the data. ³
³ ³
³ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
*/
jzscroff()
{
#define CPORT 0x3D8 /* address of mode select register */
#define MPORT 0x3B8 /* address of CRT control port */

unsigned int PORTADDR; /* hold address of port */
unsigned int wport; /* hold original contents */

if (MEMB(0x40,0x49) == 7) /* mono card */
PORTADDR = MPORT;
else
PORTADDR = CPORT;

wport = inp(PORTADDR); /* get original contents */

outp(PORTADDR,wport & 0xF7); /* disable the display bit */
}



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