Diff for /np2/io/gdc_pset.c between versions 1.6 and 1.9

version 1.6, 2004/02/09 20:39:39 version 1.9, 2005/02/07 14:46:11
Line 3 Line 3
 #include        "egcmem.h"  #include        "egcmem.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
   #include        "gdc_sub.h"
 #include        "gdc_pset.h"  #include        "gdc_pset.h"
 #include        "vram.h"  #include        "vram.h"
   
Line 49  static void MEMCALL _set(GDCPSET pset, U Line 50  static void MEMCALL _set(GDCPSET pset, U
   
 static void MEMCALL withtdw(GDCPSET pset, UINT addr, UINT bit) {  static void MEMCALL withtdw(GDCPSET pset, UINT addr, UINT bit) {
   
         BYTE    *ptr;          UINT8   *ptr;
   
         addr &= ~1;          addr &= ~1;
         *(UINT16 *)(vramupdate + addr) |= pset->update.w;          *(UINT16 *)(vramupdate + addr) |= pset->update.w;
Line 63  static void MEMCALL withtdw(GDCPSET pset Line 64  static void MEMCALL withtdw(GDCPSET pset
   
 static void MEMCALL withrmw(GDCPSET pset, UINT addr, UINT bit) {  static void MEMCALL withrmw(GDCPSET pset, UINT addr, UINT bit) {
   
         BYTE    *ptr;          UINT8   *ptr;
         BYTE    data;          UINT8   data;
         BYTE    mask;          UINT8   mask;
   
         vramupdate[addr] |= pset->update.b[0];          vramupdate[addr] |= pset->update.b[0];
         ptr = pset->base.ptr + addr;          ptr = pset->base.ptr + addr;
Line 108  static const GDCPFN psettbl[4][2] = { Line 109  static const GDCPFN psettbl[4][2] = {
   
 void MEMCALL gdcpset_prepare(GDCPSET pset, UINT32 csrw, REG16 pat, REG8 op) {  void MEMCALL gdcpset_prepare(GDCPSET pset, UINT32 csrw, REG16 pat, REG8 op) {
   
         BYTE    *base;          UINT8   *base;
         BYTE    update;          UINT8   update;
   
         if (vramop.operate & VOP_EGCBIT) {          if (vramop.operate & VOP_EGCBIT) {
                 pset->func[0] = _nop;                  pset->func[0] = _nop;
                 pset->func[1] = withegc;                  pset->func[1] = withegc;
                 pset->base.addr = vramplaneseg[(csrw >> 14) & 3];                  pset->base.addr = gdcplaneseg[(csrw >> 14) & 3];
         }          }
         else {          else {
                 base = mem;                  base = mem;
Line 129  void MEMCALL gdcpset_prepare(GDCPSET pse Line 130  void MEMCALL gdcpset_prepare(GDCPSET pse
                 if (!(grcg.gdcwithgrcg & 0x8)) {                  if (!(grcg.gdcwithgrcg & 0x8)) {
                         pset->func[0] = psettbl[op][0];                          pset->func[0] = psettbl[op][0];
                         pset->func[1] = psettbl[op][1];                          pset->func[1] = psettbl[op][1];
                         pset->base.ptr = base + vramplaneseg[(csrw >> 14) & 3];                          pset->base.ptr = base + gdcplaneseg[(csrw >> 14) & 3];
                 }                  }
                 else {                  else {
                         pset->func[0] = _nop;                          pset->func[0] = _nop;

Removed from v.1.6  
changed lines
  Added in v.1.9


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