Page 80
Epson Research and Development
Vancouver Design Center
S1D13503
Programming Notes and Examples
X18A-G-002-06
Issue Date: 01/01/30
{
pVideo = pVideoFirstColumn;
Video = 0;
val = *pFont++;
//
// Since there are 256 colors, each bit in the font will be
// represented in video memory as an 8 bit pixel.
//
for (count = 0; count < 8; ++count)
{
if (val & 0x80)
Video = color;
else
Video = 0;
*+ = (unsigned char) Video;
CheckBank(pVideo, &bank);
val <<= 1;
}
pVideoFirst= BytesPerScanLine;
}
pVide= 8; // Point to next character
pVideoFirstColumn = pVideoStart;
}
break;
}
}
//-------------------------------------------------------------------------
//
// FUNCTION: SplitScreen()
//
// DESCRIPTION: Show split screen.
//
// INPUTS: None.
// RETURN VALUE: None.
//
//-------------------------------------------------------------------------
void SplitScreen(void)
{
static unsigned char _far *pVideoImage1;
static unsigned char _far *pVideoImage2;
static unsigned long ImageSize;
static unsigned int OriginalLineCount;
static unsigned int val;
static int MinLineCount;
static unsigned int MaxVirtualScanLines;
static unsigned char Image2Bank;
electronic components distributor