summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/megatech.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/megatech.cpp')
-rw-r--r--src/mame/drivers/megatech.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/megatech.cpp b/src/mame/drivers/megatech.cpp
index 0078f6acff5..eea2c85f0f2 100644
--- a/src/mame/drivers/megatech.cpp
+++ b/src/mame/drivers/megatech.cpp
@@ -383,7 +383,7 @@ void mtech_state::set_genz80_as_sms()
// ports
io.install_read_handler (0x40, 0x41, 0, 0x3e, 0, read8_delegate(FUNC(mtech_state::sms_count_r),this));
- io.install_write_handler (0x40, 0x41, 0, 0x3e, 0, write8_delegate(FUNC(sn76496_device::write),(sn76496_base_device *)m_snsnd));
+ io.install_write_handler (0x40, 0x41, 0, 0x3e, 0, write8_delegate(FUNC(sn76496_device::command_w),(sn76496_base_device *)m_snsnd));
io.install_readwrite_handler (0x80, 0x80, 0, 0x3e, 0, read8_delegate(FUNC(sega315_5124_device::vram_read),(sega315_5124_device *)m_vdp), write8_delegate(FUNC(sega315_5124_device::vram_write),(sega315_5124_device *)m_vdp));
io.install_readwrite_handler (0x81, 0x81, 0, 0x3e, 0, read8_delegate(FUNC(sega315_5124_device::register_read),(sega315_5124_device *)m_vdp), write8_delegate(FUNC(sega315_5124_device::register_write),(sega315_5124_device *)m_vdp));
@@ -525,14 +525,14 @@ WRITE8_MEMBER(mtech_state::banked_ram_w )
void mtech_state::megatech_bios_map(address_map &map)
{
map(0x0000, 0x2fff).rom(); // from bios rom (0x0000-0x2fff populated in ROM)
- map(0x3000, 0x3fff).rw(this, FUNC(mtech_state::banked_ram_r), FUNC(mtech_state::banked_ram_w)); // copies instruction data here at startup, must be banked
+ map(0x3000, 0x3fff).rw(FUNC(mtech_state::banked_ram_r), FUNC(mtech_state::banked_ram_w)); // copies instruction data here at startup, must be banked
map(0x4000, 0x5fff).ram(); // plain ram?
- map(0x6000, 0x6000).w(this, FUNC(mtech_state::mt_z80_bank_w));
+ map(0x6000, 0x6000).w(FUNC(mtech_state::mt_z80_bank_w));
map(0x6400, 0x6407).rw("io1", FUNC(cxd1095_device::read), FUNC(cxd1095_device::write));
map(0x6800, 0x6807).rw("io2", FUNC(cxd1095_device::read), FUNC(cxd1095_device::write));
map(0x7000, 0x77ff).rom(); // from bios rom (0x7000-0x77ff populated in ROM)
//AM_RANGE(0x7800, 0x7fff) AM_RAM // ?
- map(0x8000, 0x9fff).rw(this, FUNC(mtech_state::read_68k_banked_data), FUNC(mtech_state::write_68k_banked_data)); // window into 68k address space, reads instr rom and writes to reset banks on z80 carts?
+ map(0x8000, 0x9fff).rw(FUNC(mtech_state::read_68k_banked_data), FUNC(mtech_state::write_68k_banked_data)); // window into 68k address space, reads instr rom and writes to reset banks on z80 carts?
}
@@ -580,14 +580,14 @@ READ8_MEMBER(mtech_state::vdp1_count_r)
void mtech_state::megatech_bios_portmap(address_map &map)
{
map.global_mask(0xff);
- map(0x3f, 0x3f).w(this, FUNC(mtech_state::bios_port_ctrl_w));
- map(0x7f, 0x7f).w(this, FUNC(mtech_state::bios_port_7f_w));
+ map(0x3f, 0x3f).w(FUNC(mtech_state::bios_port_ctrl_w));
+ map(0x7f, 0x7f).w(FUNC(mtech_state::bios_port_7f_w));
- map(0x40, 0x41).mirror(0x3e).r(this, FUNC(mtech_state::vdp1_count_r));
+ map(0x40, 0x41).mirror(0x3e).r(FUNC(mtech_state::vdp1_count_r));
map(0x80, 0x80).mirror(0x3e).rw(m_vdp1, FUNC(sega315_5124_device::vram_read), FUNC(sega315_5124_device::vram_write));
map(0x81, 0x81).mirror(0x3e).rw(m_vdp1, FUNC(sega315_5124_device::register_read), FUNC(sega315_5124_device::register_write));
- map(0xdc, 0xdd).r(this, FUNC(mtech_state::bios_joypad_r)); // player inputs
+ map(0xdc, 0xdd).r(FUNC(mtech_state::bios_joypad_r)); // player inputs
}