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

version 1.1, 2003/10/16 17:57:50 version 1.3, 2003/12/08 00:55:32
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "sysmng.h"  #include        "sysmng.h"
 #include        "i286.h"  #include        "cpucore.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
   #include        "sound.h"
   #include        "beep.h"
   
   
 void IOOUTCALL dipsw_w8(UINT port, BYTE value) {  void IOOUTCALL dipsw_w8(UINT port, REG8 value) {
   
         BYTE    set;          BYTE    set;
         UINT    update;          UINT    update;
Line 55  void IOOUTCALL dipsw_w8(UINT port, BYTE  Line 57  void IOOUTCALL dipsw_w8(UINT port, BYTE 
                                 set = (value >> 2) & 0x03;                                  set = (value >> 2) & 0x03;
                                 if (np2cfg.BEEP_VOL != set) {                                  if (np2cfg.BEEP_VOL != set) {
                                         np2cfg.BEEP_VOL = set;                                          np2cfg.BEEP_VOL = set;
                                           beep_setvol(set);
                                         update |= SYS_UPDATECFG;                                          update |= SYS_UPDATECFG;
                                 }                                  }
                         }                          }
Line 73  void IOOUTCALL dipsw_w8(UINT port, BYTE  Line 76  void IOOUTCALL dipsw_w8(UINT port, BYTE 
         sysmng_update(update);          sysmng_update(update);
 }  }
   
 BYTE IOINPCALL dipsw_r8(UINT port) {  REG8 IOINPCALL dipsw_r8(UINT port) {
   
         BYTE    ret = 0xff;          REG8    ret;
   
           ret = 0xff;
         switch(port & 0x0f00) {          switch(port & 0x0f00) {
                 case 0x0400:                  case 0x0400:
                         ret = (np2cfg.dipsw[0] ^ 0x04) & 0xbc;                          ret = (np2cfg.dipsw[0] ^ 0x04) & 0xbc;

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


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