diff options
author | 2021-02-13 20:12:23 +0100 | |
---|---|---|
committer | 2021-02-13 20:12:23 +0100 | |
commit | 7e5a013c092e7adb621b6580fa0a4bc3e6ec3520 (patch) | |
tree | c5c6d85f22006c788f7474f731791eca4da960db /src/devices/bus/c64/std.cpp | |
parent | 6aa8804ac410b450a69d5db5c6c9807f1a20983f (diff) |
bus/c64: fixed MT07867
Diffstat (limited to 'src/devices/bus/c64/std.cpp')
-rw-r--r-- | src/devices/bus/c64/std.cpp | 6 |
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)]; } } |