summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/somari.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes/somari.cpp')
-rw-r--r--src/devices/bus/nes/somari.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/bus/nes/somari.cpp b/src/devices/bus/nes/somari.cpp
index c517a4fae16..f4a5c2e7f40 100644
--- a/src/devices/bus/nes/somari.cpp
+++ b/src/devices/bus/nes/somari.cpp
@@ -157,7 +157,7 @@ void nes_somari_device::pcb_reset()
-------------------------------------------------*/
// MMC1 Mode emulation
-void nes_somari_device::mmc1_w(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_somari_device::mmc1_w)
{
assert(m_board_mode == 2);
@@ -191,7 +191,7 @@ void nes_somari_device::mmc1_w(offs_t offset, uint8_t data)
}
// MMC3 Mode emulation
-void nes_somari_device::mmc3_w(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_somari_device::mmc3_w)
{
uint8_t mmc_helper, cmd;
@@ -240,7 +240,7 @@ void nes_somari_device::mmc3_w(offs_t offset, uint8_t data)
}
// VRC2 Mode emulation
-void nes_somari_device::vrc2_w(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_somari_device::vrc2_w)
{
uint8_t bank, shift;
@@ -381,15 +381,15 @@ void nes_somari_device::update_mirror()
}
-void nes_somari_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_somari_device::write_h)
{
LOG_MMC(("somari write_h, mode %d, offset: %04x, data: %02x\n", m_board_mode, offset, data));
switch (m_board_mode)
{
- case SOMARI_VRC2_MODE: vrc2_w(offset, data); break;
- case SOMARI_MMC3_MODE: mmc3_w(offset, data); break;
- case SOMARI_MMC1_MODE: mmc1_w(offset, data); break;
+ case SOMARI_VRC2_MODE: vrc2_w(space, offset, data, mem_mask); break;
+ case SOMARI_MMC3_MODE: mmc3_w(space, offset, data, mem_mask); break;
+ case SOMARI_MMC1_MODE: mmc1_w(space, offset, data, mem_mask); break;
}
}
@@ -409,7 +409,7 @@ void nes_somari_device::bank_update_switchmode()
update_chr();
}
-void nes_somari_device::write_m(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_somari_device::write_m)
{
LOG_MMC(("somari write_m, offset: %04x, data: %02x\n", offset, data));