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

version 1.7, 2003/12/26 22:24:06 version 1.12, 2005/02/07 14:46:11
Line 2 Line 2
 #include        "cpucore.h"  #include        "cpucore.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
 #include        "sound.h"  
 #include        "fmboard.h"  
   
 // ¸å¤ÇÄ´À°  
 #if defined(CPUCORE_IA32)  
 DWORD cpumem_addrmask = 0xfffff;  
 #endif  
   
   
 // ---- I/O  // ---- I/O
   
 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';  #if defined(TRACE)
         CPU_ADRSMASK = 0x0fffff;          if (CPU_MSW & 1) {
 #if defined(CPUCORE_IA32)                  TRACEOUT(("80286 ProtectMode Disable"));
         cpumem_addrmask = 0xfffff;          }
 #endif  #endif
           epsonio.cpumode = (CPU_MSW & 1)?'P':'R';
           CPU_A20EN(FALSE);
         CPU_RESETREQ = 1;          CPU_RESETREQ = 1;
 //      CPU_INTERRUPT(0x02);  
         nevent_forceexit();          nevent_forceexit();
         (void)port;          (void)port;
         (void)dat;          (void)dat;
Line 29  static void IOOUTCALL cpuio_of0(UINT por Line 23  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 = 0xffffffff;          CPU_A20EN(TRUE);
 #if defined(CPUCORE_IA32)  
         cpumem_addrmask = 0xffffffff;  
 #endif  
         (void)port;          (void)port;
         (void)dat;          (void)dat;
 }  }
   
 static REG8 IOINPCALL cpuio_if0(UINT port) {  static REG8 IOINPCALL cpuio_if0(UINT port) {
   
         BYTE    ret;          UINT8   ret;
   
         if (!(usesound & 0x80)) {          if (!(pccore.sound & 0x80)) {
                 ret = 0x00;                  ret = 0x00;
         }          }
         else {                          // for AMD-98          else {                          // for AMD-98
Line 67  static void IOOUTCALL cpuio_of6(UINT por Line 58  static void IOOUTCALL cpuio_of6(UINT por
   
         switch(dat) {          switch(dat) {
                 case 0x02:                  case 0x02:
                         CPU_ADRSMASK = 0xffffffff;                          CPU_A20EN(TRUE);
 #if defined(CPUCORE_IA32)  
                         cpumem_addrmask = 0xffffffff;  
 #endif  
                         break;                          break;
   
                 case 0x03:                  case 0x03:
                         CPU_ADRSMASK = 0x0fffff;                          CPU_A20EN(FALSE);
 #if defined(CPUCORE_IA32)  
                         cpumem_addrmask = 0xfffff;  
 #endif  
                         break;                          break;
         }          }
         (void)port;          (void)port;

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


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