summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/electron/cart/std.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/electron/cart/std.cpp')
-rw-r--r--src/devices/bus/electron/cart/std.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/bus/electron/cart/std.cpp b/src/devices/bus/electron/cart/std.cpp
index f2b7333f347..b66e3b2ce0d 100644
--- a/src/devices/bus/electron/cart/std.cpp
+++ b/src/devices/bus/electron/cart/std.cpp
@@ -43,13 +43,13 @@ void electron_stdcart_device::device_start()
// read - cartridge data read
//-------------------------------------------------
-uint8_t electron_stdcart_device::read(offs_t offset, int infc, int infd, int romqa, int oe, int oe2)
+uint8_t electron_stdcart_device::read(address_space &space, offs_t offset, int infc, int infd, int romqa)
{
uint8_t data = 0xff;
- if (oe)
+ if (!infc && !infd)
{
- data = m_rom[(offset & 0x3fff) | (romqa << 14)];
+ data = m_rom[(offset & 0x3fff) + (romqa * 0x4000)];
}
return data;