home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
msdos
/
c
/
jazlib.arc
/
JZSCRON.C
< prev
next >
Wrap
Text File
|
1986-05-06
|
844b
|
28 lines
#include <jaz.h>
/*
┌────────────────────────────────────────────────────────────────────────────┐
│jzscron.c │
│Turn the display screen on after a previous call to jzscroff(). │
│ │
│ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
└────────────────────────────────────────────────────────────────────────────┘
*/
jzscron()
{
#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 | 8); /* enable the display bit */
}