diff options
author | 2021-10-20 02:59:52 +1100 | |
---|---|---|
committer | 2021-10-20 02:59:52 +1100 | |
commit | 2327c5e785fe6be28e515ea7103f6be720362ab5 (patch) | |
tree | c3fc7372b32abb9585b8c1fd5ec1f7b8b2f44680 | |
parent | fe06ea9b426fad19b693920ca48f131713813957 (diff) |
debugger: Memory accesses in expressions don't support taking the first exposed space (yet).
-rw-r--r-- | src/emu/debug/express.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/debug/express.cpp b/src/emu/debug/express.cpp index 8d3a15b6e95..8363928e5cb 100644 --- a/src/emu/debug/express.cpp +++ b/src/emu/debug/express.cpp @@ -585,11 +585,11 @@ expression_error symbol_table::expression_get_space(const char *tag, int &spacen return expression_error::NO_SUCH_MEMORY_SPACE; } - // allow short references to data, I/O and opcode spaces - if (spacename.empty() && spacenum != 0) + // search not required + if (spacename.empty() && (0 <= spacenum)) return expression_error::NONE; - // find space by name or take first populated space + // find space by name or take first populated space if required for (int i = 0; memory->max_space_count() > i; ++i) { if (memory->has_space(i) && (spacename.empty() || (memory->space(i).name() == spacename))) |