From 3fed93eb25cdc0f95e86f7ab7e808bf0a3b31d21 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sun, 1 Dec 2013 17:00:04 -0500 Subject: [PATCH] Fix error with EM command in CLI mode Address parameter was not handled correctly. --- src/emuconsole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emuconsole.c b/src/emuconsole.c index ebcb8a9..d5784b8 100644 --- a/src/emuconsole.c +++ b/src/emuconsole.c @@ -69,7 +69,7 @@ console_exec(char *Address, char *NumberInst) return; } - if (STREQ(Address, "PC")) + if (!STREQ(Address, "PC")) cpu8051.pc = Ascii2Hex(Address, strlen(Address)); if (NumberInst) -- 2.20.1