mirror of
https://github.com/holub/mame
synced 2025-07-03 09:06:08 +03:00
Better fix for find command (nw)
This commit is contained in:
parent
a4f5e6a842
commit
58491dec69
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user