summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/c64/std.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/c64/std.cpp')
-rw-r--r--src/devices/bus/c64/std.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/bus/c64/std.cpp b/src/devices/bus/c64/std.cpp
index 95d472bfbfd..127f0bf235c 100644
--- a/src/devices/bus/c64/std.cpp
+++ b/src/devices/bus/c64/std.cpp
@@ -51,17 +51,17 @@ uint8_t c64_standard_cartridge_device::c64_cd_r(offs_t offset, uint8_t data, int
{
if (!roml && m_roml)
{
- data = m_roml[offset];
+ data = m_roml[offset & (m_roml_size - 1)];
}
else if (!romh)
{
if (m_romh)
{
- data = m_romh[offset];
+ data = m_romh[offset & (m_romh_size - 1)];
}
else if (m_roml)
{
- data = m_roml[offset];
+ data = m_roml[offset & (m_roml_size - 1)];
}
}