Bugfix (assembler): Make camelCase =constant names work in indirect expressions

This commit is contained in:
n loewen 2023-08-15 20:51:15 +01:00
parent 88e36eccce
commit 899c24be7f
1 changed files with 2 additions and 0 deletions

View File

@ -137,6 +137,8 @@ function decodeInstructions(line) {
addressingMode = "indirect";
arg_str = arg_str.replace("(=", "");
arg_str = arg_str.replace(")", "");
// FIXME - a quick hack to get around problems caused by another use of lower-casing to sanitize input:
arg_str = arg_str.toLowerCase();
dbg(2, `INDY - operand references '${arg_str}'`);
arg_str = constants[arg_str];