Diff for /xmil/io/crtc.c between versions 1.1 and 1.2

version 1.1, 2004/08/04 17:09:25 version 1.2, 2004/08/05 04:53:15
Line 542  REG8 IOINPCALL blackctrl_i(UINT port) { Line 542  REG8 IOINPCALL blackctrl_i(UINT port) {
   
 // ----  // ----
   
   static void resetpal(void) {
   
           CopyMemory(crtc_TEXTPAL, def_TEXTPAL, 8);
           CopyMemory(crtc_GRPHPAL[0], def_GRPHPAL, 64*2);
           CopyMemory(crtc_GRPHPAL[1], def_GRPHPAL, 64*2);
   }
   
 void crtc_initialize(void) {  void crtc_initialize(void) {
   
           UINT    p;
   
           resetpal();
           for (p=0; p<4096; p++) {
                   crtc_PAL4096[p] = p;
           }
 }  }
   
 void crtc_reset(void) {  void crtc_reset(void) {
   
 static  BYTE    initcrtc = 0;  
         UINT    p;  
   
         crtc.s = crtcdefault;          crtc.s = crtcdefault;
   
         palandply = 1;          palandply = 1;
         dispmode = SCRN64_INVALID;          dispmode = SCRN64_INVALID;
         pal_bank = pal_disp = PAL_NORMAL;          pal_bank = pal_disp = PAL_NORMAL;
         if (!initcrtc) {          if (pccore.ROM_TYPE < 3) {
                 initcrtc++;                  resetpal();
                 memcpy(crtc_TEXTPAL, def_TEXTPAL, 8);  
                 memcpy(crtc_GRPHPAL[0], def_GRPHPAL, 64*2);  
                 memcpy(crtc_GRPHPAL[1], def_GRPHPAL, 64*2);  
                 for (p=0; p<4096; p++) {  
                         crtc_PAL4096[p] = p;  
                 }  
         }  
         else if (pccore.ROM_TYPE < 3) {  
                 memcpy(crtc_TEXTPAL, def_TEXTPAL, 8);  
                 memcpy(crtc_GRPHPAL[0], def_GRPHPAL, 64*2);  
                 memcpy(crtc_GRPHPAL[1], def_GRPHPAL, 64*2);  
         }          }
         if ((pccore.ROM_TYPE >= 2) && (!(pccore.DIP_SW & 1))) {          if ((pccore.ROM_TYPE >= 2) && (!(pccore.DIP_SW & 1))) {
                 crtc.s.SCRN_BITS = SCRN_200LINE;                  crtc.s.SCRN_BITS = SCRN_200LINE;

Removed from v.1.1  
changed lines
  Added in v.1.2


RetroPC.NET-CVS <cvs@retropc.net>