From: Hugo Villeneuve Date: Sun, 1 Dec 2013 22:00:04 +0000 (-0500) Subject: Fix error with EM command in CLI mode X-Git-Tag: v2.0.0~63 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=3fed93eb25cdc0f95e86f7ab7e808bf0a3b31d21;p=emu8051.git Fix error with EM command in CLI mode Address parameter was not handled correctly. --- 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)