diff --git a/src/emu/cheat.c b/src/emu/cheat.c index 57e1b23cdad..acba835716b 100644 --- a/src/emu/cheat.c +++ b/src/emu/cheat.c @@ -1706,6 +1706,11 @@ static astring *quote_astring_expression(astring *string, int isattribute) astring_replacec(string, 0, " <", " lt "); astring_replacec(string, 0, "< ", " lt "); astring_replacec(string, 0, "<", " lt "); + + astring_replacec(string, 0, " << ", " lshift "); + astring_replacec(string, 0, " <<", " lshift "); + astring_replacec(string, 0, "<< ", " lshift "); + astring_replacec(string, 0, "<<", " lshift "); return string; } diff --git a/src/emu/debug/express.c b/src/emu/debug/express.c index 98284bf4bda..867372fe505 100644 --- a/src/emu/debug/express.c +++ b/src/emu/debug/express.c @@ -887,6 +887,10 @@ static EXPRERR parse_string_into_tokens(const char *stringstart, parsed_expressi SET_TOKEN_INFO(0, TOK_OPERATOR, TVL_BOR, TIN_PRECEDENCE_10); else if (strcmp(buffer, "bxor") == 0) SET_TOKEN_INFO(0, TOK_OPERATOR, TVL_BXOR, TIN_PRECEDENCE_9); + else if (strcmp(buffer, "lshift") == 0) + SET_TOKEN_INFO(0, TOK_OPERATOR, TVL_LSHIFT, TIN_PRECEDENCE_5); + else if (strcmp(buffer, "rshift") == 0) + SET_TOKEN_INFO(0, TOK_OPERATOR, TVL_RSHIFT, TIN_PRECEDENCE_5); /* process anything else as a number or string */ else