Epson Research and Development
Page 81
Vancouver Design Center
Programming Notes and Examples
S1D13503
Issue Date: 01/01/30
X18A-G-002-06
printf("Showing Split Screen\n");
Initialize();
SetDisplay(OFF);
ClearLCDScreen();
//
// Access memory banks
//
FP_SEG(pVideoImage1) = 0xd000;
FP_OFF(pVideoImage1) = 0x0000;
switch (PanelGrayLevel)
{
case 2:
BytesPerScanLine = (PanelX / 8);
break;
case 4:
BytesPerScanLine = (PanelX / 4);
break;
case 16:
BytesPerScanLine = (PanelX / 2);
break;
case 256:
BytesPerScanLine = PanelX;
break;
}
ShowVerticalBars(pVideoImage1, 0);
//
// Calculate starting video memory location for image 2 by finding the
// last location of image 1
//
ImageSize = (unsigned long) BytesPerScanLine * PanelY;
//
// Because the image size is limited to a maximum of 320 x 240, and there
// is 128k of video memory, there is enough memory available.
//
FP_SEG(pVideoImage2) = 0xd000;
FP_OFF(pVideoImage2) = (unsigned int) (ImageSize & 0xffff);
if (ImageSize & 0xffff0000)
Image2Bank = BANK1;
electronic components distributor