From fc1c6766c97e058d8ffdc949a197a9b55be2a2b6 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sat, 14 Jan 2017 00:01:38 +1100 Subject: [PATCH] buffer overrun (nw) --- src/mame/drivers/m68705prg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/drivers/m68705prg.cpp b/src/mame/drivers/m68705prg.cpp index 4facdfffc39..d02d76849c5 100644 --- a/src/mame/drivers/m68705prg.cpp +++ b/src/mame/drivers/m68705prg.cpp @@ -104,7 +104,7 @@ public: m_pb_val = data; u8 const *const ptr(m_eprom_image->get_rom_base()); - m_mcu->pa_w(space, 0, ptr ? ptr[m_addr] : 0xff); + m_mcu->pa_w(space, 0, ptr ? ptr[m_addr & m_mcu_region.mask()] : 0xff); output().set_digit_value(0, s_7seg[(m_addr >> 0) & 0x0f]); output().set_digit_value(1, s_7seg[(m_addr >> 4) & 0x0f]);