Fix error with EM command in CLI mode
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 1 Dec 2013 22:00:04 +0000 (17:00 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 2 Dec 2013 01:49:43 +0000 (20:49 -0500)
Address parameter was not handled correctly.

src/emuconsole.c

index ebcb8a9..d5784b8 100644 (file)
@@ -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)