| version 1.3, 2004/08/05 11:30:12 | version 1.5, 2004/08/12 17:57:36 | 
| Line 2 | Line 2 | 
 | #include        "joymng.h" | #include        "joymng.h" | 
 | #include        "pccore.h" | #include        "pccore.h" | 
 | #include        "iocore.h" | #include        "iocore.h" | 
 |  | #include        "sound.h" | 
 | #include        "sndctrl.h" | #include        "sndctrl.h" | 
 | #include        "keystat.h" | #include        "keystat.h" | 
 | #include        "x1f.h" | #include        "x1f.h" | 
| Line 47  REG8 IOINPCALL opm_i(UINT port) { | Line 48  REG8 IOINPCALL opm_i(UINT port) { | 
 | void IOOUTCALL sndboard_psgreg(UINT port, REG8 dat) { | void IOOUTCALL sndboard_psgreg(UINT port, REG8 dat) { | 
 |  |  | 
 | sndboard.psgreg = dat; | sndboard.psgreg = dat; | 
 |  | (void)port; | 
 | } | } | 
 |  |  | 
 | void IOOUTCALL sndboard_psgdat(UINT port, REG8 dat) { | void IOOUTCALL sndboard_psgdat(UINT port, REG8 dat) { | 
| Line 59  void IOOUTCALL sndboard_psgdat(UINT port | Line 61  void IOOUTCALL sndboard_psgdat(UINT port | 
 | x1f_psg(reg, dat); | x1f_psg(reg, dat); | 
 | psggen_setreg(&psggen, reg, dat); | psggen_setreg(&psggen, reg, dat); | 
 | } | } | 
 |  | (void)port; | 
 | } | } | 
 |  |  | 
 | REG8 IOINPCALL sndboard_psgsta(UINT port) { | REG8 IOINPCALL sndboard_psgsta(UINT port) { | 
| Line 86  REG8 IOINPCALL sndboard_psgsta(UINT port | Line 89  REG8 IOINPCALL sndboard_psgsta(UINT port | 
 | return(ret); | return(ret); | 
 | } | } | 
 | else { | else { | 
 |  | (void)port; | 
 | return(0xff); | return(0xff); | 
 | } | } | 
 | } | } | 
| Line 93  REG8 IOINPCALL sndboard_psgsta(UINT port | Line 97  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) { | void sndboard_reset(void) { | 
 |  |  | 
 | ZeroMemory(&sndboard, sizeof(sndboard)); | ZeroMemory(&sndboard, sizeof(sndboard)); |