Diff for /np2/io/gdc_sub.c between versions 1.1 and 1.5

version 1.1, 2003/10/16 17:57:55 version 1.5, 2004/01/30 14:33:27
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        <math.h>  #include        <math.h>
 #include        "memory.h"  #include        "cpucore.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
 #include        "vram.h"  
 #include        "gdc_pset.h"  #include        "gdc_pset.h"
   #include        "vram.h"
   
   
 enum {  enum {
Line 51  static void calc_gdcslavewait(UINT dots) Line 51  static void calc_gdcslavewait(UINT dots)
         SINT32  clk;          SINT32  clk;
   
         clk = dots;          clk = dots;
         if (pc.baseclock != PCBASECLOCK20) {          if (pccore.baseclock != PCBASECLOCK20) {
                 clk *= 27648;                  clk *= 27648;
         }          }
         else {          else {
                 clk *= 22464;                  clk *= 22464;
         }          }
         clk *= pc.multiple;          clk *= pccore.multiple;
         clk /= 15625;          clk /= 15625;
         clk += 30 * pc.multiple;          clk += 30 * pccore.multiple;
         gdc.s_drawing = 8;                                                      // GDC DRAWING!          gdc.s_drawing = 8;                                                      // GDC DRAWING!
         nevent_set(NEVENT_GDCSLAVE, clk, gdcslavewait, NEVENT_ABSOLUTE);          nevent_set(NEVENT_GDCSLAVE, clk, gdcslavewait, NEVENT_ABSOLUTE);
 }  }
Line 390  void gdcsub_write(void) { Line 390  void gdcsub_write(void) {
         BYTE    *ptr;          BYTE    *ptr;
         UINT16  updatebit;          UINT16  updatebit;
   
   #if 0
           TRACEOUT(("gdcsub_write"));
           if (grcg.gdcwithgrcg & 0x8) {
                   MessageBox(NULL, "!!! grcg working", "?", MB_OK);
                   TRACEOUT(("!!! grcg working"));
           }
   #endif
   
         mask = LOADINTELWORD(gdc.s.para + GDC_MASK);          mask = LOADINTELWORD(gdc.s.para + GDC_MASK);
 #if defined(BYTESEX_LITTLE)  #if defined(BYTESEX_LITTLE)
         switch(gdc.s.cmd & 0x18) {          switch(gdc.s.cmd & 0x18) {

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


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