express.cpp: Fix regression in interpreting db@, ib@, ob@ and similar memory access operators

This commit is contained in:
AJR 2021-10-19 11:40:07 -04:00
parent bb3faa9e53
commit fe06ea9b42

View File

@ -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)
{