diff options
author | 2021-10-19 11:40:07 -0400 | |
---|---|---|
committer | 2021-10-19 11:40:47 -0400 | |
commit | fe06ea9b426fad19b693920ca48f131713813957 (patch) | |
tree | b6a83ec91b6eb83c3b798f1146dc5da0805fab7d | |
parent | bb3faa9e5342cb5c49eb7323d250765435b3d26b (diff) |
express.cpp: Fix regression in interpreting db@, ib@, ob@ and similar memory access operators
-rw-r--r-- | src/emu/debug/express.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/debug/express.cpp b/src/emu/debug/express.cpp index 3e15ba29a5b..8d3a15b6e95 100644 --- a/src/emu/debug/express.cpp +++ b/src/emu/debug/express.cpp @@ -585,6 +585,10 @@ 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) + return expression_error::NONE; + // find space by name or take first populated space for (int i = 0; memory->max_space_count() > i; ++i) { |