summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/express.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-05-15 05:29:09 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-05-15 05:29:09 +0000
commitde269aeb45d5831ea3f147aba9d1cc3f755e3ea3 (patch)
tree5219cc723ab5138aa8fcb212124cceb382aeffa2 /src/emu/debug/express.c
parent07388c45441ae2a02823b67595f634ef936744b8 (diff)
Sent: Monday, May 11, 2009 10:32 PM
To: submit@mamedev.org Subject: LSHIFT/<< expression diff fix Tafoid pointed out that it's currently impossible to use '<<' in a cheat xml file, this fix adds an alternate LSHIFT to cheat.c and express.c and also adds the working '>>' as an alternate RSHIFT to express.c (not needed in cheat.c as >> parses fine) diff file attached
Diffstat (limited to 'src/emu/debug/express.c')
-rw-r--r--src/emu/debug/express.c4
1 files changed, 4 insertions, 0 deletions
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