diff options
Diffstat (limited to 'src/devices/bus/c64/dela_ep64.cpp')
-rw-r--r-- | src/devices/bus/c64/dela_ep64.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/devices/bus/c64/dela_ep64.cpp b/src/devices/bus/c64/dela_ep64.cpp index c9eee384a5a..5798794f7eb 100644 --- a/src/devices/bus/c64/dela_ep64.cpp +++ b/src/devices/bus/c64/dela_ep64.cpp @@ -22,12 +22,11 @@ DEFINE_DEVICE_TYPE(C64_DELA_EP64, c64_dela_ep64_cartridge_device, "c64_dela_ep64 // device_add_mconfig - add device configuration //------------------------------------------------- -MACHINE_CONFIG_START(c64_dela_ep64_cartridge_device::device_add_mconfig) - MCFG_GENERIC_SOCKET_ADD("eprom1", generic_linear_slot, nullptr) - MCFG_GENERIC_EXTENSIONS("rom,bin") - MCFG_GENERIC_SOCKET_ADD("eprom2", generic_linear_slot, nullptr) - MCFG_GENERIC_EXTENSIONS("rom,bin") -MACHINE_CONFIG_END +void c64_dela_ep64_cartridge_device::device_add_mconfig(machine_config &config) +{ + GENERIC_SOCKET(config, m_eprom1, generic_linear_slot, nullptr, "rom,bin"); + GENERIC_SOCKET(config, m_eprom2, generic_linear_slot, nullptr, "rom,bin"); +} //************************************************************************** @@ -78,7 +77,7 @@ void c64_dela_ep64_cartridge_device::device_reset() // c64_cd_r - cartridge data read //------------------------------------------------- -uint8_t c64_dela_ep64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) +uint8_t c64_dela_ep64_cartridge_device::c64_cd_r(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) { if (!roml) { @@ -91,8 +90,8 @@ uint8_t c64_dela_ep64_cartridge_device::c64_cd_r(address_space &space, offs_t of offs_t addr = (m_bank << 13) | (offset & 0x1fff); if (!m_rom0_ce) data |= m_roml[offset & 0x1fff]; - if (!m_rom1_ce) data |= m_eprom1->read_rom(space, addr); - if (!m_rom2_ce) data |= m_eprom2->read_rom(space, addr); + if (!m_rom1_ce) data |= m_eprom1->read_rom(addr); + if (!m_rom2_ce) data |= m_eprom2->read_rom(addr); } } @@ -104,7 +103,7 @@ uint8_t c64_dela_ep64_cartridge_device::c64_cd_r(address_space &space, offs_t of // c64_cd_w - cartridge data write //------------------------------------------------- -void c64_dela_ep64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) +void c64_dela_ep64_cartridge_device::c64_cd_w(offs_t offset, uint8_t data, int sphi2, int ba, int roml, int romh, int io1, int io2) { if (!io1) { |