Previous 199869 Revisions Next

r34650 Tuesday 27th January, 2015 at 12:40:41 UTC by Alex W. Jackson
Remove lots of useless sound IRQ trampolines leftover from the pre-devcb era (nw)
[src/mame/drivers]actfancr.c aerofgt.c alpha68k.c crospang.c dec8.c deniam.c fuukifg2.c fuukifg3.c galspnbl.c hcastle.c itech8.c lordgun.c metro.c nemesis.c nmg5.c oneshot.c onetwo.c prehisle.c psikyo.c psikyo4.c psikyosh.c snk68.c snowbros.c spbactn.c spdodgeb.c spy.c suna8.c tbowl.c tecmo.c toaplan1.c toaplan2.c twincobr.c wardner.c yunsun16.c
[src/mame/includes]actfancr.h aerofgt.h alpha68k.h crospang.h dec8.h deniam.h fuukifg2.h fuukifg3.h galspnbl.h hcastle.h itech8.h lordgun.h metro.h nemesis.h oneshot.h prehisle.h psikyo.h psikyo4.h psikyosh.h snk68.h snowbros.h spbactn.h spdodgeb.h spy.h suna8.h tbowl.h tecmo.h toaplan1.h toaplan2.h twincobr.h yunsun16.h
[src/mame/video]actfancr.c

trunk/src/mame/drivers/actfancr.c
r243161r243162
273273
274274/******************************************************************************/
275275
276WRITE_LINE_MEMBER(actfancr_state::sound_irq)
277{
278   m_audiocpu->set_input_line(0, state); /* IRQ */
279}
280
281/******************************************************************************/
282
283MACHINE_START_MEMBER(actfancr_state,actfancr)
284{
285}
286
287276MACHINE_START_MEMBER(actfancr_state,triothep)
288277{
289   MACHINE_START_CALL_MEMBER(actfancr);
290
291278   save_item(NAME(m_trio_control_select));
292279}
293280
294MACHINE_RESET_MEMBER(actfancr_state,actfancr)
295{
296   m_flipscreen = 0;
297}
298
299281MACHINE_RESET_MEMBER(actfancr_state,triothep)
300282{
301   MACHINE_RESET_CALL_MEMBER(actfancr);
302283   m_trio_control_select = 0;
303284}
304285
r243161r243162
314295   MCFG_CPU_ADD("audiocpu",M6502, 1500000) /* Should be accurate */
315296   MCFG_CPU_PROGRAM_MAP(dec0_s_map)
316297
317   MCFG_MACHINE_START_OVERRIDE(actfancr_state,actfancr)
318   MCFG_MACHINE_RESET_OVERRIDE(actfancr_state,actfancr)
319
320298   /* video hardware */
321299   MCFG_SCREEN_ADD("screen", RASTER)
322300   MCFG_SCREEN_REFRESH_RATE(60)
r243161r243162
353331   MCFG_SOUND_ROUTE(3, "mono", 0.50)
354332
355333   MCFG_SOUND_ADD("ym2", YM3812, 3000000)
356   MCFG_YM3812_IRQ_HANDLER(WRITELINE(actfancr_state, sound_irq))
334   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", M6502_IRQ_LINE))
357335   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90)
358336
359337   MCFG_OKIM6295_ADD("oki", 1024188, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified
r243161r243162
409387   MCFG_SOUND_ROUTE(3, "mono", 0.50)
410388
411389   MCFG_SOUND_ADD("ym2", YM3812, XTAL_12MHz/4) /* verified on pcb */
412   MCFG_YM3812_IRQ_HANDLER(WRITELINE(actfancr_state, sound_irq))
390   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", M6502_IRQ_LINE))
413391   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90)
414392
415393   MCFG_OKIM6295_ADD("oki", XTAL_1_056MHz, OKIM6295_PIN7_HIGH) /* verified on pcb */
trunk/src/mame/drivers/aerofgt.c
r243161r243162
12711271   GFXDECODE_ENTRY( "gfx2", 0, wbbc97_spritelayout, 1024, 64 ) /* colors 1024-2047 in 4 banks */
12721272GFXDECODE_END
12731273
1274WRITE_LINE_MEMBER(aerofgt_state::irqhandler)
1275{
1276   m_audiocpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE);
1277}
12781274
1279
12801275MACHINE_START_MEMBER(aerofgt_state,common)
12811276{
12821277   save_item(NAME(m_pending_command));
r243161r243162
13431338   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
13441339
13451340   MCFG_SOUND_ADD("ymsnd", YM2610, 8000000)
1346   MCFG_YM2610_IRQ_HANDLER(WRITELINE(aerofgt_state, irqhandler))
1341   MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
13471342   MCFG_SOUND_ROUTE(0, "lspeaker",  0.25)
13481343   MCFG_SOUND_ROUTE(0, "rspeaker", 0.25)
13491344   MCFG_SOUND_ROUTE(1, "lspeaker",  1.0)
r243161r243162
15021497   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
15031498
15041499   MCFG_SOUND_ADD("ymsnd", YM2610, XTAL_8MHz ) /* verified on pcb */
1505   MCFG_YM2610_IRQ_HANDLER(WRITELINE(aerofgt_state, irqhandler))
1500   MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
15061501   MCFG_SOUND_ROUTE(0, "lspeaker",  0.25)
15071502   MCFG_SOUND_ROUTE(0, "rspeaker", 0.25)
15081503   MCFG_SOUND_ROUTE(1, "lspeaker",  1.0)
r243161r243162
15561551   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
15571552
15581553   MCFG_SOUND_ADD("ymsnd", YM2610, XTAL_8MHz)  /* verified on pcb */
1559   MCFG_YM2610_IRQ_HANDLER(WRITELINE(aerofgt_state, irqhandler))
1554   MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
15601555   MCFG_SOUND_ROUTE(0, "lspeaker",  0.25)
15611556   MCFG_SOUND_ROUTE(0, "rspeaker", 0.25)
15621557   MCFG_SOUND_ROUTE(1, "lspeaker",  1.0)
r243161r243162
16091604   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
16101605
16111606   MCFG_SOUND_ADD("ymsnd", YM2610, XTAL_8MHz)  /* verified on pcb */
1612   MCFG_YM2610_IRQ_HANDLER(WRITELINE(aerofgt_state, irqhandler))
1607   MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
16131608   MCFG_SOUND_ROUTE(0, "lspeaker",  0.25)
16141609   MCFG_SOUND_ROUTE(0, "rspeaker", 0.25)
16151610   MCFG_SOUND_ROUTE(1, "lspeaker",  1.0)
r243161r243162
16631658   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
16641659
16651660   MCFG_SOUND_ADD("ymsnd", YM2610, 8000000)
1666   MCFG_YM2610_IRQ_HANDLER(WRITELINE(aerofgt_state, irqhandler))
1661   MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
16671662   MCFG_SOUND_ROUTE(0, "lspeaker",  0.25)
16681663   MCFG_SOUND_ROUTE(0, "rspeaker", 0.25)
16691664   MCFG_SOUND_ROUTE(1, "lspeaker",  1.0)
r243161r243162
17111706   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
17121707
17131708   MCFG_SOUND_ADD("ymsnd", YM2610, XTAL_8MHz)  /* verified on pcb */
1714   MCFG_YM2610_IRQ_HANDLER(WRITELINE(aerofgt_state, irqhandler))
1709   MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
17151710   MCFG_SOUND_ROUTE(0, "lspeaker",  0.25)
17161711   MCFG_SOUND_ROUTE(0, "rspeaker", 0.25)
17171712   MCFG_SOUND_ROUTE(1, "lspeaker",  1.0)
r243161r243162
18241819   MCFG_SPEAKER_STANDARD_MONO("mono")
18251820
18261821   MCFG_SOUND_ADD("ymsnd", YM3812, 3579545)
1827   MCFG_YM3812_IRQ_HANDLER(WRITELINE(aerofgt_state, irqhandler))
1822   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
18281823   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
18291824
18301825   MCFG_OKIM6295_ADD("oki", 1056000, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified
trunk/src/mame/drivers/alpha68k.c
r243161r243162
17871787   m_sound_pa_latch = data & 1;
17881788}
17891789
1790WRITE_LINE_MEMBER(alpha68k_state::ym3812_irq)
1791{
1792   m_audiocpu->set_input_line(0, (state) ? HOLD_LINE : CLEAR_LINE);
1793}
17941790
1795
17961791/******************************************************************************/
17971792
17981793
r243161r243162
20612056   MCFG_SPEAKER_STANDARD_MONO("mono")
20622057
20632058   MCFG_SOUND_ADD("ymsnd", YM3812, 4000000)
2064   MCFG_YM3812_IRQ_HANDLER(WRITELINE(alpha68k_state, ym3812_irq))
2059   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
20652060   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
20662061MACHINE_CONFIG_END
20672062
r243161r243162
22962291   MCFG_SPEAKER_STANDARD_MONO("mono")
22972292
22982293   MCFG_SOUND_ADD("ymsnd", YM3812, 4000000)
2299   MCFG_YM3812_IRQ_HANDLER(WRITELINE(alpha68k_state, ym3812_irq))
2294   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
23002295   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
23012296MACHINE_CONFIG_END
23022297
trunk/src/mame/drivers/crospang.c
r243161r243162
314314   GFXDECODE_ENTRY( "gfx1", 0, tlayout,       0, 64 )  /* Sprites 16x16 */
315315GFXDECODE_END
316316
317
318WRITE_LINE_MEMBER(crospang_state::irqhandler)
319{
320   m_audiocpu->set_input_line(0, state);
321}
322
323
324317void crospang_state::machine_start()
325318{
326319   save_item(NAME(m_bestri_tilebank));
r243161r243162
372365   MCFG_SPEAKER_STANDARD_MONO("mono")
373366
374367   MCFG_SOUND_ADD("ymsnd", YM3812, 14318180/4)
375   MCFG_YM3812_IRQ_HANDLER(WRITELINE(crospang_state, irqhandler))
368   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
376369   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
377370
378371   MCFG_OKIM6295_ADD("oki", 1056000, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified
trunk/src/mame/drivers/dec8.c
r243161r243162
19061906
19071907/******************************************************************************/
19081908
1909/* handler called by the 3812 emulator when the internal timers cause an IRQ */
1910WRITE_LINE_MEMBER(dec8_state::irqhandler)
1911{
1912   m_audiocpu->set_input_line(0, state); /* M6502_IRQ_LINE */
1913}
1914
1915/******************************************************************************/
1916
19171909INTERRUPT_GEN_MEMBER(dec8_state::gondo_interrupt)
19181910{
19191911   if (m_nmi_enable)
r243161r243162
22542246   MCFG_SOUND_ROUTE(3, "mono", 0.20)
22552247
22562248   MCFG_SOUND_ADD("ym2", YM3812, 3000000)
2257   MCFG_YM3812_IRQ_HANDLER(WRITELINE(dec8_state, irqhandler))
2249   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", M6502_IRQ_LINE))
22582250   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70)
22592251MACHINE_CONFIG_END
22602252
r243161r243162
24182410   MCFG_SOUND_ROUTE(3, "mono", 0.20)
24192411
24202412   MCFG_SOUND_ADD("ym2", YM3812, 3000000)
2421   MCFG_YM3812_IRQ_HANDLER(WRITELINE(dec8_state, irqhandler))
2413   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", M6502_IRQ_LINE))
24222414   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70)
24232415MACHINE_CONFIG_END
24242416
r243161r243162
24752467   MCFG_SOUND_ROUTE(3, "mono", 0.50)
24762468
24772469   MCFG_SOUND_ADD("ym2", YM3812, 3000000)
2478   MCFG_YM3812_IRQ_HANDLER(WRITELINE(dec8_state, irqhandler))
2470   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", M6502_IRQ_LINE))
24792471   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70)
24802472MACHINE_CONFIG_END
24812473
trunk/src/mame/drivers/deniam.c
r243161r243162
221221GFXDECODE_END
222222
223223
224WRITE_LINE_MEMBER(deniam_state::irqhandler)
225{
226   /* system 16c doesn't have the sound CPU */
227   if (m_audiocpu != NULL)
228      m_audiocpu->set_input_line(0, state);
229}
230
231
232
233224void deniam_state::machine_start()
234225{
235226   save_item(NAME(m_display_enable));
r243161r243162
289280   MCFG_SPEAKER_STANDARD_MONO("mono")
290281
291282   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_25MHz/6) /* "SM64" ym3812 clone; 4.166470 measured, = 4.166666Mhz verified */
292   MCFG_YM3812_IRQ_HANDLER(WRITELINE(deniam_state, irqhandler))
283   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
293284   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
294285
295286   MCFG_OKIM6295_ADD("oki", XTAL_25MHz/24, OKIM6295_PIN7_HIGH) /* 1.041620 measured, = 1.0416666Mhz verified */
r243161r243162
322313   MCFG_SPEAKER_STANDARD_MONO("mono")
323314
324315   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_25MHz/6) /* "SM64" ym3812 clone; 4.166470 measured, = 4.166666Mhz verified) */
325   MCFG_YM3812_IRQ_HANDLER(WRITELINE(deniam_state, irqhandler))
326316   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
327317
328318   MCFG_OKIM6295_ADD("oki", XTAL_25MHz/24, OKIM6295_PIN7_HIGH)  /* 1.041620 measured, = 1.0416666Mhz verified */
trunk/src/mame/drivers/fuukifg2.c
r243161r243162
381381
382382***************************************************************************/
383383
384WRITE_LINE_MEMBER(fuuki16_state::soundirq)
385{
386   m_audiocpu->set_input_line(0, state);
387}
388
389384/*
390385    - Interrupts (pbancho) -
391386
r243161r243162
475470   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.15)
476471
477472   MCFG_SOUND_ADD("ym2", YM3812, XTAL_28_64MHz / 8) /* 3.58 MHz */
478   MCFG_YM3812_IRQ_HANDLER(WRITELINE(fuuki16_state, soundirq))
473   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
479474   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.30)
480475   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.30)
481476
trunk/src/mame/drivers/fuukifg3.c
r243161r243162
540540}
541541
542542
543WRITE_LINE_MEMBER(fuuki32_state::irqhandler)
544{
545   m_soundcpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE);
546}
547
548543static MACHINE_CONFIG_START(fuuki32, fuuki32_state)
549544
550545   /* basic machine hardware */
r243161r243162
575570   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
576571
577572   MCFG_SOUND_ADD("ymf1", YMF278B, YMF278B_STD_CLOCK) // 33.8688MHz
578   MCFG_YMF278B_IRQ_HANDLER(WRITELINE(fuuki32_state, irqhandler))
573   MCFG_YMF278B_IRQ_HANDLER(INPUTLINE("soundcpu", 0))
579574   MCFG_SOUND_ROUTE(0, "lspeaker", 0.50)
580575   MCFG_SOUND_ROUTE(1, "rspeaker", 0.50)
581576
trunk/src/mame/drivers/galspnbl.c
r243161r243162
204204GFXDECODE_END
205205
206206
207
208WRITE_LINE_MEMBER(galspnbl_state::irqhandler)
209{
210   m_audiocpu->set_input_line(0, state);
211}
212
213
214207void galspnbl_state::machine_start()
215208{
216209}
r243161r243162
252245   MCFG_SPEAKER_STANDARD_MONO("mono")
253246
254247   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_4MHz) /* Use value from Super Pinball Action - NEEDS VERIFICATION!! */
255   MCFG_YM3812_IRQ_HANDLER(WRITELINE(galspnbl_state, irqhandler))
248   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
256249   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
257250
258251   MCFG_OKIM6295_ADD("oki", XTAL_4MHz/4, OKIM6295_PIN7_HIGH) /* Use value from Super Pinball Action - clock frequency & pin 7 not verified */
trunk/src/mame/drivers/hcastle.c
r243161r243162
152152
153153/*****************************************************************************/
154154
155WRITE_LINE_MEMBER(hcastle_state::irqhandler)
156{
157//  m_audiocpu->set_input_line(state);
158}
159
160155WRITE8_MEMBER(hcastle_state::volume_callback)
161156{
162157   m_k007232->set_volume(0, (data >> 4) * 0x11, 0);
r243161r243162
229224   MCFG_SOUND_ROUTE(1, "mono", 0.50)
230225
231226   MCFG_SOUND_ADD("ymsnd", YM3812, 3579545)
232   MCFG_YM3812_IRQ_HANDLER(WRITELINE(hcastle_state, irqhandler))
227   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", INPUT_LINE_NMI)) /* from schematic; NMI handler is just a retn */
233228   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70)
234229
235230   MCFG_K051649_ADD("k051649", 3579545/2)
trunk/src/mame/drivers/itech8.c
r243161r243162
583583}
584584
585585
586WRITE_LINE_MEMBER(itech8_state::generate_sound_irq)
587{
588   m_soundcpu->set_input_line(M6809_FIRQ_LINE, state ? ASSERT_LINE : CLEAR_LINE);
589}
590586
591
592
593587/*************************************
594588 *
595589 *  Machine initialization
r243161r243162
16551649
16561650   /* sound hardware */
16571651   MCFG_SOUND_ADD("ymsnd", YM2203, CLOCK_8MHz/2)
1658   MCFG_YM2203_IRQ_HANDLER(WRITELINE(itech8_state, generate_sound_irq))
1652   MCFG_YM2203_IRQ_HANDLER(INPUTLINE("soundcpu", M6809_FIRQ_LINE))
16591653   MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(itech8_state, ym2203_portb_out))
16601654   MCFG_SOUND_ROUTE(0, "mono", 0.07)
16611655   MCFG_SOUND_ROUTE(1, "mono", 0.07)
r243161r243162
16751669
16761670   /* sound hardware */
16771671   MCFG_SOUND_ADD("ymsnd", YM2608, CLOCK_8MHz)
1678   MCFG_YM2608_IRQ_HANDLER(WRITELINE(itech8_state, generate_sound_irq))
1672   MCFG_YM2608_IRQ_HANDLER(INPUTLINE("soundcpu", M6809_FIRQ_LINE))
16791673   MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(itech8_state, ym2203_portb_out))
16801674   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
16811675MACHINE_CONFIG_END
r243161r243162
16941688
16951689   /* sound hardware */
16961690   MCFG_SOUND_ADD("ymsnd", YM3812, CLOCK_8MHz/2)
1697   MCFG_YM3812_IRQ_HANDLER(WRITELINE(itech8_state, generate_sound_irq))
1691   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("soundcpu", M6809_FIRQ_LINE))
16981692   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
16991693
17001694   MCFG_OKIM6295_ADD("oki", CLOCK_8MHz/8, OKIM6295_PIN7_HIGH) // was /128, not /132, so unsure so pin 7 not verified
r243161r243162
17101704
17111705   /* sound hardware */
17121706   MCFG_SOUND_ADD("ymsnd", YM3812, CLOCK_8MHz/2)
1713   MCFG_YM3812_IRQ_HANDLER(WRITELINE(itech8_state, generate_sound_irq))
1707   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("soundcpu", M6809_FIRQ_LINE))
17141708   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
17151709
17161710   MCFG_OKIM6295_ADD("oki", CLOCK_8MHz/8, OKIM6295_PIN7_HIGH) // was /128, not /132, so unsure so pin 7 not verified
trunk/src/mame/drivers/lordgun.c
r243161r243162
622622
623623***************************************************************************/
624624
625WRITE_LINE_MEMBER(lordgun_state::soundirq)
626{
627   m_soundcpu->set_input_line(INPUT_LINE_IRQ0, state ? ASSERT_LINE : CLEAR_LINE);
628}
629
630625static MACHINE_CONFIG_START( lordgun, lordgun_state )
631626   MCFG_CPU_ADD("maincpu", M68000, XTAL_20MHz / 2)
632627   MCFG_CPU_PROGRAM_MAP(lordgun_map)
r243161r243162
668663   MCFG_SPEAKER_STANDARD_MONO("mono")
669664
670665   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_3_579545MHz)
671   MCFG_YM3812_IRQ_HANDLER(WRITELINE(lordgun_state, soundirq))
666   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("soundcpu", 0))
672667   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
673668
674669   MCFG_OKIM6295_ADD("oki", XTAL_20MHz / 20, OKIM6295_PIN7_HIGH)   // ? 5MHz can't be right!
r243161r243162
718713
719714   MCFG_SOUND_ADD("ymf", YMF278B, 26000000)            // ? 26MHz matches video (decrease for faster music tempo)
720715   MCFG_DEVICE_ADDRESS_MAP(AS_0, ymf278_map)
721   MCFG_YMF278B_IRQ_HANDLER(WRITELINE(lordgun_state, soundirq))
716   MCFG_YMF278B_IRQ_HANDLER(INPUTLINE("soundcpu", 0))
722717   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
723718
724719   MCFG_OKIM6295_ADD("oki", XTAL_20MHz / 20, OKIM6295_PIN7_HIGH)   // ? 5MHz can't be right
trunk/src/mame/drivers/metro.c
r243161r243162
255255   update_irq_state();
256256}
257257
258WRITE_LINE_MEMBER(metro_state::ymf278b_interrupt)
259{
260   m_maincpu->set_input_line(2, state ? ASSERT_LINE : CLEAR_LINE);
261}
262
263
264258/***************************************************************************
265259
266260
r243161r243162
16081602   membank("bank1")->set_base(&RAM[bankaddress]);
16091603}
16101604
1611WRITE_LINE_MEMBER(metro_state::blzntrnd_irqhandler)
1612{
1613   m_audiocpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE);
1614}
1615
16161605static ADDRESS_MAP_START( blzntrnd_sound_map, AS_PROGRAM, 8, metro_state )
16171606   AM_RANGE(0x0000, 0x7fff) AM_ROM
16181607   AM_RANGE(0x8000, 0xbfff) AM_ROMBANK("bank1")
r243161r243162
36603649
36613650   MCFG_SOUND_ADD("ymf", YMF278B, YMF278B_STD_CLOCK)
36623651   MCFG_DEVICE_ADDRESS_MAP(AS_0, ymf278_map)
3663   MCFG_YMF278B_IRQ_HANDLER(WRITELINE(metro_state, ymf278b_interrupt))
3652   MCFG_YMF278B_IRQ_HANDLER(INPUTLINE("maincpu", 2))
36643653   MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
36653654   MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
36663655MACHINE_CONFIG_END
r243161r243162
43844373   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
43854374
43864375   MCFG_SOUND_ADD("ymsnd", YM2610, XTAL_16MHz/2)
4387   MCFG_YM2610_IRQ_HANDLER(WRITELINE(metro_state, blzntrnd_irqhandler))
4376   MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
43884377   MCFG_SOUND_ROUTE(0, "lspeaker",  0.25)
43894378   MCFG_SOUND_ROUTE(0, "rspeaker", 0.25)
43904379   MCFG_SOUND_ROUTE(1, "lspeaker",  1.0)
trunk/src/mame/drivers/nemesis.c
r243161r243162
14251425
14261426/******************************************************************************/
14271427
1428WRITE_LINE_MEMBER(nemesis_state::sound_irq)
1429{
1430/* Interrupts _are_ generated, I wonder where they go.. */
1431// m_audiocpu->set_input_line(0, HOLD_LINE);
1432}
1433
14341428WRITE8_MEMBER(nemesis_state::volume_callback)
14351429{
14361430   m_k007232->set_volume(0, (data >> 4) * 0x11, 0);
r243161r243162
18211815   MCFG_SOUND_ROUTE(1, "rspeaker", 0.30)
18221816
18231817   MCFG_SOUND_ADD("ymsnd", YM3812, 3579545)
1824   MCFG_YM3812_IRQ_HANDLER(WRITELINE(nemesis_state, sound_irq))
1818//  MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) ... Interrupts _are_ generated, I wonder where they go
18251819   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0)
18261820   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0)
18271821
r243161r243162
18681862   MCFG_SOUND_ROUTE(1, "rspeaker", 0.30)
18691863
18701864   MCFG_SOUND_ADD("ymsnd", YM3812, 3579545)
1871   MCFG_YM3812_IRQ_HANDLER(WRITELINE(nemesis_state, sound_irq))
1865//  MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) ... Interrupts _are_ generated, I wonder where they go
18721866   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0)
18731867   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0)
18741868
trunk/src/mame/drivers/nmg5.c
r243161r243162
287287   virtual void video_start();
288288   UINT32 screen_update_nmg5(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
289289   void draw_bitmap( bitmap_ind16 &bitmap );
290   DECLARE_WRITE_LINE_MEMBER(soundirq);
291290};
292291
293292
r243161r243162
952951GFXDECODE_END
953952
954953
955WRITE_LINE_MEMBER(nmg5_state::soundirq)
956{
957   m_soundcpu->set_input_line(0, state);
958}
959
960954void nmg5_state::machine_start()
961955{
962956   save_item(NAME(m_gfx_bank));
r243161r243162
10111005   MCFG_SPEAKER_STANDARD_MONO("mono")
10121006
10131007   MCFG_SOUND_ADD("ymsnd", YM3812, 4000000) /* 4MHz */
1014   MCFG_YM3812_IRQ_HANDLER(WRITELINE(nmg5_state, soundirq))
1008   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("soundcpu", 0))
10151009   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
10161010
10171011   MCFG_OKIM6295_ADD("oki", 1000000 , OKIM6295_PIN7_HIGH)
trunk/src/mame/drivers/oneshot.c
r243161r243162
327327   GFXDECODE_ENTRY( "gfx1", 0, oneshot8x8_layout,     0x00, 4  ) /* sprites */
328328GFXDECODE_END
329329
330WRITE_LINE_MEMBER(oneshot_state::irqhandler)
331{
332   m_audiocpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE);
333}
334
335330void oneshot_state::machine_start()
336331{
337332   save_item(NAME(m_gun_x_p1));
r243161r243162
381376   MCFG_SPEAKER_STANDARD_MONO("mono")
382377
383378   MCFG_SOUND_ADD("ymsnd", YM3812, 3500000)
384   MCFG_YM3812_IRQ_HANDLER(WRITELINE(oneshot_state, irqhandler))
379   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
385380   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
386381
387382   MCFG_OKIM6295_ADD("oki", 1056000, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified
trunk/src/mame/drivers/onetwo.c
r243161r243162
8484   virtual void video_start();
8585   UINT32 screen_update_onetwo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
8686   void set_color(int offset);
87   DECLARE_WRITE_LINE_MEMBER(irqhandler);
8887};
8988
9089
r243161r243162
331330   GFXDECODE_ENTRY( "gfx1", 0, tiles8x8x6_layout, 0, 2 )
332331GFXDECODE_END
333332
334/*************************************
335 *
336 *  Sound interface
337 *
338 *************************************/
339333
340WRITE_LINE_MEMBER(onetwo_state::irqhandler)
341{
342   m_audiocpu->set_input_line(0, state);
343}
344
345334/*************************************
346335 *
347336 *  Machine driver
r243161r243162
386375   MCFG_SPEAKER_STANDARD_MONO("mono")
387376
388377   MCFG_SOUND_ADD("ymsnd", YM3812, MASTER_CLOCK)
389   MCFG_YM3812_IRQ_HANDLER(WRITELINE(onetwo_state, irqhandler))
378   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
390379   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
391380
392381   MCFG_OKIM6295_ADD("oki", 1056000*2, OKIM6295_PIN7_LOW) // clock frequency & pin 7 not verified
trunk/src/mame/drivers/prehisle.c
r243161r243162
190190
191191/******************************************************************************/
192192
193WRITE_LINE_MEMBER(prehisle_state::irqhandler)
194{
195   m_audiocpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE);
196}
197
198/******************************************************************************/
199
200193static MACHINE_CONFIG_START( prehisle, prehisle_state )
201194
202195   /* basic machine hardware */
r243161r243162
226219   MCFG_SPEAKER_STANDARD_MONO("mono")
227220
228221   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_4MHz)  /* verified on pcb */
229   MCFG_YM3812_IRQ_HANDLER(WRITELINE(prehisle_state, irqhandler))
222   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
230223   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
231224
232225   MCFG_SOUND_ADD("upd", UPD7759, UPD7759_STANDARD_CLOCK)
trunk/src/mame/drivers/psikyo.c
r243161r243162
378378
379379***************************************************************************/
380380
381WRITE_LINE_MEMBER(psikyo_state::sound_irq)
382{
383   m_audiocpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE);
384}
385
386381READ8_MEMBER(psikyo_state::psikyo_soundlatch_r)
387382{
388383   return m_soundlatch;
r243161r243162
10611056   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
10621057
10631058   MCFG_SOUND_ADD("ymsnd", YM2610, XTAL_32MHz/4) /* verified on pcb */
1064   MCFG_YM2610_IRQ_HANDLER(WRITELINE(psikyo_state, sound_irq))
1059   MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
10651060   MCFG_SOUND_ROUTE(0, "lspeaker",  1.2)
10661061   MCFG_SOUND_ROUTE(0, "rspeaker", 1.2)
10671062   MCFG_SOUND_ROUTE(1, "lspeaker",  1.0)
r243161r243162
11071102   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
11081103
11091104   MCFG_SOUND_ADD("ymsnd", YM2610, 8000000)
1110   MCFG_YM2610_IRQ_HANDLER(WRITELINE(psikyo_state, sound_irq))
1105   MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
11111106   MCFG_SOUND_ROUTE(0, "lspeaker",  1.2)
11121107   MCFG_SOUND_ROUTE(0, "rspeaker", 1.2)
11131108   MCFG_SOUND_ROUTE(1, "lspeaker",  1.0)
r243161r243162
11531148***************************************************************************/
11541149
11551150
1156WRITE_LINE_MEMBER(psikyo_state::irqhandler)
1157{
1158   m_audiocpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE);
1159}
1160
11611151static MACHINE_CONFIG_START( s1945, psikyo_state )
11621152
11631153   /* basic machine hardware */
r243161r243162
11921182   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
11931183
11941184   MCFG_SOUND_ADD("ymf", YMF278B, YMF278B_STD_CLOCK)
1195   MCFG_YMF278B_IRQ_HANDLER(WRITELINE(psikyo_state, irqhandler))
1185   MCFG_YMF278B_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
11961186   MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
11971187   MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
11981188MACHINE_CONFIG_END
r243161r243162
12311221   ROM_LOAD32_WORD_SWAP( "4-u127.bin", 0x000000, 0x040000, CRC(8c9911ca) SHA1(821ba648b9a1d495c600cbf4606f2dbddc6f9e6f) ) // 1&0
12321222   ROM_LOAD32_WORD_SWAP( "5-u126.bin", 0x000002, 0x040000, CRC(d20c3ef0) SHA1(264e5a7e45e130a9e7152468733337668dc5b65f) ) // 3&2
12331223
1234   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1224   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
12351225   ROM_LOAD( "3-u58.bin", 0x00000, 0x20000, CRC(310f5c76) SHA1(dbfd1c5a7a514bccd89fc4f7191744cf76bb745d) )
1236   ROM_RELOAD(            0x10000, 0x20000             )
12371226
12381227   ROM_REGION( 0x200000, "gfx1", 0 )   /* Sprites */
12391228   ROM_LOAD( "u14.bin",  0x000000, 0x200000, CRC(00a546cb) SHA1(30a8679b49928d5fcbe58b5eecc2ebd08173adf8) )
r243161r243162
12561245   ROM_LOAD32_WORD_SWAP( "1-u127.bin", 0x000000, 0x040000, CRC(6c45b2f8) SHA1(08473297e174f3a6d67043f3b16f4e6b9c68b826) ) // 1&0
12571246   ROM_LOAD32_WORD_SWAP( "2-u126.bin", 0x000002, 0x040000, CRC(845a6760) SHA1(3b8fed294e28d9d8ef5cb5ec88b9ade396146a48) ) // 3&2
12581247
1259   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1248   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
12601249   ROM_LOAD( "3-u58.bin", 0x00000, 0x20000, CRC(310f5c76) SHA1(dbfd1c5a7a514bccd89fc4f7191744cf76bb745d) )
1261   ROM_RELOAD(            0x10000, 0x20000             )
12621250
12631251   ROM_REGION( 0x200000, "gfx1", 0 )   /* Sprites */
12641252   ROM_LOAD( "u14.bin",  0x000000, 0x200000, CRC(00a546cb) SHA1(30a8679b49928d5fcbe58b5eecc2ebd08173adf8) )
r243161r243162
13001288   ROM_LOAD32_WORD_SWAP( "4.u46", 0x000000, 0x040000, CRC(b78ec99d) SHA1(399b79931652d9df1632cd4d7ec3d214e473a5c3) ) // 1&0
13011289   ROM_LOAD32_WORD_SWAP( "5.u39", 0x000002, 0x040000, CRC(925f095d) SHA1(301a536119a0320a756e9c6e51fb10e36b90ef16) ) // 3&2
13021290
1303   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1291   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
13041292   ROM_LOAD( "3.u71",     0x00000, 0x20000, CRC(2168e4ba) SHA1(ca7ad6acb5f806ce2528e7b52c19e8cceecb8543) )
1305   ROM_RELOAD(            0x10000, 0x20000             )
13061293
13071294   ROM_REGION( 0x700000, "gfx1", 0 )   /* Sprites */
13081295   ROM_LOAD( "u14.bin",  0x000000, 0x200000, CRC(7d7e8a00) SHA1(9f35f5b54ae928e9bf2aa6ad4604f669857955ec) )
r243161r243162
13331320   ROM_LOAD32_WORD_SWAP( "1k.u46", 0x000000, 0x080000, CRC(745cee52) SHA1(6c5bb92c92c55f882484417bc1aa580684019610) ) // 1&0
13341321   ROM_LOAD32_WORD_SWAP( "2k.u39", 0x000002, 0x080000, CRC(669632fb) SHA1(885dea42e6da35e9166a208b18dbd930642c26cd) ) // 3&2
13351322
1336   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1323   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
13371324   ROM_LOAD( "k3.u71",    0x00000, 0x20000, CRC(11994055) SHA1(619776c178361f23de37ff14e87284ec0f1f4f10) )
1338   ROM_RELOAD(            0x10000, 0x20000             )
13391325
13401326   ROM_REGION( 0x700000, "gfx1", 0 )   /* Sprites */
13411327   ROM_LOAD( "u14.bin",  0x000000, 0x200000, CRC(7d7e8a00) SHA1(9f35f5b54ae928e9bf2aa6ad4604f669857955ec) )
r243161r243162
13631349   ROM_LOAD32_WORD_SWAP( "1.u46", 0x000000, 0x040000, CRC(474abd69) SHA1(27f37333075f9c92849101aad4875e69004d747b) ) // 1&0
13641350   ROM_LOAD32_WORD_SWAP( "2.u39", 0x000002, 0x040000, CRC(3e3e661f) SHA1(b5648546f390539b0f727a9a62d1b9516254ae21) ) // 3&2
13651351
1366   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1352   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
13671353   ROM_LOAD( "3.u71",     0x00000, 0x20000, CRC(2168e4ba) SHA1(ca7ad6acb5f806ce2528e7b52c19e8cceecb8543) )
1368   ROM_RELOAD(            0x10000, 0x20000             )
13691354
13701355   ROM_REGION( 0x700000, "gfx1", 0 )   /* Sprites */
13711356   ROM_LOAD( "u14.bin",  0x000000, 0x200000, CRC(7d7e8a00) SHA1(9f35f5b54ae928e9bf2aa6ad4604f669857955ec) )
r243161r243162
13941379   ROM_LOAD32_WORD_SWAP( "4-u46.bin", 0x000000, 0x040000, CRC(8a7a28b4) SHA1(f7197be673dfd0ddf46998af81792b81d8fe9fbf) ) // 1&0
13951380   ROM_LOAD32_WORD_SWAP( "5-u39.bin", 0x000002, 0x040000, CRC(933561fa) SHA1(f6f3b1e14b1cfeca26ef8260ac4771dc1531c357) ) // 3&2
13961381
1397   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1382   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
13981383   ROM_LOAD( "3-u71.bin", 0x00000, 0x20000, CRC(22411fab) SHA1(1094cb51712e40ae65d0082b408572bdec06ae8b) )
1399   ROM_RELOAD(            0x10000, 0x20000             )
14001384
14011385   ROM_REGION( 0x700000, "gfx1", 0 )   /* Sprites */
14021386   ROM_LOAD( "u14.bin",  0x000000, 0x200000, CRC(282d89c3) SHA1(3b4b17f4a37efa2f7e232488aaba7c77d10c84d2) )
r243161r243162
14431427   ROM_LOAD32_WORD_SWAP( "1-u46.bin", 0x000000, 0x080000, CRC(45fa8086) SHA1(f1753b9420596f4b828c77e877a044ba5fb01b28) ) // 1&0
14441428   ROM_LOAD32_WORD_SWAP( "2-u39.bin", 0x000002, 0x080000, CRC(0152ab8c) SHA1(2aef4cb88341b35f20bb551716f1e5ac2731e9ba) ) // 3&2
14451429
1446   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1430   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
14471431   ROM_LOAD( "3-u71.bin", 0x00000, 0x20000, CRC(e3e366bd) SHA1(1f5b5909745802e263a896265ea365df76d3eaa5) )
1448   ROM_RELOAD(            0x10000, 0x20000             )
14491432
14501433   ROM_REGION( 0x800000, "gfx1", 0 )   /* Sprites */
14511434   ROM_LOAD( "u20.bin",  0x000000, 0x200000, CRC(28a27fee) SHA1(913f3bc4d0c6fb6b776a020c8099bf96f16fd06f) )
r243161r243162
15741557   ROM_LOAD32_WORD_SWAP( "2s.u40", 0x000000, 0x040000, CRC(9b10062a) SHA1(cf963bba157422b659d8d64b4493eb7d69cd07b7) ) // 1&0
15751558   ROM_LOAD32_WORD_SWAP( "3s.u41", 0x000002, 0x040000, CRC(f87e871a) SHA1(567167c7fcfb622f78e211d74b04060c3d29d6b7) ) // 3&2
15761559
1577   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1560   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
15781561   ROM_LOAD( "3-u63.bin", 0x00000, 0x20000, CRC(42d40ae1) SHA1(530a5a3f78ac489b84a631ea6ce21010a4f4d31b) )
1579   ROM_RELOAD(            0x10000, 0x20000             )
15801562
15811563   ROM_REGION( 0x000100, "cpu2", 0 )       /* MCU? */
15821564   ROM_LOAD( "4-u59.bin", 0x00000, 0x00100, NO_DUMP )
r243161r243162
16041586   ROM_LOAD32_WORD_SWAP( "4-u40.bin", 0x000000, 0x040000, CRC(29ffc217) SHA1(12dc3cb32253c3908f4c440c627a0e1b32ee7cac) ) // 1&0
16051587   ROM_LOAD32_WORD_SWAP( "5-u41.bin", 0x000002, 0x040000, CRC(c3d3fb64) SHA1(4388586bc0a6f3d62366b3c38b8b23f8a03dbf15) ) // 3&2
16061588
1607   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1589   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
16081590   ROM_LOAD( "3-u63.bin", 0x00000, 0x20000, CRC(42d40ae1) SHA1(530a5a3f78ac489b84a631ea6ce21010a4f4d31b) )
1609   ROM_RELOAD(            0x10000, 0x20000             )
16101591
16111592   ROM_REGION( 0x000100, "cpu2", 0 )       /* MCU? */
16121593   ROM_LOAD( "4-u59.bin", 0x00000, 0x00100, NO_DUMP )
r243161r243162
16341615   ROM_LOAD32_WORD_SWAP( "1-u40.bin", 0x000000, 0x040000, CRC(c00eb012) SHA1(080dae010ca83548ebdb3324585d15e48baf0541) ) // 1&0
16351616   ROM_LOAD32_WORD_SWAP( "2-u41.bin", 0x000002, 0x040000, CRC(3f5a134b) SHA1(18bb3bb1e1adadcf522795f5cf7d4dc5a5dd1f30) ) // 3&2
16361617
1637   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1618   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
16381619   ROM_LOAD( "3-u63.bin", 0x00000, 0x20000, CRC(42d40ae1) SHA1(530a5a3f78ac489b84a631ea6ce21010a4f4d31b) )
1639   ROM_RELOAD(            0x10000, 0x20000             )
16401620
16411621   ROM_REGION( 0x000100, "cpu2", 0 )       /* MCU */
16421622   ROM_LOAD( "4-u59.bin", 0x00000, 0x00100, NO_DUMP )
r243161r243162
16641644   ROM_LOAD32_WORD_SWAP( "10.u40", 0x000000, 0x040000, CRC(5a32af36) SHA1(2eada37fd043c097a11bcf4e3e0bebb473bbc0df) ) // 1&0
16651645   ROM_LOAD32_WORD_SWAP( "9.u41",  0x000002, 0x040000, CRC(29cc6d7d) SHA1(aeee9e88922c25c75885483d115e064c6b71540b) ) // 3&2
16661646
1667   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1647   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
16681648   ROM_LOAD( "3-u63.bin", 0x00000, 0x20000, CRC(42d40ae1) SHA1(530a5a3f78ac489b84a631ea6ce21010a4f4d31b) )
1669   ROM_RELOAD(            0x10000, 0x20000             )
16701649
16711650   ROM_REGION( 0x000100, "cpu2", 0 )       /* MCU */
16721651   ROM_LOAD( "4-u59.bin", 0x00000, 0x00100, NO_DUMP )
r243161r243162
17161695   ROM_LOAD32_WORD_SWAP( "5-u40.bin", 0x000000, 0x080000, CRC(90088195) SHA1(8ec48d581ecd14b3dad36edc65d5a273324cf3c1) ) // 1&0
17171696   ROM_LOAD32_WORD_SWAP( "4-u41.bin", 0x000002, 0x080000, CRC(0d53196c) SHA1(454bb4695b13ce44ca5dac7c6d4142a8b9afa798) ) // 3&2
17181697
1719   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1698   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
17201699   ROM_LOAD( "1-u63.bin", 0x00000, 0x20000, CRC(2025e387) SHA1(334b0eb3b416d46ccaadff3eee6f1abba63285fb) )
1721   ROM_RELOAD(            0x10000, 0x20000             )
17221700
17231701   ROM_REGION( 0x000100, "cpu2", 0 )       /* MCU */
17241702   ROM_LOAD( "4-u59.bin", 0x00000, 0x00100, NO_DUMP )
r243161r243162
17461724   ROM_LOAD32_WORD_SWAP( "2-u40.bin", 0x000000, 0x080000, CRC(ab6fe58a) SHA1(6687a3af192b3eab60d75ca286ebb8e0636297b5) ) // 1&0
17471725   ROM_LOAD32_WORD_SWAP( "3-u41.bin", 0x000002, 0x080000, CRC(02e42e39) SHA1(6cdb7b1cebab50c0a44cd60cd437f0e878ccac5c) ) // 3&2
17481726
1749   ROM_REGION( 0x030000, "audiocpu", 0 )       /* Sound CPU Code */
1727   ROM_REGION( 0x020000, "audiocpu", 0 )       /* Sound CPU Code */
17501728   ROM_LOAD( "1-u63.bin", 0x00000, 0x20000, CRC(2025e387) SHA1(334b0eb3b416d46ccaadff3eee6f1abba63285fb) )
1751   ROM_RELOAD(            0x10000, 0x20000             )
17521729
17531730   ROM_REGION( 0x000100, "cpu2", 0 )       /* MCU */
17541731   ROM_LOAD( "4-u59.bin", 0x00000, 0x00100, NO_DUMP )
r243161r243162
18021779   m_ka302c_banking = 0; // SH201B doesn't have any gfx banking
18031780
18041781   /* setup audiocpu banks */
1805   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x10000, 0x8000);
1782   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base(), 0x8000);
18061783
18071784   /* Enable other regions */
18081785#if 0
r243161r243162
18591836
18601837   /* setup audiocpu banks */
18611838   /* The banked rom is seen at 8200-ffff, so the last 0x200 bytes of the rom not reachable. */
1862   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x10000 + 0x200, 0x8000);
1839   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x200, 0x8000);
18631840}
18641841
18651842DRIVER_INIT_MEMBER(psikyo_state,gunbird)
r243161r243162
18741851
18751852   /* setup audiocpu banks */
18761853   /* The banked rom is seen at 8200-ffff, so the last 0x200 bytes of the rom not reachable. */
1877   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x10000 + 0x200, 0x8000);
1854   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x200, 0x8000);
18781855}
18791856
18801857
r243161r243162
18961873
18971874   /* setup audiocpu banks */
18981875   /* The banked rom is seen at 8200-ffff, so the last 0x200 bytes of the rom not reachable. */
1899   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x10000 + 0x200, 0x8000);
1876   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x200, 0x8000);
19001877}
19011878
19021879DRIVER_INIT_MEMBER(psikyo_state,s1945a)
r243161r243162
19171894
19181895   /* setup audiocpu banks */
19191896   /* The banked rom is seen at 8200-ffff, so the last 0x200 bytes of the rom not reachable. */
1920   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x10000 + 0x200, 0x8000);
1897   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x200, 0x8000);
19211898}
19221899
19231900DRIVER_INIT_MEMBER(psikyo_state,s1945j)
r243161r243162
19381915
19391916   /* setup audiocpu banks */
19401917   /* The banked rom is seen at 8200-ffff, so the last 0x200 bytes of the rom not reachable. */
1941   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x10000 + 0x200, 0x8000);
1918   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x200, 0x8000);
19421919}
19431920
19441921DRIVER_INIT_MEMBER(psikyo_state,s1945jn)
r243161r243162
19531930
19541931   /* setup audiocpu banks */
19551932   /* The banked rom is seen at 8200-ffff, so the last 0x200 bytes of the rom not reachable. */
1956   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x10000 + 0x200, 0x8000);
1933   membank("bank1")->configure_entries(0, 4, memregion("audiocpu")->base() + 0x200, 0x8000);
19571934}
19581935
19591936DRIVER_INIT_MEMBER(psikyo_state,s1945bl)
trunk/src/mame/drivers/psikyo4.c
r243161r243162
616616INPUT_PORTS_END
617617
618618
619WRITE_LINE_MEMBER(psikyo4_state::irqhandler)
620{
621   m_maincpu->set_input_line(12, state ? ASSERT_LINE : CLEAR_LINE);
622}
623
624
625619void psikyo4_state::machine_start()
626620{
627621   // configure YMF ROM banks
r243161r243162
693687
694688   MCFG_SOUND_ADD("ymf", YMF278B, MASTER_CLOCK/2)
695689   MCFG_DEVICE_ADDRESS_MAP(AS_0, ps4_ymf_map)
696   MCFG_YMF278B_IRQ_HANDLER(WRITELINE(psikyo4_state, irqhandler))
690   MCFG_YMF278B_IRQ_HANDLER(INPUTLINE("maincpu", 12))
697691   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0)
698692   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0)
699693MACHINE_CONFIG_END
trunk/src/mame/drivers/psikyosh.c
r243161r243162
756756INPUT_PORTS_END
757757
758758
759WRITE_LINE_MEMBER(psikyosh_state::irqhandler)
760{
761   m_maincpu->set_input_line(12, state ? ASSERT_LINE : CLEAR_LINE);
762}
763
764
765759void psikyosh_state::machine_start()
766760{
767761   membank("gfxbank")->configure_entries(0, 0x1000, memregion("gfx1")->base(), 0x20000);
r243161r243162
799793   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
800794
801795   MCFG_SOUND_ADD("ymf", YMF278B, MASTER_CLOCK/2)
802   MCFG_YMF278B_IRQ_HANDLER(WRITELINE(psikyosh_state, irqhandler))
796   MCFG_YMF278B_IRQ_HANDLER(INPUTLINE("maincpu", 12))
803797   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0)
804798   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0)
805799MACHINE_CONFIG_END
trunk/src/mame/drivers/snk68.c
r243161r243162
569569
570570/******************************************************************************/
571571
572WRITE_LINE_MEMBER(snk68_state::irqhandler)
573{
574   m_soundcpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE);
575}
576
577/******************************************************************************/
578
579572static MACHINE_CONFIG_START( pow, snk68_state )
580573
581574   /* basic machine hardware */
r243161r243162
604597   MCFG_SPEAKER_STANDARD_MONO("mono")
605598
606599   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_8MHz/2) /* verified on pcb  */
607   MCFG_YM3812_IRQ_HANDLER(WRITELINE(snk68_state, irqhandler))
600   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("soundcpu", 0))
608601   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
609602
610603   MCFG_SOUND_ADD("upd", UPD7759, UPD7759_STANDARD_CLOCK)
trunk/src/mame/drivers/snowbros.c
r243161r243162
15421542   GFXDECODE_ENTRY( "gfx1", 0, hyperpac_tilelayout,  0, 16 )
15431543GFXDECODE_END
15441544
1545/* handler called by the 3812/2151 emulator when the internal timers cause an IRQ */
1546WRITE_LINE_MEMBER(snowbros_state::irqhandler)
1547{
1548   m_soundcpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE);
1549}
1550
15511545MACHINE_RESET_MEMBER(snowbros_state,semiprot)
15521546{
15531547   UINT16 *PROTDATA = (UINT16*)memregion("user1")->base();
r243161r243162
15991593   MCFG_SPEAKER_STANDARD_MONO("mono")
16001594
16011595   MCFG_SOUND_ADD("ymsnd", YM3812, 3000000)
1602   MCFG_YM3812_IRQ_HANDLER(WRITELINE(snowbros_state, irqhandler))
1596   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("soundcpu", 0))
16031597   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
16041598MACHINE_CONFIG_END
16051599
r243161r243162
17111705   /* sound hardware */
17121706
17131707   MCFG_SOUND_ADD("ymsnd", YM3812, 3000000)
1714   MCFG_YM3812_IRQ_HANDLER(WRITELINE(snowbros_state, irqhandler))
1708   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("soundcpu", 0))
17151709   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
17161710
17171711
trunk/src/mame/drivers/spbactn.c
r243161r243162
402402GFXDECODE_END
403403
404404
405WRITE_LINE_MEMBER(spbactn_state::irqhandler)
406{
407   m_audiocpu->set_input_line(0, state);
408}
409
410405static MACHINE_CONFIG_START( spbactn, spbactn_state )
411406
412407   /* basic machine hardware */
r243161r243162
443438   MCFG_SPEAKER_STANDARD_MONO("mono")
444439
445440   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_4MHz) /* Was 3.579545MHz, a common clock, but no way to generate via on PCB OSCs */
446   MCFG_YM3812_IRQ_HANDLER(WRITELINE(spbactn_state, irqhandler))
441   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
447442   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
448443
449444   MCFG_OKIM6295_ADD("oki", XTAL_4MHz/4, OKIM6295_PIN7_HIGH) /* Was 1.056MHz, a common clock, but no way to generate via on PCB OSCs. clock frequency & pin 7 not verified */
r243161r243162
494489   MCFG_SPEAKER_STANDARD_MONO("mono")
495490
496491   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_4MHz)
497   MCFG_YM3812_IRQ_HANDLER(WRITELINE(spbactn_state, irqhandler))
492   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
498493   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
499494
500495   MCFG_OKIM6295_ADD("oki", XTAL_4MHz/4, OKIM6295_PIN7_HIGH)
trunk/src/mame/drivers/spdodgeb.c
r243161r243162
378378GFXDECODE_END
379379
380380
381WRITE_LINE_MEMBER(spdodgeb_state::irqhandler)
382{
383   m_audiocpu->set_input_line(M6809_FIRQ_LINE, state ? ASSERT_LINE : CLEAR_LINE);
384}
385
386381void spdodgeb_state::machine_reset()
387382{
388383   m_toggle = 0;
r243161r243162
421416   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
422417
423418   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_12MHz/4)
424   MCFG_YM3812_IRQ_HANDLER(WRITELINE(spdodgeb_state, irqhandler))
419   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", M6809_FIRQ_LINE))
425420   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0)
426421   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0)
427422
trunk/src/mame/drivers/spy.c
r243161r243162
458458   m_k007232_2->set_volume(1, 0, (data & 0x0f) * 0x11);
459459}
460460
461WRITE_LINE_MEMBER(spy_state::irqhandler)
462{
463   m_audiocpu->set_input_line(INPUT_LINE_NMI, state);
464}
465461
466
467462void spy_state::machine_start()
468463{
469464   UINT8 *ROM = memregion("maincpu")->base();
r243161r243162
528523   MCFG_SPEAKER_STANDARD_MONO("mono")
529524
530525   MCFG_SOUND_ADD("ymsnd", YM3812, 3579545)
531   MCFG_YM3812_IRQ_HANDLER(WRITELINE(spy_state, irqhandler))
526   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", INPUT_LINE_NMI))
532527   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
533528
534529   MCFG_SOUND_ADD("k007232_1", K007232, 3579545)
trunk/src/mame/drivers/suna8.c
r243161r243162
17791779
17801780***************************************************************************/
17811781
1782WRITE_LINE_MEMBER(suna8_state::soundirq)
1783{
1784   m_audiocpu->set_input_line(0, state);
1785}
1786
17871782/* In games with only 2 CPUs, port A&B of the AY8910 are used
17881783   for sample playing. */
17891784
r243161r243162
19501945   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
19511946
19521947   MCFG_SOUND_ADD("ymsnd", YM3812, SUNA8_MASTER_CLOCK / 6)
1953   MCFG_YM3812_IRQ_HANDLER(WRITELINE(suna8_state, soundirq))
1948   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
19541949   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0)
19551950   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0)
19561951
trunk/src/mame/drivers/tbowl.c
r243161r243162
423423
424424GFXDECODE_END
425425
426/*** Sound Bits
427426
428*/
429
430WRITE_LINE_MEMBER(tbowl_state::irqhandler)
431{
432   m_audiocpu->set_input_line(0, state);
433}
434
435
436427/*** Machine Driver
437428
438429there are 3 boards, each with a cpu, boards b and c contain
r243161r243162
500491   MCFG_SPEAKER_STANDARD_MONO("mono")
501492
502493   MCFG_SOUND_ADD("ym1", YM3812, 4000000)
503   MCFG_YM3812_IRQ_HANDLER(WRITELINE(tbowl_state, irqhandler))
494   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
504495   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
505496
506497   MCFG_SOUND_ADD("ym2", YM3812, 4000000)
trunk/src/mame/drivers/tecmo.c
r243161r243162
600600GFXDECODE_END
601601
602602
603
604WRITE_LINE_MEMBER(tecmo_state::irqhandler)
605{
606   m_soundcpu->set_input_line(0, state);
607}
608
609603MACHINE_RESET_MEMBER(tecmo_state,rygar)
610604{
611605   m_adpcm_pos = 0;
r243161r243162
647641   MCFG_SPEAKER_STANDARD_MONO("mono")
648642
649643   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_4MHz) /* verified on pcb */
650   MCFG_YM3812_IRQ_HANDLER(WRITELINE(tecmo_state, irqhandler))
644   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("soundcpu", 0))
651645   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
652646
653647   MCFG_SOUND_ADD("msm", MSM5205, XTAL_400kHz) /* verified on pcb, even if schematics shows a 384khz resonator */
r243161r243162
710704   MCFG_SPEAKER_STANDARD_MONO("mono")
711705
712706   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_4MHz) /* verified on pcb */
713   MCFG_YM3812_IRQ_HANDLER(WRITELINE(tecmo_state, irqhandler))
707   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("soundcpu", 0))
714708   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
715709
716710   /* no MSM on this PCB */
trunk/src/mame/drivers/toaplan1.c
r243161r243162
17601760GFXDECODE_END
17611761
17621762
1763WRITE_LINE_MEMBER(toaplan1_state::irqhandler)
1764{
1765   m_audiocpu->set_input_line(0, state);
1766}
1767
17681763#define PIXEL_CLOCK         (XTAL_28MHz/4)
17691764
17701765// HTOTAL and VTOTAL taken from CRTC registers (toaplan1_bcu_control_w)
r243161r243162
18161811   MCFG_SPEAKER_STANDARD_MONO("mono")
18171812
18181813   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_28MHz/8)
1819   MCFG_YM3812_IRQ_HANDLER(WRITELINE(toaplan1_state, irqhandler))
1814   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
18201815   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
18211816MACHINE_CONFIG_END
18221817
r243161r243162
18541849   MCFG_SPEAKER_STANDARD_MONO("mono")
18551850
18561851   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_28MHz/8)
1857   MCFG_YM3812_IRQ_HANDLER(WRITELINE(toaplan1_state, irqhandler))
1852   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
18581853   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
18591854MACHINE_CONFIG_END
18601855
r243161r243162
18921887   MCFG_SPEAKER_STANDARD_MONO("mono")
18931888
18941889   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_28MHz/8)
1895   MCFG_YM3812_IRQ_HANDLER(WRITELINE(toaplan1_state, irqhandler))
1890   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
18961891   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
18971892MACHINE_CONFIG_END
18981893
r243161r243162
19301925   MCFG_SPEAKER_STANDARD_MONO("mono")
19311926
19321927   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_28MHz/8)
1933   MCFG_YM3812_IRQ_HANDLER(WRITELINE(toaplan1_state, irqhandler))
1928   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
19341929   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
19351930MACHINE_CONFIG_END
19361931
r243161r243162
19721967   MCFG_SPEAKER_STANDARD_MONO("mono")
19731968
19741969   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_28MHz/8)
1975   MCFG_YM3812_IRQ_HANDLER(WRITELINE(toaplan1_state, irqhandler))
1970   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
19761971   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
19771972MACHINE_CONFIG_END
19781973
r243161r243162
20082003   MCFG_SPEAKER_STANDARD_MONO("mono")
20092004
20102005   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_28MHz/8)
2011   MCFG_YM3812_IRQ_HANDLER(WRITELINE(toaplan1_state, irqhandler))
2006   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
20122007   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
20132008MACHINE_CONFIG_END
20142009
r243161r243162
20462041   MCFG_SPEAKER_STANDARD_MONO("mono")
20472042
20482043   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_28MHz/8)
2049   MCFG_YM3812_IRQ_HANDLER(WRITELINE(toaplan1_state, irqhandler))
2044   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
20502045   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
20512046MACHINE_CONFIG_END
20522047
r243161r243162
20822077   MCFG_SPEAKER_STANDARD_MONO("mono")
20832078
20842079   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_28MHz/8)   /* verified on pcb */
2085   MCFG_YM3812_IRQ_HANDLER(WRITELINE(toaplan1_state, irqhandler))
2080   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
20862081   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
20872082MACHINE_CONFIG_END
20882083
trunk/src/mame/drivers/toaplan2.c
r243161r243162
30493049GFXDECODE_END
30503050
30513051
3052WRITE_LINE_MEMBER(toaplan2_state::irqhandler)
3053{
3054   if (m_audiocpu != NULL)       // wouldn't tekipaki have problem without this? "mcu" is not generally added
3055      m_audiocpu->set_input_line(0, state);
3056}
3057
30583052WRITE_LINE_MEMBER(toaplan2_state::bbakraid_irqhandler)
30593053{
30603054   // Not used ???  Connected to a test pin (TP082)
r243161r243162
31003094   MCFG_SPEAKER_STANDARD_MONO("mono")
31013095
31023096   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_27MHz/8)
3103   MCFG_YM3812_IRQ_HANDLER(WRITELINE(toaplan2_state, irqhandler))
3097#ifdef USE_HD64x180
3098   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
3099#endif
31043100   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
31053101MACHINE_CONFIG_END
31063102
r243161r243162
34113407   MCFG_SPEAKER_STANDARD_MONO("mono")
34123408
34133409   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_27MHz/8)           /* verified on pcb */
3414   MCFG_YM3812_IRQ_HANDLER(WRITELINE(toaplan2_state, irqhandler))
3410   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
34153411   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
34163412MACHINE_CONFIG_END
34173413
r243161r243162
34543450   MCFG_SPEAKER_STANDARD_MONO("mono")
34553451
34563452   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_27MHz/8)
3457   MCFG_YM3812_IRQ_HANDLER(WRITELINE(toaplan2_state, irqhandler))
3453   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
34583454   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
34593455MACHINE_CONFIG_END
34603456
trunk/src/mame/drivers/twincobr.c
r243161r243162
646646GFXDECODE_END
647647
648648
649
650
651/* handler called by the 3812 emulator when the internal timers cause an IRQ */
652WRITE_LINE_MEMBER(twincobr_state::irqhandler)
653{
654   m_audiocpu->set_input_line(0, state);
655}
656
657
658
659649static MACHINE_CONFIG_START( twincobr, twincobr_state )
660650
661651   /* basic machine hardware */
r243161r243162
702692   MCFG_SPEAKER_STANDARD_MONO("mono")
703693
704694   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_28MHz/8)
705   MCFG_YM3812_IRQ_HANDLER(WRITELINE(twincobr_state, irqhandler))
695   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
706696   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
707697MACHINE_CONFIG_END
708698
trunk/src/mame/drivers/wardner.c
r243161r243162
146146
147147   DECLARE_WRITE8_MEMBER(wardner_bank_w);
148148   DECLARE_DRIVER_INIT(wardner);
149   DECLARE_WRITE_LINE_MEMBER(irqhandler);
150149
151150protected:
152151   virtual void driver_start();
r243161r243162
337336};
338337
339338
340/* handler called by the 3812 emulator when the internal timers cause an IRQ */
341WRITE_LINE_MEMBER(wardner_state::irqhandler)
342{
343   m_audiocpu->set_input_line(0, state);
344}
345
346
347339static GFXDECODE_START( wardner )
348340   GFXDECODE_ENTRY( "gfx1", 0x00000, charlayout,   1536, 32 )  /* colors 1536-1791 */
349341   GFXDECODE_ENTRY( "gfx2", 0x00000, tilelayout,   1280, 16 )  /* colors 1280-1535 */
r243161r243162
419411   MCFG_SPEAKER_STANDARD_MONO("mono")
420412
421413   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_14MHz/4)
422   MCFG_YM3812_IRQ_HANDLER(WRITELINE(wardner_state, irqhandler))
414   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
423415   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
424416MACHINE_CONFIG_END
425417
trunk/src/mame/drivers/yunsun16.c
r243161r243162
582582                                Magic Bubble
583583***************************************************************************/
584584
585WRITE_LINE_MEMBER(yunsun16_state::soundirq)
586{
587   m_audiocpu->set_input_line(0, state);
588}
589
590585static MACHINE_CONFIG_START( magicbub, yunsun16_state )
591586
592587   /* basic machine hardware */
r243161r243162
614609   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
615610
616611   MCFG_SOUND_ADD("ymsnd", YM3812, XTAL_16MHz/4)
617   MCFG_YM3812_IRQ_HANDLER(WRITELINE(yunsun16_state, soundirq))
612   MCFG_YM3812_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
618613   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.80)
619614   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.80)
620615
trunk/src/mame/includes/actfancr.h
r243161r243162
2323   required_shared_ptr<UINT8> m_main_ram;
2424   UINT16 m_spriteram16[0x800/2]; // a 16-bit copy of spriteram for use with the MXC06 code
2525
26   /* video-related */
27   int                 m_flipscreen;
28
2926   /* misc */
3027   int            m_trio_control_select;
3128
r243161r243162
3936   DECLARE_READ8_MEMBER(triothep_control_r);
4037   DECLARE_WRITE8_MEMBER(actfancr_sound_w);
4138   DECLARE_WRITE8_MEMBER(actfancr_buffer_spriteram_w);
42   virtual void video_start();
43   DECLARE_MACHINE_START(actfancr);
44   DECLARE_MACHINE_RESET(actfancr);
4539   DECLARE_MACHINE_START(triothep);
4640   DECLARE_MACHINE_RESET(triothep);
4741   UINT32 screen_update_actfancr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
48   void register_savestate(  );
49   DECLARE_WRITE_LINE_MEMBER(sound_irq);
5042};
trunk/src/mame/includes/aerofgt.h
r243161r243162
123123   void spikes91_draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
124124   void aerfboot_draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
125125   void wbbc97_draw_bitmap( bitmap_rgb32 &bitmap );
126   DECLARE_WRITE_LINE_MEMBER(irqhandler);
127126   required_device<cpu_device> m_maincpu;
128127   optional_device<okim6295_device> m_oki;
129128   required_device<gfxdecode_device> m_gfxdecode;
trunk/src/mame/includes/alpha68k.h
r243161r243162
115115   void jongbou_video_banking(int *bank, int data);
116116   void kyros_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int c, int d );
117117   void sstingry_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int c, int d );
118   DECLARE_WRITE_LINE_MEMBER(ym3812_irq);
119118   required_device<cpu_device> m_maincpu;
120119   required_device<gfxdecode_device> m_gfxdecode;
121120   required_device<palette_device> m_palette;
trunk/src/mame/includes/crospang.h
r243161r243162
1515      m_bg_videoram(*this, "bg_videoram"),
1616      m_spriteram(*this, "spriteram"),
1717      m_sprgen(*this, "spritegen"),
18      m_audiocpu(*this, "audiocpu"),
1918      m_maincpu(*this, "maincpu"),
2019      m_gfxdecode(*this, "gfxdecode") { }
2120
r243161r243162
3231   int       m_bestri_tilebank;
3332
3433   /* devices */
35   required_device<cpu_device> m_audiocpu;
3634   DECLARE_WRITE16_MEMBER(crospang_soundlatch_w);
3735   DECLARE_WRITE16_MEMBER(bestri_tilebank_w);
3836   DECLARE_WRITE16_MEMBER(bestri_bg_scrolly_w);
r243161r243162
5351   virtual void video_start();
5452   UINT32 screen_update_crospang(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
5553   void tumblepb_gfx1_rearrange();
56   DECLARE_WRITE_LINE_MEMBER(irqhandler);
5754   required_device<cpu_device> m_maincpu;
5855   required_device<gfxdecode_device> m_gfxdecode;
5956};
trunk/src/mame/includes/dec8.h
r243161r243162
162162   INTERRUPT_GEN_MEMBER(gondo_interrupt);
163163   INTERRUPT_GEN_MEMBER(oscar_interrupt);
164164   void srdarwin_draw_sprites(  bitmap_ind16 &bitmap, const rectangle &cliprect, int pri );
165   DECLARE_WRITE_LINE_MEMBER(irqhandler);
166165   DECLARE_WRITE_LINE_MEMBER(csilver_adpcm_int);
167166
168167protected:
trunk/src/mame/includes/deniam.h
r243161r243162
6969   void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
7070   void set_bg_page( int page, int value );
7171   void set_fg_page( int page, int value );
72   DECLARE_WRITE_LINE_MEMBER(irqhandler);
7372   required_device<cpu_device> m_maincpu;
7473   optional_device<cpu_device> m_audiocpu; // system 16c does not have sound CPU
7574   required_device<okim6295_device> m_oki;
trunk/src/mame/includes/fuukifg2.h
r243161r243162
6161   inline void get_tile_info(tile_data &tileinfo, tilemap_memory_index tile_index, int _N_);
6262   inline void fuuki16_vram_w(offs_t offset, UINT16 data, UINT16 mem_mask, int _N_);
6363   void fuuki16_draw_layer( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int i, int flag, int pri );
64   DECLARE_WRITE_LINE_MEMBER(soundirq);
6564   required_device<okim6295_device> m_oki;
6665   required_device<gfxdecode_device> m_gfxdecode;
6766   required_device<screen_device> m_screen;
trunk/src/mame/includes/fuukifg3.h
r243161r243162
2626      m_priority(*this, "priority"),
2727      m_tilebank(*this, "tilebank"),
2828      m_maincpu(*this, "maincpu"),
29      m_soundcpu(*this, "soundcpu"),
3029      m_gfxdecode(*this, "gfxdecode"),
3130      m_screen(*this, "screen"),
3231      m_palette(*this, "palette"),
r243161r243162
5150
5251   /* devices */
5352   required_device<cpu_device> m_maincpu;
54   required_device<cpu_device> m_soundcpu;
5553   required_device<gfxdecode_device> m_gfxdecode;
5654   required_device<screen_device> m_screen;
5755   required_device<palette_device> m_palette;
r243161r243162
8583   inline void fuuki32_vram_w(offs_t offset, UINT32 data, UINT32 mem_mask, int _N_);
8684   void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
8785   void fuuki32_draw_layer( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int i, int flag, int pri );
88   DECLARE_WRITE_LINE_MEMBER(irqhandler);
8986
9087protected:
9188   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
trunk/src/mame/includes/galspnbl.h
r243161r243162
3939   DECLARE_PALETTE_INIT(galspnbl);
4040   UINT32 screen_update_galspnbl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
4141   void draw_background( bitmap_ind16 &bitmap, const rectangle &cliprect );
42   DECLARE_WRITE_LINE_MEMBER(irqhandler);
4342   required_device<cpu_device> m_maincpu;
4443   required_device<gfxdecode_device> m_gfxdecode;
4544   required_device<palette_device> m_palette;
trunk/src/mame/includes/hcastle.h
r243161r243162
6565   DECLARE_PALETTE_INIT(hcastle);
6666   UINT32 screen_update_hcastle(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
6767   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, bitmap_ind8 &priority_bitmap, UINT8 *sbank, int bank );
68   DECLARE_WRITE_LINE_MEMBER(irqhandler);
6968   DECLARE_WRITE8_MEMBER(volume_callback);
7069   required_device<cpu_device> m_maincpu;
7170   required_device<gfxdecode_device> m_gfxdecode;
trunk/src/mame/includes/itech8.h
r243161r243162
122122   inline void consume_rle(int count);
123123   void perform_blit(address_space &space);
124124   void itech8_update_interrupts(int periodic, int tms34061, int blitter);
125   DECLARE_WRITE_LINE_MEMBER(generate_sound_irq);
126125
127126   /*----------- defined in machine/slikshot.c -----------*/
128127
trunk/src/mame/includes/lordgun.h
r243161r243162
8383   void lorddgun_calc_gun_scr(int i);
8484   void lordgun_update_gun(int i);
8585   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
86   DECLARE_WRITE_LINE_MEMBER(soundirq);
8786   required_device<cpu_device> m_maincpu;
8887   required_device<cpu_device> m_soundcpu;
8988   required_device<okim6295_device> m_oki;
trunk/src/mame/includes/metro.h
r243161r243162
203203   void metro_common(  );
204204   void draw_tilemap( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, UINT32 flags, UINT32 pcode,
205205               int sx, int sy, int wx, int wy, int big, UINT16 *tilemapram, int layer );
206   DECLARE_WRITE_LINE_MEMBER(blzntrnd_irqhandler);
207   DECLARE_WRITE_LINE_MEMBER(ymf278b_interrupt);
208206   DECLARE_READ_LINE_MEMBER(metro_rxd_r);
209207
210208protected:
trunk/src/mame/includes/nemesis.h
r243161r243162
121121   void create_palette_lookups();
122122   void nemesis_postload();
123123   void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
124   DECLARE_WRITE_LINE_MEMBER(sound_irq);
125124   DECLARE_WRITE8_MEMBER(volume_callback);
126125};
trunk/src/mame/includes/oneshot.h
r243161r243162
1111      m_fg_videoram(*this, "fg_videoram"),
1212      m_scroll(*this, "scroll"),
1313      m_maincpu(*this, "maincpu"),
14      m_audiocpu(*this, "audiocpu"),
1514      m_oki(*this, "oki"),
1615      m_gfxdecode(*this, "gfxdecode"),
1716      m_palette(*this, "palette")  { }
r243161r243162
3938
4039   /* devices */
4140   required_device<cpu_device> m_maincpu;
42   required_device<cpu_device> m_audiocpu;
4341   DECLARE_READ16_MEMBER(oneshot_in0_word_r);
4442   DECLARE_READ16_MEMBER(oneshot_gun_x_p1_r);
4543   DECLARE_READ16_MEMBER(oneshot_gun_y_p1_r);
r243161r243162
5957   UINT32 screen_update_maddonna(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
6058   void draw_crosshairs( bitmap_ind16 &bitmap, const rectangle &cliprect );
6159   void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
62   DECLARE_WRITE_LINE_MEMBER(irqhandler);
6360   required_device<okim6295_device> m_oki;
6461   required_device<gfxdecode_device> m_gfxdecode;
6562   required_device<palette_device> m_palette;
trunk/src/mame/includes/prehisle.h
r243161r243162
3939   virtual void video_start();
4040   UINT32 screen_update_prehisle(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
4141   void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
42   DECLARE_WRITE_LINE_MEMBER(irqhandler);
4342
4443   required_device<cpu_device> m_maincpu;
4544   required_device<cpu_device> m_audiocpu;
trunk/src/mame/includes/psikyo.h
r243161r243162
105105   void draw_sprites_bootleg( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int trans_pen );
106106   int tilemap_width( int size );
107107   void s1945_mcu_init(  );
108   DECLARE_WRITE_LINE_MEMBER(irqhandler);
109   DECLARE_WRITE_LINE_MEMBER(sound_irq);
110108   required_device<cpu_device> m_maincpu;
111109   optional_device<okim6295_device> m_oki;
112110   required_device<gfxdecode_device> m_gfxdecode;
trunk/src/mame/includes/psikyo4.h
r243161r243162
7373   UINT32 screen_update_psikyo4_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
7474   INTERRUPT_GEN_MEMBER(psikyosh_interrupt);
7575   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, UINT32 scr);
76   DECLARE_WRITE_LINE_MEMBER(irqhandler);
7776};
trunk/src/mame/includes/psikyosh.h
r243161r243162
8484   void psikyosh_drawgfxzoom( bitmap_rgb32 &dest_bmp,const rectangle &clip,gfx_element *gfx,
8585         UINT32 code,UINT32 color,int flipx,int flipy,int offsx,int offsy,
8686         int alpha, int zoomx, int zoomy, int wide, int high, UINT32 z);
87   DECLARE_WRITE_LINE_MEMBER(irqhandler);
8887};
trunk/src/mame/includes/snk68.h
r243161r243162
5454   UINT32 screen_update_pow(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
5555   void common_video_start();
5656   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int group);
57   DECLARE_WRITE_LINE_MEMBER(irqhandler);
5857   required_device<cpu_device> m_maincpu;
5958   required_device<cpu_device> m_soundcpu;
6059   required_device<upd7759_device> m_upd7759;
trunk/src/mame/includes/snowbros.h
r243161r243162
6969   TIMER_DEVICE_CALLBACK_MEMBER(snowbros3_irq);
7070   void sb3_play_music(int data);
7171   void sb3_play_sound (okim6295_device *oki, int data);
72   DECLARE_WRITE_LINE_MEMBER(irqhandler);
7372};
trunk/src/mame/includes/spbactn.h
r243161r243162
7272   {
7373      return 0xffff;
7474   }
75   DECLARE_WRITE_LINE_MEMBER(irqhandler);
7675   required_device<cpu_device> m_maincpu;
7776   required_device<cpu_device> m_audiocpu;
7877   required_device<gfxdecode_device> m_gfxdecode;
trunk/src/mame/includes/spdodgeb.h
r243161r243162
6464   void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
6565   void mcu63705_update_inputs();
6666   DECLARE_CUSTOM_INPUT_MEMBER(mcu63705_busy_r);
67   DECLARE_WRITE_LINE_MEMBER(irqhandler);
6867   void spd_adpcm_int(msm5205_device *device, int chip);
6968   DECLARE_WRITE_LINE_MEMBER(spd_adpcm_int_1);
7069   DECLARE_WRITE_LINE_MEMBER(spd_adpcm_int_2);
trunk/src/mame/includes/spy.h
r243161r243162
5959   UINT32 screen_update_spy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
6060   INTERRUPT_GEN_MEMBER(spy_interrupt);
6161   void spy_collision(  );
62   DECLARE_WRITE_LINE_MEMBER(irqhandler);
6362   DECLARE_WRITE8_MEMBER(volume_callback0);
6463   DECLARE_WRITE8_MEMBER(volume_callback1);
6564   K052109_CB_MEMBER(tile_callback);
trunk/src/mame/includes/suna8.h
r243161r243162
157157   void draw_normal_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect, int which);
158158   void draw_text_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
159159   UINT8 *brickzn_decrypt();
160   DECLARE_WRITE_LINE_MEMBER(soundirq);
161160};
trunk/src/mame/includes/tbowl.h
r243161r243162
6464   UINT32 screen_update_tbowl_left(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
6565   UINT32 screen_update_tbowl_right(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
6666   void tbowl_draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect, int xscroll, UINT8* spriteram);
67   DECLARE_WRITE_LINE_MEMBER(irqhandler);
6867   void tbowl_adpcm_int(msm5205_device *device, int chip);
6968   DECLARE_WRITE_LINE_MEMBER(tbowl_adpcm_int_1);
7069   DECLARE_WRITE_LINE_MEMBER(tbowl_adpcm_int_2);
trunk/src/mame/includes/tecmo.h
r243161r243162
6060   DECLARE_VIDEO_START(tecmo);
6161   UINT32 screen_update_tecmo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
6262   void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect);
63   DECLARE_WRITE_LINE_MEMBER(irqhandler);
6463   DECLARE_WRITE_LINE_MEMBER(tecmo_adpcm_int);
6564   required_device<cpu_device> m_maincpu;
6665   required_device<cpu_device> m_soundcpu;
trunk/src/mame/includes/toaplan1.h
r243161r243162
150150   void toaplan1_driver_savestate();
151151   void demonwld_driver_savestate();
152152   void vimana_driver_savestate();
153   DECLARE_WRITE_LINE_MEMBER(irqhandler);
154153   DECLARE_WRITE_LINE_MEMBER(toaplan1_reset_callback);
155154   required_device<m68000_device> m_maincpu;
156155   required_device<cpu_device> m_audiocpu;
trunk/src/mame/includes/toaplan2.h
r243161r243162
153153   void truxton2_postload();
154154   void create_tx_tilemap(int dx = 0, int dx_flipped = 0);
155155   void toaplan2_vblank_irq(int irq_line);
156   DECLARE_WRITE_LINE_MEMBER(irqhandler);
157156   DECLARE_WRITE_LINE_MEMBER(bbakraid_irqhandler);
158157
159158   UINT8 m_pwrkick_hopper;
trunk/src/mame/includes/twincobr.h
r243161r243162
1616      m_spriteram8(*this, "spriteram8"),
1717      m_spriteram16(*this, "spriteram16"),
1818      m_maincpu(*this, "maincpu"),
19      m_audiocpu(*this, "audiocpu"),
2019      m_dsp(*this, "dsp"),
2120      m_spritegen(*this, "scu"),
2221      m_gfxdecode(*this, "gfxdecode"),
r243161r243162
119118   void toaplan0_control_w(int offset, int data);
120119   void toaplan0_coin_dsp_w(address_space &space, int offset, int data);
121120   void twincobr_driver_savestate();
122   DECLARE_WRITE_LINE_MEMBER(irqhandler);
123121   required_device<cpu_device> m_maincpu;
124   required_device<cpu_device> m_audiocpu;
125122   required_device<cpu_device> m_dsp;
126123   required_device<toaplan_scu_device> m_spritegen;
127124   required_device<gfxdecode_device> m_gfxdecode;
trunk/src/mame/includes/yunsun16.h
r243161r243162
3434   required_shared_ptr<UINT16> m_scrollram_0;
3535   required_shared_ptr<UINT16> m_scrollram_1;
3636   required_shared_ptr<UINT16> m_priorityram;
37//  UINT16 *    m_paletteram; // currently this uses generic palette handling
3837   required_shared_ptr<UINT16> m_spriteram;
3938
4039   /* other video-related elements */
r243161r243162
5857   virtual void video_start();
5958   UINT32 screen_update_yunsun16(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
6059   void draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
61   DECLARE_WRITE_LINE_MEMBER(soundirq);
6260};
trunk/src/mame/video/actfancr.c
r243161r243162
99
1010/******************************************************************************/
1111
12void actfancr_state::register_savestate()
13{
14   save_item(NAME(m_flipscreen));
15}
16
17void actfancr_state::video_start()
18{
19   register_savestate();
20}
21
22/******************************************************************************/
23
2412UINT32 actfancr_state::screen_update_actfancr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
2513{
2614   /* Draw playfield */


Previous 199869 Revisions Next


© 1997-2024 The MAME Team