--- np2/io/dipsw.c 2003/10/16 17:57:50 1.1.1.1 +++ np2/io/dipsw.c 2003/12/08 00:55:32 1.3 @@ -1,11 +1,13 @@ #include "compiler.h" #include "sysmng.h" -#include "i286.h" +#include "cpucore.h" #include "pccore.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; UINT update; @@ -55,6 +57,7 @@ void IOOUTCALL dipsw_w8(UINT port, BYTE set = (value >> 2) & 0x03; if (np2cfg.BEEP_VOL != set) { np2cfg.BEEP_VOL = set; + beep_setvol(set); update |= SYS_UPDATECFG; } } @@ -73,10 +76,11 @@ void IOOUTCALL dipsw_w8(UINT port, BYTE 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) { case 0x0400: ret = (np2cfg.dipsw[0] ^ 0x04) & 0xbc;