--- xmil/io/sndboard.c 2004/08/05 11:30:12 1.3 +++ xmil/io/sndboard.c 2004/08/12 17:57:36 1.5 @@ -2,6 +2,7 @@ #include "joymng.h" #include "pccore.h" #include "iocore.h" +#include "sound.h" #include "sndctrl.h" #include "keystat.h" #include "x1f.h" @@ -47,6 +48,7 @@ REG8 IOINPCALL opm_i(UINT port) { void IOOUTCALL sndboard_psgreg(UINT port, REG8 dat) { sndboard.psgreg = dat; + (void)port; } void IOOUTCALL sndboard_psgdat(UINT port, REG8 dat) { @@ -59,6 +61,7 @@ void IOOUTCALL sndboard_psgdat(UINT port x1f_psg(reg, dat); psggen_setreg(&psggen, reg, dat); } + (void)port; } REG8 IOINPCALL sndboard_psgsta(UINT port) { @@ -86,6 +89,7 @@ REG8 IOINPCALL sndboard_psgsta(UINT port return(ret); } else { + (void)port; return(0xff); } } @@ -93,6 +97,18 @@ REG8 IOINPCALL sndboard_psgsta(UINT port // ---- +void sndboard_update(void) { + + UINT i; + + for (i=0; i<14; i++) { + psggen_setreg(&psggen, (REG8)i, sndboard.psgdat[i]); + } + for (i=0x20; i<0x100; i++) { + opmgen_setreg((REG8)i, sndboard.opmdat[i]); + } +} + void sndboard_reset(void) { ZeroMemory(&sndboard, sizeof(sndboard));