21
21
#include " emu.h"
22
22
#include " pcecommn.h"
23
23
24
+ #include " sound/okim6295.h"
24
25
#include " video/huc6270.h"
25
26
#include " video/huc6260.h"
26
27
#include " video/huc6202.h"
27
- #include " sound/okim6295 .h"
28
+ #include " machine/input_merger .h"
28
29
#include " machine/msm6242.h"
30
+
29
31
#include " screen.h"
30
32
#include " speaker.h"
31
33
@@ -41,6 +43,7 @@ class ggconnie_state : public pce_common_state
41
43
, m_oki(*this , " oki" )
42
44
, m_okibank(*this , " okibank" )
43
45
, m_lamp(*this , " lamp" )
46
+ , m_irqs(*this , " irqs" )
44
47
{ }
45
48
46
49
void ggconnie (machine_config &config);
@@ -60,6 +63,7 @@ class ggconnie_state : public pce_common_state
60
63
required_device <okim6295_device> m_oki;
61
64
required_memory_bank m_okibank;
62
65
output_finder<> m_lamp;
66
+ required_device<input_merger_device> m_irqs;
63
67
};
64
68
65
69
@@ -335,13 +339,15 @@ void ggconnie_state::ggconnie(machine_config &config)
335
339
m_huc6260->vsync_changed ().set (" huc6202" , FUNC (huc6202_device::vsync_changed));
336
340
m_huc6260->hsync_changed ().set (" huc6202" , FUNC (huc6202_device::hsync_changed));
337
341
342
+ INPUT_MERGER_ANY_HIGH (config, m_irqs).output_handler ().set_inputline (m_maincpu, 0 );
343
+
338
344
huc6270_device &huc6270_0 (HUC6270 (config, " huc6270_0" , 0 ));
339
345
huc6270_0.set_vram_size (0x10000 );
340
- huc6270_0.irq ().set_inputline (m_maincpu, 0 ); // needs input merger?
346
+ huc6270_0.irq ().set (m_irqs, FUNC (input_merger_device::in_w< 0 >));
341
347
342
348
huc6270_device &huc6270_1 (HUC6270 (config, " huc6270_1" , 0 ));
343
349
huc6270_1.set_vram_size (0x10000 );
344
- huc6270_1.irq ().set_inputline (m_maincpu, 0 ); // needs input merger?
350
+ huc6270_1.irq ().set (m_irqs, FUNC (input_merger_device::in_w< 1 >));
345
351
346
352
huc6202_device &huc6202 (HUC6202 (config, " huc6202" , 0 ));
347
353
huc6202.next_pixel_0_callback ().set (" huc6270_0" , FUNC (huc6270_device::next_pixel));
@@ -412,6 +418,6 @@ ROM_END
412
418
} // anonymous namespace
413
419
414
420
415
- GAME ( 1996 , ggconnie, 0 , ggconnie, ggconnie, ggconnie_state, init_pce_common, ROT0, " Eighting" , " Go! Go! Connie chan Jaka Jaka Janken" , MACHINE_IMPERFECT_SOUND | MACHINE_NOT_WORKING )
421
+ GAME ( 1996 , ggconnie, 0 , ggconnie, ggconnie, ggconnie_state, init_pce_common, ROT0, " Eighting" , " Go! Go! Connie chan Jaka Jaka Janken" , MACHINE_IMPERFECT_SOUND | MACHINE_NOT_WORKING ) // Throws Hopper Empty when winning, sound banking
416
422
GAME( 1997 , smf, 0 , ggconnie, smf, ggconnie_state, init_pce_common, ROT0, " Eighting (Capcom license)" , " Super Medal Fighters (Japan 970228)" , MACHINE_IMPERFECT_SOUND | MACHINE_NOT_WORKING )
417
423
GAME( 1997 , fishingm, 0 , ggconnie, fishingm, ggconnie_state, init_pce_common, ROT0, " Capcom" , " Fishing Master (971107 JPN)" , MACHINE_IMPERFECT_SOUND | MACHINE_NOT_WORKING ) // Hopper Jam Error
0 commit comments