summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/electron/pwrjoy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/electron/pwrjoy.cpp')
-rw-r--r--src/devices/bus/electron/pwrjoy.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/devices/bus/electron/pwrjoy.cpp b/src/devices/bus/electron/pwrjoy.cpp
index 2791f700372..1ff7ab79566 100644
--- a/src/devices/bus/electron/pwrjoy.cpp
+++ b/src/devices/bus/electron/pwrjoy.cpp
@@ -78,8 +78,10 @@ void electron_pwrjoy_device::device_start()
// expbus_r - expansion data read
//-------------------------------------------------
-uint8_t electron_pwrjoy_device::expbus_r(address_space &space, offs_t offset, uint8_t data)
+uint8_t electron_pwrjoy_device::expbus_r(offs_t offset)
{
+ uint8_t data = 0xff;
+
if (offset >= 0x8000 && offset < 0xc000)
{
if (m_romsel == 15)
@@ -100,7 +102,7 @@ uint8_t electron_pwrjoy_device::expbus_r(address_space &space, offs_t offset, ui
// expbus_w - expansion data write
//-------------------------------------------------
-void electron_pwrjoy_device::expbus_w(address_space &space, offs_t offset, uint8_t data)
+void electron_pwrjoy_device::expbus_w(offs_t offset, uint8_t data)
{
if (offset == 0xfe05)
{