summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/astrocde/exp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/astrocde/exp.cpp')
-rw-r--r--src/devices/bus/astrocde/exp.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/devices/bus/astrocde/exp.cpp b/src/devices/bus/astrocde/exp.cpp
index 9fe3c9f3fda..a33259380f1 100644
--- a/src/devices/bus/astrocde/exp.cpp
+++ b/src/devices/bus/astrocde/exp.cpp
@@ -17,13 +17,13 @@
DEFINE_DEVICE_TYPE(ASTROCADE_EXP_SLOT, astrocade_exp_device, "astrocade_exp", "Bally Astrocade expansion")
-device_astrocade_card_interface::device_astrocade_card_interface(const machine_config &mconfig, device_t &device)
- : device_slot_card_interface(mconfig, device)
+device_astrocade_exp_interface::device_astrocade_exp_interface(const machine_config &mconfig, device_t &device) :
+ device_interface(device, "astrocadeexp")
{
}
-device_astrocade_card_interface::~device_astrocade_card_interface()
+device_astrocade_exp_interface::~device_astrocade_exp_interface()
{
}
@@ -37,7 +37,7 @@ device_astrocade_card_interface::~device_astrocade_card_interface()
//-------------------------------------------------
astrocade_exp_device::astrocade_exp_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
device_t(mconfig, ASTROCADE_EXP_SLOT, tag, owner, clock),
- device_slot_interface(mconfig, *this),
+ device_single_card_slot_interface<device_astrocade_exp_interface>(mconfig, *this),
m_card_mounted(false), m_card(nullptr)
{
}
@@ -57,7 +57,7 @@ astrocade_exp_device::~astrocade_exp_device()
void astrocade_exp_device::device_start()
{
- m_card = dynamic_cast<device_astrocade_card_interface *>(get_card_device());
+ m_card = get_card_device();
if (m_card)
m_card_mounted = true;
}
@@ -66,18 +66,18 @@ void astrocade_exp_device::device_start()
read
-------------------------------------------------*/
-READ8_MEMBER(astrocade_exp_device::read)
+uint8_t astrocade_exp_device::read(offs_t offset)
{
if (m_card)
- return m_card->read(space, offset);
+ return m_card->read(offset);
else
return 0xff;
}
-READ8_MEMBER(astrocade_exp_device::read_io)
+uint8_t astrocade_exp_device::read_io(offs_t offset)
{
if (m_card)
- return m_card->read_io(space, offset);
+ return m_card->read_io(offset);
else
return 0xff;
}
@@ -86,14 +86,14 @@ READ8_MEMBER(astrocade_exp_device::read_io)
write
-------------------------------------------------*/
-WRITE8_MEMBER(astrocade_exp_device::write)
+void astrocade_exp_device::write(offs_t offset, uint8_t data)
{
if (m_card)
- m_card->write(space, offset, data);
+ m_card->write(offset, data);
}
-WRITE8_MEMBER(astrocade_exp_device::write_io)
+void astrocade_exp_device::write_io(offs_t offset, uint8_t data)
{
if (m_card)
- m_card->write_io(space, offset, data);
+ m_card->write_io(offset, data);
}