summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/multigame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes/multigame.cpp')
-rw-r--r--src/devices/bus/nes/multigame.cpp128
1 files changed, 64 insertions, 64 deletions
diff --git a/src/devices/bus/nes/multigame.cpp b/src/devices/bus/nes/multigame.cpp
index c117520afe5..6971e68ac61 100644
--- a/src/devices/bus/nes/multigame.cpp
+++ b/src/devices/bus/nes/multigame.cpp
@@ -1016,7 +1016,7 @@ void nes_bmc_42in1reset_device::pcb_reset()
-------------------------------------------------*/
-void nes_action52_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_action52_device::write_h)
{
uint8_t pmode = offset & 0x20;
int pbank = (offset & 0x1fc0) >> 6;
@@ -1048,7 +1048,7 @@ void nes_action52_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_caltron_device::write_m(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_caltron_device::write_m)
{
LOG_MMC(("caltron write_m, offset: %04x, data: %02x\n", offset, data));
@@ -1057,7 +1057,7 @@ void nes_caltron_device::write_m(offs_t offset, uint8_t data)
prg32(offset & 0x07);
}
-void nes_caltron_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_caltron_device::write_h)
{
LOG_MMC(("caltron write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1077,7 +1077,7 @@ void nes_caltron_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_rumblestat_device::write_m(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_rumblestat_device::write_m)
{
LOG_MMC(("rumblestation write_m, offset: %04x, data: %02x\n", offset, data));
@@ -1087,7 +1087,7 @@ void nes_rumblestat_device::write_m(offs_t offset, uint8_t data)
chr8(m_chr, CHRROM);
}
-void nes_rumblestat_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_rumblestat_device::write_h)
{
LOG_MMC(("rumblestation write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1129,14 +1129,14 @@ void nes_svision16_device::update_prg()
}
-uint8_t nes_svision16_device::read_m(offs_t offset)
+READ8_MEMBER(nes_svision16_device::read_m)
{
int bank = (((m_latch1 & 0x0f) << 4) | 0x0f) + 4 ; // +4 due to the eeprom
LOG_MMC(("svision16 read_m, offset: %04x\n", offset));
return m_prg[((bank * 0x2000) + (offset & 0x1fff)) & m_prg_mask];
}
-void nes_svision16_device::write_m(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_svision16_device::write_m)
{
LOG_MMC(("svision16 write_m, offset: %04x, data: %02x\n", offset, data));
@@ -1145,7 +1145,7 @@ void nes_svision16_device::write_m(offs_t offset, uint8_t data)
set_nt_mirroring(BIT(data, 5) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT);
}
-void nes_svision16_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_svision16_device::write_h)
{
LOG_MMC(("svision16 write_h, offset: %04x, data: %02x\n", offset, data));
m_latch2 = data;
@@ -1175,7 +1175,7 @@ void nes_n625092_device::set_prg(uint8_t reg1, uint8_t reg2)
prg16_cdef(helper2 | ((reg1 & 0x70) >> 1));
}
-void nes_n625092_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_n625092_device::write_h)
{
LOG_MMC(("n625092 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1213,7 +1213,7 @@ void nes_n625092_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_a65as_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_a65as_device::write_h)
{
uint8_t helper = (data & 0x30) >> 1;
LOG_MMC(("a65as write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1242,7 +1242,7 @@ void nes_a65as_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_t262_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_t262_device::write_h)
{
uint8_t mmc_helper;
LOG_MMC(("t262 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1281,7 +1281,7 @@ void nes_t262_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
// Are this correct or should they work the same?
-void nes_novel1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_novel1_device::write_h)
{
LOG_MMC(("novel1 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1289,7 +1289,7 @@ void nes_novel1_device::write_h(offs_t offset, uint8_t data)
chr8(offset & 0x07, CHRROM);
}
-void nes_novel2_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_novel2_device::write_h)
{
LOG_MMC(("novel2 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1311,7 +1311,7 @@ void nes_novel2_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_studyngame_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_studyngame_device::write_h)
{
LOG_MMC(("studyngame write_h, offset: %04x, data: %02x\n", offset, data));
prg32(data);
@@ -1330,7 +1330,7 @@ void nes_studyngame_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_sgun20in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_sgun20in1_device::write_h)
{
LOG_MMC(("supergun20in1 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1345,7 +1345,7 @@ void nes_sgun20in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_vt5201_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_vt5201_device::write_h)
{
LOG_MMC(("vt5201 wirte_h, offset: %04x, data: %02x\n", offset, data));
@@ -1364,7 +1364,7 @@ void nes_vt5201_device::write_h(offs_t offset, uint8_t data)
chr8(offset, CHRROM);
}
-uint8_t nes_vt5201_device::read_h(offs_t offset)
+READ8_MEMBER(nes_vt5201_device::read_h)
{
LOG_MMC(("bmc_vt5201 read_h, offset: %04x\n", offset));
// m_dipsetting = ioport("CARTDIPS")->read();
@@ -1383,7 +1383,7 @@ uint8_t nes_vt5201_device::read_h(offs_t offset)
-------------------------------------------------*/
-void nes_810544c_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_810544c_device::write_h)
{
uint8_t bank = (offset >> 7);
LOG_MMC(("810544 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1407,7 +1407,7 @@ void nes_810544c_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_ntd03_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_ntd03_device::write_h)
{
uint8_t pbank = (offset >> 10) & 0x1e;
uint8_t cbank = ((offset & 0x300) >> 5) | (offset & 0x07);
@@ -1434,7 +1434,7 @@ void nes_ntd03_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_gb63_device::chr_w(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_gb63_device::chr_w)
{
int bank = offset >> 10;
@@ -1459,7 +1459,7 @@ void nes_bmc_gb63_device::update_banks()
// m_vram_disable = BIT(m_reg[1], 1) ? 0 : 1;
}
-void nes_bmc_gb63_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_gb63_device::write_h)
{
LOG_MMC(("bmc_gb63 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1468,13 +1468,13 @@ void nes_bmc_gb63_device::write_h(offs_t offset, uint8_t data)
update_banks();
}
-uint8_t nes_bmc_gb63_device::read_h(offs_t offset)
+READ8_MEMBER(nes_bmc_gb63_device::read_h)
{
LOG_MMC(("bmc_gb63 read_h, offset: %04x\n", offset));
// m_dipsetting = ioport("CARTDIPS")->read();
if (m_latch == 1)
- return get_open_bus(); // open bus
+ return m_open_bus; // open bus
else
return hi_access_rom(offset);
}
@@ -1493,7 +1493,7 @@ uint8_t nes_bmc_gb63_device::read_h(offs_t offset)
-------------------------------------------------*/
-void nes_bmc_gka_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_gka_device::write_h)
{
LOG_MMC(("bmc_gka write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1529,7 +1529,7 @@ void nes_bmc_gka_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_gkb_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_gkb_device::write_h)
{
uint8_t bank = (offset & 0x40) ? 0 : 1;
LOG_MMC(("bmc_gkb write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1551,7 +1551,7 @@ void nes_bmc_gkb_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_ws_device::write_m(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_ws_device::write_m)
{
uint8_t mmc_helper;
LOG_MMC(("bmc_ws write_m, offset: %04x, data: %02x\n", offset, data));
@@ -1588,7 +1588,7 @@ void nes_bmc_ws_device::write_m(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_11160_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_11160_device::write_h)
{
LOG_MMC(("bmc_11160 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1607,7 +1607,7 @@ void nes_bmc_11160_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_g146_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_g146_device::write_h)
{
LOG_MMC(("bmc_g146 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1640,7 +1640,7 @@ void nes_bmc_g146_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_8157_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_8157_device::write_h)
{
LOG_MMC(("bmc_8157 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1653,7 +1653,7 @@ void nes_bmc_8157_device::write_h(offs_t offset, uint8_t data)
set_nt_mirroring(!BIT(offset, 1) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT);
}
-uint8_t nes_bmc_8157_device::read_h(offs_t offset)
+READ8_MEMBER(nes_bmc_8157_device::read_h)
{
LOG_MMC(("bmc_8157 read_h, offset: %04x\n", offset));
// m_dipsetting = ioport("CARTDIPS")->read();
@@ -1678,7 +1678,7 @@ uint8_t nes_bmc_8157_device::read_h(offs_t offset)
-------------------------------------------------*/
-void nes_bmc_hik300_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_hik300_device::write_h)
{
LOG_MMC(("bmc_hik300 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1707,7 +1707,7 @@ void nes_bmc_hik300_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_s700_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_s700_device::write_h)
{
LOG_MMC(("bmc_s700 write_h, offset :%04x, data: %02x\n", offset, data));
@@ -1754,7 +1754,7 @@ void nes_bmc_ball11_device::set_banks()
}
}
-void nes_bmc_ball11_device::write_m(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_ball11_device::write_m)
{
LOG_MMC(("bmc_ball11 write_m, offset: %04x, data: %02x\n", offset, data));
@@ -1762,7 +1762,7 @@ void nes_bmc_ball11_device::write_m(offs_t offset, uint8_t data)
set_banks();
}
-void nes_bmc_ball11_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_ball11_device::write_h)
{
LOG_MMC(("bmc_ball11 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1793,7 +1793,7 @@ void nes_bmc_ball11_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_22games_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_22games_device::write_h)
{
LOG_MMC(("bmc_22games write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1846,7 +1846,7 @@ void nes_bmc_64y2k_device::set_prg()
prg16_cdef(helper2);
}
-void nes_bmc_64y2k_device::write_l(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_64y2k_device::write_l)
{
LOG_MMC(("bmc64y2k write_l, offset: %04x, data: %02x\n", offset, data));
offset += 0x100;
@@ -1866,7 +1866,7 @@ void nes_bmc_64y2k_device::write_l(offs_t offset, uint8_t data)
set_nt_mirroring(BIT(data, 5) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT);
}
-void nes_bmc_64y2k_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_64y2k_device::write_h)
{
LOG_MMC(("bmc64y2k write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1904,7 +1904,7 @@ void nes_bmc_12in1_device::update_banks()
set_nt_mirroring(BIT(m_reg[2], 2) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT);
}
-void nes_bmc_12in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_12in1_device::write_h)
{
LOG_MMC(("bmc_12in1 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1930,7 +1930,7 @@ void nes_bmc_12in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_20in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_20in1_device::write_h)
{
LOG_MMC(("bmc_20in1 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1953,7 +1953,7 @@ void nes_bmc_20in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_21in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_21in1_device::write_h)
{
LOG_MMC(("bmc_21in1 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -1974,7 +1974,7 @@ void nes_bmc_21in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_31in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_31in1_device::write_h)
{
LOG_MMC(("bmc_31in1 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -2006,7 +2006,7 @@ void nes_bmc_31in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_35in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_35in1_device::write_h)
{
LOG_MMC(("bmc_35in1 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -2028,7 +2028,7 @@ void nes_bmc_35in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_36in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_36in1_device::write_h)
{
LOG_MMC(("bmc_36in1 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -2052,7 +2052,7 @@ void nes_bmc_36in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_64in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_64in1_device::write_h)
{
int bank = (offset >> 1) & (offset >> 2) & 0x01;
@@ -2082,7 +2082,7 @@ void nes_bmc_64in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_70in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_70in1_device::write_h)
{
LOG_MMC(("bmc70in1 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -2105,7 +2105,7 @@ void nes_bmc_70in1_device::write_h(offs_t offset, uint8_t data)
}
}
-uint8_t nes_bmc_70in1_device::read_h(offs_t offset)
+READ8_MEMBER(nes_bmc_70in1_device::read_h)
{
LOG_MMC(("bmc70in1 read_h, offset: %04x\n", offset));
@@ -2128,7 +2128,7 @@ uint8_t nes_bmc_70in1_device::read_h(offs_t offset)
-------------------------------------------------*/
-void nes_bmc_72in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_72in1_device::write_h)
{
int hi_bank = offset & 0x40;
int size_16 = offset & 0x1000;
@@ -2165,7 +2165,7 @@ void nes_bmc_72in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
// does this work for super42in1 as well?!?
-void nes_bmc_76in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_76in1_device::write_h)
{
int hi_bank;
int size_16;
@@ -2210,7 +2210,7 @@ void nes_bmc_76in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_110in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_110in1_device::write_h)
{
uint8_t helper1 = (offset >> 12) ? 0 : 1;
uint8_t helper2 = ((offset >> 8) & 0x40) | ((offset >> 6) & 0x3f);
@@ -2237,7 +2237,7 @@ void nes_bmc_110in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_150in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_150in1_device::write_h)
{
int bank = (offset >> 1) & 0x07;
@@ -2261,7 +2261,7 @@ void nes_bmc_150in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_190in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_190in1_device::write_h)
{
LOG_MMC(("bmc190in1 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -2287,7 +2287,7 @@ void nes_bmc_190in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_800in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_800in1_device::write_h)
{
LOG_MMC(("bmc800in1 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -2312,7 +2312,7 @@ void nes_bmc_800in1_device::write_h(offs_t offset, uint8_t data)
prg16_cdef(m_reg[1]);
}
-uint8_t nes_bmc_800in1_device::read_h(offs_t offset)
+READ8_MEMBER(nes_bmc_800in1_device::read_h)
{
LOG_MMC(("bmc800in1 read_h, offset: %04x\n", offset));
@@ -2335,7 +2335,7 @@ uint8_t nes_bmc_800in1_device::read_h(offs_t offset)
-------------------------------------------------*/
-void nes_bmc_1200in1_device::chr_w(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_1200in1_device::chr_w)
{
int bank = offset >> 10;
@@ -2344,7 +2344,7 @@ void nes_bmc_1200in1_device::chr_w(offs_t offset, uint8_t data)
}
-void nes_bmc_1200in1_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_1200in1_device::write_h)
{
int bank = ((offset >> 2) & 0x1f) | ((offset & 0x0100) >> 3);
@@ -2390,7 +2390,7 @@ void nes_bmc_1200in1_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_gold260_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_gold260_device::write_h)
{
int bank = (offset & 0x1f) | ((offset & 0x0300) >> 3);
LOG_MMC(("bmc_gold260 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -2428,7 +2428,7 @@ void nes_bmc_gold260_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_gold150_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_gold150_device::write_h)
{
int bank = (offset & 0x1f) | ((offset & 0x0200) >> 4);
LOG_MMC(("bmc_gold150 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -2450,12 +2450,12 @@ void nes_bmc_gold150_device::write_h(offs_t offset, uint8_t data)
prg32(bank);
}
-uint8_t nes_bmc_gold150_device::read_h(offs_t offset)
+READ8_MEMBER(nes_bmc_gold150_device::read_h)
{
LOG_MMC(("bmc_gold150 read_h, offset: %04x\n", offset));
if (m_latch) // open bus
- return get_open_bus();
+ return m_open_bus;
else
return hi_access_rom(offset);
}
@@ -2475,7 +2475,7 @@ uint8_t nes_bmc_gold150_device::read_h(offs_t offset)
-------------------------------------------------*/
-void nes_bmc_ch001_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_ch001_device::write_h)
{
int bank = ((offset >> 1) & 0x1fc);
LOG_MMC(("bmc_ch001 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -2503,12 +2503,12 @@ void nes_bmc_ch001_device::write_h(offs_t offset, uint8_t data)
prg8_ef((offset & 0x07c ) | ((offset & 0x6) ? 0x3 : 0x1));
}
-uint8_t nes_bmc_ch001_device::read_h(offs_t offset)
+READ8_MEMBER(nes_bmc_ch001_device::read_h)
{
LOG_MMC(("bmc_ch001 read_h, offset: %04x\n", offset));
if (m_latch && offset < 0x4000) // open bus
- return get_open_bus();
+ return m_open_bus;
else
return hi_access_rom(offset);
}
@@ -2528,7 +2528,7 @@ uint8_t nes_bmc_ch001_device::read_h(offs_t offset)
-------------------------------------------------*/
-void nes_bmc_super22_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_super22_device::write_h)
{
LOG_MMC(("bmc_super22 write_h, offset: %04x, data: %02x\n", offset, data));
@@ -2581,7 +2581,7 @@ void nes_bmc_super22_device::write_h(offs_t offset, uint8_t data)
-------------------------------------------------*/
-void nes_bmc_42in1reset_device::write_h(offs_t offset, uint8_t data)
+WRITE8_MEMBER(nes_bmc_42in1reset_device::write_h)
{
int bank;
LOG_MMC(("bmc_42in1reset write_h, offset: %04x, data: %02x\n", offset, data));