summaryrefslogtreecommitdiffstats
path: root/src/emu/debug/debugcmd.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-03-12 00:15:01 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-03-12 00:15:03 -0400
commit58491dec69c06ca8b3d8291b2f9ad2b4bd217fa2 (patch)
tree03830da34dd10ba86fae0c7c314c816c17beb651 /src/emu/debug/debugcmd.cpp
parenta4f5e6a84281080d078e439cf23b6ac56c88c501 (diff)
Better fix for find command (nw)
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r--src/emu/debug/debugcmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp
index 424c79486b6..6b393e21552 100644
--- a/src/emu/debug/debugcmd.cpp
+++ b/src/emu/debug/debugcmd.cpp
@@ -2474,8 +2474,8 @@ void debugger_commands::execute_find(int ref, const std::vector<std::string> &pa
return;
/* further validation */
- endoffset = (offset + length - 1) & space->addrmask();
- offset = offset & space->addrmask();
+ endoffset = space->address_to_byte_end((offset + length - 1) & space->addrmask());
+ offset = space->address_to_byte(offset & space->addrmask());
cur_data_size = space->addr_shift() > 0 ? 2 : 1 << -space->addr_shift();
if (cur_data_size == 0)
cur_data_size = 1;