diff --git a/src/emu/memory.c b/src/emu/memory.c index 7ed53acad15..e55a97c1c9e 100644 --- a/src/emu/memory.c +++ b/src/emu/memory.c @@ -783,7 +783,7 @@ private: template _UintType watchpoint_r(address_space &space, offs_t offset, _UintType mask) { - m_space.device().debug()->memory_read_hook(m_space, offset, mask); + m_space.device().debug()->memory_read_hook(m_space, offset * sizeof(_UintType), mask); UINT8 *oldtable = m_live_lookup; m_live_lookup = m_table; @@ -836,7 +836,7 @@ private: template void watchpoint_w(address_space &space, offs_t offset, _UintType data, _UintType mask) { - m_space.device().debug()->memory_write_hook(m_space, offset, data, 0xff); + m_space.device().debug()->memory_write_hook(m_space, offset * sizeof(_UintType), data, mask); UINT8 *oldtable = m_live_lookup; m_live_lookup = m_table;