summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/retofinv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/retofinv.cpp')
-rw-r--r--src/mame/drivers/retofinv.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/retofinv.cpp b/src/mame/drivers/retofinv.cpp
index 49cd11d43f8..0259a6940b6 100644
--- a/src/mame/drivers/retofinv.cpp
+++ b/src/mame/drivers/retofinv.cpp
@@ -180,11 +180,11 @@ READ8_MEMBER(retofinv_state::mcu_status_r)
void retofinv_state::bootleg_map(address_map &map)
{
map(0x0000, 0x7fff).rom();
- map(0x7fff, 0x7fff).w(this, FUNC(retofinv_state::coincounter_w));
- map(0x8000, 0x87ff).ram().w(this, FUNC(retofinv_state::fg_videoram_w)).share("fg_videoram");
+ map(0x7fff, 0x7fff).w(FUNC(retofinv_state::coincounter_w));
+ map(0x8000, 0x87ff).ram().w(FUNC(retofinv_state::fg_videoram_w)).share("fg_videoram");
map(0x8800, 0x9fff).ram().share("sharedram");
- map(0xa000, 0xa7ff).ram().w(this, FUNC(retofinv_state::bg_videoram_w)).share("bg_videoram");
- map(0xb800, 0xb802).w(this, FUNC(retofinv_state::gfx_ctrl_w));
+ map(0xa000, 0xa7ff).ram().w(FUNC(retofinv_state::bg_videoram_w)).share("bg_videoram");
+ map(0xb800, 0xb802).w(FUNC(retofinv_state::gfx_ctrl_w));
map(0xc000, 0xc000).portr("P1");
map(0xc001, 0xc001).portr("P2");
map(0xc002, 0xc002).nopr(); /* bit 7 must be 0, otherwise game resets */
@@ -194,14 +194,14 @@ void retofinv_state::bootleg_map(address_map &map)
map(0xc007, 0xc007).portr("DSW3");
map(0xc800, 0xc807).w("mainlatch", FUNC(ls259_device::write_d0));
map(0xd000, 0xd000).w("watchdog", FUNC(watchdog_timer_device::reset_w));
- map(0xd800, 0xd800).w(this, FUNC(retofinv_state::soundcommand_w));
- map(0xf800, 0xf800).r(this, FUNC(retofinv_state::cpu0_mf800_r));
+ map(0xd800, 0xd800).w(FUNC(retofinv_state::soundcommand_w));
+ map(0xf800, 0xf800).r(FUNC(retofinv_state::cpu0_mf800_r));
}
void retofinv_state::main_map(address_map &map)
{
bootleg_map(map);
- map(0xc003, 0xc003).r(this, FUNC(retofinv_state::mcu_status_r));
+ map(0xc003, 0xc003).r(FUNC(retofinv_state::mcu_status_r));
map(0xe000, 0xe000).r(m_68705, FUNC(taito68705_mcu_device::data_r));
map(0xe800, 0xe800).w(m_68705, FUNC(taito68705_mcu_device::data_w));
}
@@ -209,9 +209,9 @@ void retofinv_state::main_map(address_map &map)
void retofinv_state::sub_map(address_map &map)
{
map(0x0000, 0x7fff).rom();
- map(0x8000, 0x87ff).ram().w(this, FUNC(retofinv_state::fg_videoram_w)).share("fg_videoram");
+ map(0x8000, 0x87ff).ram().w(FUNC(retofinv_state::fg_videoram_w)).share("fg_videoram");
map(0x8800, 0x9fff).ram().share("sharedram");
- map(0xa000, 0xa7ff).ram().w(this, FUNC(retofinv_state::bg_videoram_w)).share("bg_videoram");
+ map(0xa000, 0xa7ff).ram().w(FUNC(retofinv_state::bg_videoram_w)).share("bg_videoram");
map(0xc800, 0xc807).w("mainlatch", FUNC(ls259_device::write_d0));
}
@@ -220,9 +220,9 @@ void retofinv_state::sound_map(address_map &map)
map(0x0000, 0x1fff).rom();
map(0x2000, 0x27ff).ram(); /* 6116 sram at IC28 */
map(0x4000, 0x4000).r(m_soundlatch, FUNC(generic_latch_8_device::read));
- map(0x6000, 0x6000).w(this, FUNC(retofinv_state::cpu2_m6000_w));
- map(0x8000, 0x8000).w("sn1", FUNC(sn76489a_device::write));
- map(0xa000, 0xa000).w("sn2", FUNC(sn76489a_device::write));
+ map(0x6000, 0x6000).w(FUNC(retofinv_state::cpu2_m6000_w));
+ map(0x8000, 0x8000).w("sn1", FUNC(sn76489a_device::command_w));
+ map(0xa000, 0xa000).w("sn2", FUNC(sn76489a_device::command_w));
map(0xe000, 0xffff).rom(); /* space for diagnostic ROM */
}