Diff for /np2/io/printif.c between versions 1.1 and 1.3

version 1.1, 2003/10/16 17:57:57 version 1.3, 2003/12/21 16:05:25
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "i286.h"  #include        "cpucore.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
   
   
 // ---- I/O  // ---- I/O
   
 static BYTE IOINPCALL prt_i42(UINT port) {  static REG8 IOINPCALL prt_i42(UINT port) {
   
         BYTE    ret;          REG8    ret;
   
         ret = 0x84;          ret = 0x84;
         if (pc.cpumode & CPUMODE_8MHz) {          if (pc.cpumode & CPUMODE_8MHz) {
Line 20  static BYTE IOINPCALL prt_i42(UINT port) Line 20  static BYTE IOINPCALL prt_i42(UINT port)
         if (np2cfg.dipsw[0] & 0x80) {          if (np2cfg.dipsw[0] & 0x80) {
                 ret |= 0x08;                  ret |= 0x08;
         }          }
 #ifndef EPSON_286          if (!(pc.model & PCMODEL_EPSON)) {
         if (CPUTYPE & CPUTYPE_V30) {                  if (CPU_TYPE & CPUTYPE_V30) {
                 ret |= 0x02;                          ret |= 0x02;
                   }
         }          }
 #else          else {
         if (np2cfg.dipsw[2] & 0x80) {                  if (np2cfg.dipsw[2] & 0x80) {
                 ret |= 0x02;                          ret |= 0x02;
                   }
         }          }
 #endif  
         (void)port;          (void)port;
         return(ret);          return(ret);
 }  }

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


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