summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/limenko.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/limenko.cpp')
-rw-r--r--src/mame/drivers/limenko.cpp39
1 files changed, 19 insertions, 20 deletions
diff --git a/src/mame/drivers/limenko.cpp b/src/mame/drivers/limenko.cpp
index 30b0b694723..b3c17e533bc 100644
--- a/src/mame/drivers/limenko.cpp
+++ b/src/mame/drivers/limenko.cpp
@@ -96,11 +96,11 @@ public:
DECLARE_CUSTOM_INPUT_MEMBER(spriteram_bit_r);
- DECLARE_DRIVER_INIT(common);
- DECLARE_DRIVER_INIT(sb2003);
- DECLARE_DRIVER_INIT(dynabomb);
- DECLARE_DRIVER_INIT(legendoh);
- DECLARE_DRIVER_INIT(spotty);
+ void init_common();
+ void init_sb2003();
+ void init_dynabomb();
+ void init_legendoh();
+ void init_spotty();
TILE_GET_INFO_MEMBER(get_bg_tile_info);
TILE_GET_INFO_MEMBER(get_md_tile_info);
@@ -1086,7 +1086,7 @@ READ32_MEMBER(limenko_state::spotty_speedup_r)
return m_mainram[0x6626c/4];
}
-DRIVER_INIT_MEMBER(limenko_state,common)
+void limenko_state::init_common()
{
// Set up the QS1000 program ROM banking, taking care not to overlap the internal RAM
machine().device("qs1000:cpu")->memory().space(AS_IO).install_read_bank(0x0100, 0xffff, "bank");
@@ -1095,36 +1095,35 @@ DRIVER_INIT_MEMBER(limenko_state,common)
m_spriteram_bit = 1;
}
-DRIVER_INIT_MEMBER(limenko_state,dynabomb)
+void limenko_state::init_dynabomb()
{
m_maincpu->space(AS_PROGRAM).install_read_handler(0xe2784, 0xe2787, read32_delegate(FUNC(limenko_state::dynabomb_speedup_r), this));
- DRIVER_INIT_CALL(common);
+ init_common();
}
-DRIVER_INIT_MEMBER(limenko_state,legendoh)
+void limenko_state::init_legendoh()
{
m_maincpu->space(AS_PROGRAM).install_read_handler(0x32ab0, 0x32ab3, read32_delegate(FUNC(limenko_state::legendoh_speedup_r), this));
- DRIVER_INIT_CALL(common);
+ init_common();
}
-DRIVER_INIT_MEMBER(limenko_state,sb2003)
+void limenko_state::init_sb2003()
{
m_maincpu->space(AS_PROGRAM).install_read_handler(0x135800, 0x135803, read32_delegate(FUNC(limenko_state::sb2003_speedup_r), this));
- DRIVER_INIT_CALL(common);
+ init_common();
}
-DRIVER_INIT_MEMBER(limenko_state,spotty)
+void limenko_state::init_spotty()
{
uint8_t *dst = memregion("gfx")->base();
uint8_t *src = memregion("maindata")->base();
- int x;
/* expand 4bpp roms to 8bpp space */
- for (x=0; x<0x200000;x+=4)
+ for (int x = 0; x < 0x200000; x += 4)
{
dst[x+1] = (src[x+0]&0xf0) >> 4;
dst[x+0] = (src[x+0]&0x0f) >> 0;
@@ -1139,10 +1138,10 @@ DRIVER_INIT_MEMBER(limenko_state,spotty)
save_item(NAME(m_spotty_sound_cmd));
}
-GAME( 2000, dynabomb, 0, limenko, sb2003, limenko_state, dynabomb, ROT0, "Limenko", "Dynamite Bomber (Korea, Rev 1.5)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
-GAME( 2000, legendoh, 0, limenko, legendoh, limenko_state, legendoh, ROT0, "Limenko", "Legend of Heroes", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
-GAME( 2003, sb2003, 0, limenko, sb2003, limenko_state, sb2003, ROT0, "Limenko", "Super Bubble 2003 (World, Ver 1.0)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
-GAME( 2003, sb2003a, sb2003, limenko, sb2003, limenko_state, sb2003, ROT0, "Limenko", "Super Bubble 2003 (Asia, Ver 1.0)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
+GAME( 2000, dynabomb, 0, limenko, sb2003, limenko_state, init_dynabomb, ROT0, "Limenko", "Dynamite Bomber (Korea, Rev 1.5)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
+GAME( 2000, legendoh, 0, limenko, legendoh, limenko_state, init_legendoh, ROT0, "Limenko", "Legend of Heroes", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
+GAME( 2003, sb2003, 0, limenko, sb2003, limenko_state, init_sb2003, ROT0, "Limenko", "Super Bubble 2003 (World, Ver 1.0)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
+GAME( 2003, sb2003a, sb2003, limenko, sb2003, limenko_state, init_sb2003, ROT0, "Limenko", "Super Bubble 2003 (Asia, Ver 1.0)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
// this game only uses the same graphics chip used in Limenko's system
-GAME( 2001, spotty, 0, spotty, spotty, limenko_state, spotty, ROT0, "Prince Co.", "Spotty (Ver. 2.0.2)", MACHINE_NO_SOUND | MACHINE_SUPPORTS_SAVE )
+GAME( 2001, spotty, 0, spotty, spotty, limenko_state, init_spotty, ROT0, "Prince Co.", "Spotty (Ver. 2.0.2)", MACHINE_NO_SOUND | MACHINE_SUPPORTS_SAVE )