Diff for /np2/i386c/Attic/mem9821.c between versions 1.1 and 1.3

version 1.1, 2004/02/29 03:10:03 version 1.3, 2004/04/02 19:31:26
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
   
   #if defined(SUPPORT_PC9821)
   
 #include        "cpucore.h"  #include        "cpucore.h"
 #include        "mem9821.h"  #include        "mem9821.h"
 #include        "pccore.h"  #include        "pccore.h"
Line 15  void MEMCALL mem9821_w(UINT32 addr, REG8 Line 18  void MEMCALL mem9821_w(UINT32 addr, REG8
         bit = (addr & 0x40000)?2:1;          bit = (addr & 0x40000)?2:1;
         vramupdate[LOW15(addr >> 3)] |= bit;          vramupdate[LOW15(addr >> 3)] |= bit;
         gdcs.grphdisp |= bit;          gdcs.grphdisp |= bit;
         TRACEOUT(("mem9821_w %x %x", addr, value));  //      TRACEOUT(("mem9821_w %x %x", addr, value));
 }  }
   
 REG8 MEMCALL mem9821_r(UINT32 addr) {  REG8 MEMCALL mem9821_r(UINT32 addr) {
Line 33  void MEMCALL mem9821_ww(UINT32 addr, REG Line 36  void MEMCALL mem9821_ww(UINT32 addr, REG
         vramupdate[LOW15(addr >> 3)] |= bit;          vramupdate[LOW15(addr >> 3)] |= bit;
         vramupdate[LOW15((addr + 1) >> 3)] |= bit;          vramupdate[LOW15((addr + 1) >> 3)] |= bit;
         gdcs.grphdisp |= bit;          gdcs.grphdisp |= bit;
         TRACEOUT(("mem9821_ww %x %x", addr, value));  //      TRACEOUT(("mem9821_ww %x %x", addr, value));
 }  }
   
 REG16 MEMCALL mem9821_rw(UINT32 addr) {  REG16 MEMCALL mem9821_rw(UINT32 addr) {
Line 88  void MEMCALL mem9821_b2w(UINT32 address, Line 91  void MEMCALL mem9821_b2w(UINT32 address,
         address -= 0xe0004;          address -= 0xe0004;
         if (address < 4) {          if (address < 4) {
                 vramop.bank2[address] = value;                  vramop.bank2[address] = value;
                 TRACEOUT(("bank2[%d] = %.2x", address, value));  //              TRACEOUT(("bank2[%d] = %.2x", address, value));
         }          }
 }  }
   
Line 115  REG16 MEMCALL mem9821_b2rw(UINT32 addres Line 118  REG16 MEMCALL mem9821_b2rw(UINT32 addres
         ret |= mem9821_b2r(address + 1) << 8;          ret |= mem9821_b2r(address + 1) << 8;
         return(ret);          return(ret);
 }  }
   #endif
   

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


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