Diff for /np2/io/cpuio.c between versions 1.5 and 1.7

version 1.5, 2003/12/08 06:24:03 version 1.7, 2003/12/26 22:24:06
Line 15  DWORD cpumem_addrmask = 0xfffff; Line 15  DWORD cpumem_addrmask = 0xfffff;
   
 static void IOOUTCALL cpuio_of0(UINT port, REG8 dat) {  static void IOOUTCALL cpuio_of0(UINT port, REG8 dat) {
   
           epsonio.cpumode = (CPU_MSW & 1)?'P':'R';
         CPU_ADRSMASK = 0x0fffff;          CPU_ADRSMASK = 0x0fffff;
 #if defined(CPUCORE_IA32)  #if defined(CPUCORE_IA32)
         cpumem_addrmask = 0xfffff;          cpumem_addrmask = 0xfffff;
 #endif  #endif
         CPU_RESETREQ = 1;          CPU_RESETREQ = 1;
         CPU_INTERRUPT(0x02);  //      CPU_INTERRUPT(0x02);
         nevent_forceexit();          nevent_forceexit();
         (void)port;          (void)port;
         (void)dat;          (void)dat;
Line 28  static void IOOUTCALL cpuio_of0(UINT por Line 29  static void IOOUTCALL cpuio_of0(UINT por
   
 static void IOOUTCALL cpuio_of2(UINT port, REG8 dat) {  static void IOOUTCALL cpuio_of2(UINT port, REG8 dat) {
   
         CPU_ADRSMASK = 0x1fffff;          CPU_ADRSMASK = 0xffffffff;
 #if defined(CPUCORE_IA32)  #if defined(CPUCORE_IA32)
         cpumem_addrmask = 0xffffffff;          cpumem_addrmask = 0xffffffff;
 #endif  #endif
Line 54  static REG8 IOINPCALL cpuio_if2(UINT por Line 55  static REG8 IOINPCALL cpuio_if2(UINT por
   
         REG8    ret;          REG8    ret;
   
 #if 1  
         ret = 0xff;          ret = 0xff;
         ret -= (REG8)((CPU_ADRSMASK >> 20) & 1);          ret -= (REG8)((CPU_ADRSMASK >> 20) & 1);
 #else  
         ret = 0xfe;  
         if (CPU_ADRSMASK != 0x1fffff) {  
                 ret++;  
         }  
 #endif  
         (void)port;          (void)port;
         return(ret);          return(ret);
 }  }
Line 73  static void IOOUTCALL cpuio_of6(UINT por Line 67  static void IOOUTCALL cpuio_of6(UINT por
   
         switch(dat) {          switch(dat) {
                 case 0x02:                  case 0x02:
                         CPU_ADRSMASK = 0x1fffff;                          CPU_ADRSMASK = 0xffffffff;
 #if defined(CPUCORE_IA32)  #if defined(CPUCORE_IA32)
                         cpumem_addrmask = 0xffffffff;                          cpumem_addrmask = 0xffffffff;
 #endif  #endif
Line 94  static REG8 IOINPCALL cpuio_if6(UINT por Line 88  static REG8 IOINPCALL cpuio_if6(UINT por
         REG8    ret;          REG8    ret;
   
         ret = 0x00;          ret = 0x00;
         if (CPU_ADRSMASK != 0x1fffff) {          if (!(CPU_ADRSMASK & (1 << 20))) {
                 ret |= 0x01;                  ret |= 0x01;
         }          }
         if (nmiio.enable) {          if (nmiio.enable) {

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


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