Previous 199869 Revisions Next

r34699 Wednesday 28th January, 2015 at 14:08:19 UTC by hap
compilefix part2
[src/mame/audio]seibu.c seibu.h
[src/mame/drivers]cabal.c shanghai.c

trunk/src/mame/audio/seibu.c
r243210r243211
229229   update_irq_lines(RST18_CLEAR);
230230}
231231
232void seibu_sound_device::ym3812_irqhandler(int linestate)
232WRITE_LINE_MEMBER( seibu_sound_device::fm_irqhandler )
233233{
234   update_irq_lines(linestate ? RST10_ASSERT : RST10_CLEAR);
235}
236
237WRITE_LINE_MEMBER( seibu_sound_device::ym2151_irqhandler )
238{
239234   update_irq_lines(state ? RST10_ASSERT : RST10_CLEAR);
240235}
241236
242void seibu_sound_device::ym2203_irqhandler(int linestate)
243{
244   update_irq_lines(linestate ? RST10_ASSERT : RST10_CLEAR);
245}
246
247237WRITE8_MEMBER( seibu_sound_device::bank_w )
248238{
249239   space.machine().root_device().membank("bank1")->set_entry(data & 1);
trunk/src/mame/audio/seibu.h
r243210r243211
4545
4646   DECLARE_READ16_MEMBER( main_word_r );
4747   DECLARE_WRITE16_MEMBER( main_word_w );
48
4948   DECLARE_WRITE16_MEMBER( main_mustb_w );
50
5149   DECLARE_WRITE8_MEMBER( irq_clear_w );
5250   DECLARE_WRITE8_MEMBER( rst10_ack_w );
5351   DECLARE_WRITE8_MEMBER( rst18_ack_w );
5452   DECLARE_WRITE8_MEMBER( bank_w );
5553   DECLARE_WRITE8_MEMBER( coin_w );
56   void ym3812_irqhandler(int linestate);
57   WRITE_LINE_MEMBER(ym2151_irqhandler);
58   void ym2203_irqhandler(int linestate);
54   WRITE_LINE_MEMBER( fm_irqhandler );
5955   DECLARE_READ8_MEMBER( soundlatch_r );
6056   DECLARE_READ8_MEMBER( main_data_pending_r );
6157   DECLARE_WRITE8_MEMBER( main_data_w );
r243210r243211
193189#define SEIBU_SOUND_SYSTEM_YM3812_INTERFACE(freq1,freq2)            \
194190   MCFG_SPEAKER_STANDARD_MONO("mono")                              \
195191                                                   \
196   MCFG_SOUND_ADD("ymsnd", YM3812, freq1)                              \
197   MCFG_YM3812_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym3812_irqhandler)) \
192   MCFG_SOUND_ADD("ymsnd", YM3812, freq1)                          \
193   MCFG_YM3812_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) \
198194   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)                      \
199195                                                   \
200196   MCFG_OKIM6295_ADD("oki", freq2, OKIM6295_PIN7_LOW)              \
r243210r243211
203199#define SEIBU_SOUND_SYSTEM_YM3812_RAIDEN_INTERFACE(freq1,freq2)     \
204200   MCFG_SPEAKER_STANDARD_MONO("mono")                              \
205201                                                   \
206   MCFG_SOUND_ADD("ymsnd", YM3812, freq1)                              \
207   MCFG_YM3812_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym3812_irqhandler)) \
202   MCFG_SOUND_ADD("ymsnd", YM3812, freq1)                          \
203   MCFG_YM3812_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) \
208204   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)                      \
209205                                                   \
210206   MCFG_OKIM6295_ADD("oki", freq2, OKIM6295_PIN7_HIGH)             \
r243210r243211
213209#define SEIBU_SOUND_SYSTEM_YM2151_INTERFACE(freq1,freq2)            \
214210   MCFG_SPEAKER_STANDARD_MONO("mono")                              \
215211                                                   \
216   MCFG_YM2151_ADD("ymsnd", freq1)                             \
217   MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym2151_irqhandler)) \
212   MCFG_YM2151_ADD("ymsnd", freq1)                                 \
213   MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) \
218214   MCFG_SOUND_ROUTE(0, "mono", 0.50)                               \
219215   MCFG_SOUND_ROUTE(1, "mono", 0.50)                               \
220216                                                   \
r243210r243211
224220#define SEIBU_AIRRAID_SOUND_SYSTEM_YM2151_INTERFACE(freq1)          \
225221   MCFG_SPEAKER_STANDARD_MONO("mono")                              \
226222                                                   \
227   MCFG_YM2151_ADD("ymsnd", freq1)                             \
228   MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym2151_irqhandler)) \
223   MCFG_YM2151_ADD("ymsnd", freq1)                                 \
224   MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) \
229225   MCFG_SOUND_ROUTE(0, "mono", 0.50)                               \
230226   MCFG_SOUND_ROUTE(1, "mono", 0.50)
231227
232#define SEIBU_SOUND_SYSTEM_YM2151_RAIDEN2_INTERFACE(freq1,freq2,regiona, regionb)      \
228#define SEIBU_SOUND_SYSTEM_YM2151_RAIDEN2_INTERFACE(freq1, freq2, regiona, regionb) \
233229   MCFG_SPEAKER_STANDARD_MONO("mono")                              \
234230                                                   \
235   MCFG_YM2151_ADD("ymsnd", freq1)                             \
236   MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym2151_irqhandler)) \
231   MCFG_YM2151_ADD("ymsnd", freq1)                                 \
232   MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) \
237233   MCFG_SOUND_ROUTE(0, "mono", 0.50)                               \
238234   MCFG_SOUND_ROUTE(1, "mono", 0.50)                               \
239235                                                   \
r243210r243211
247243   MCFG_SPEAKER_STANDARD_MONO("mono")                              \
248244                                                   \
249245   MCFG_SOUND_ADD("ym1", YM2203, freq)                             \
250   MCFG_YM2203_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym2203_irqhandler)) \
246   MCFG_YM2203_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler)) \
251247   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15)                     \
252248                                                   \
253249   MCFG_SOUND_ADD("ym2", YM2203, freq)                             \
r243210r243211
255251
256252#define SEIBU_SOUND_SYSTEM_ADPCM_INTERFACE                          \
257253   MCFG_SOUND_ADD("adpcm1", SEIBU_ADPCM, 8000)                     \
258   MCFG_SEIBU_ADPCM_ROMREGION("adpcm1")                      \
254   MCFG_SEIBU_ADPCM_ROMREGION("adpcm1")                            \
259255   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)                     \
260256                                                   \
261257   MCFG_SOUND_ADD("adpcm2", SEIBU_ADPCM, 8000)                     \
262   MCFG_SEIBU_ADPCM_ROMREGION("adpcm2")                      \
258   MCFG_SEIBU_ADPCM_ROMREGION("adpcm2")                            \
263259   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
264260
265261/**************************************************************************/
trunk/src/mame/drivers/cabal.c
r243210r243211
484484   MCFG_SPEAKER_STANDARD_MONO("mono")
485485
486486   MCFG_YM2151_ADD("ymsnd", XTAL_3_579545MHz) /* verified on pcb */
487   MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym2151_irqhandler))
487   MCFG_YM2151_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler))
488488   MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono", 0.80)
489489
490490   MCFG_SOUND_ADD("adpcm1", SEIBU_ADPCM, 8000) /* it should use the msm5205 */
trunk/src/mame/drivers/shanghai.c
r243210r243211
514514
515515   /* same as standard seibu ym2203, but "ym1" also reads "DSW" */
516516   MCFG_SOUND_ADD("ym1", YM2203, XTAL_16MHz/4)
517   MCFG_YM2203_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, ym2203_irqhandler))
517   MCFG_YM2203_IRQ_HANDLER(DEVWRITELINE("seibu_sound", seibu_sound_device, fm_irqhandler))
518518   MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW"))
519519   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15)
520520


Previous 199869 Revisions Next


© 1997-2024 The MAME Team