--- xmil/io/sndboard.c 2004/08/08 06:59:22 1.4 +++ xmil/io/sndboard.c 2004/08/12 17:57:36 1.5 @@ -97,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));