From: Hugo Villeneuve Date: Sun, 1 Dec 2013 21:27:53 +0000 (-0500) Subject: CLI version: Add to display help menu X-Git-Tag: v2.0.0~64 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=b6dd8fec84d6505b93cf00f5e2bdbb9039eeec7d;p=emu8051.git CLI version: Add to display help menu --- diff --git a/src/emuconsole.c b/src/emuconsole.c index 147f524..ebcb8a9 100644 --- a/src/emuconsole.c +++ b/src/emuconsole.c @@ -269,7 +269,7 @@ console_main(void) " Display Registers content... DR", " Execute..................... EM [address" " [number of instructions]]", - " Help........................ H", + " Help........................ H or ?", " Modify External Data Memory. ME address value", " Modify Internal Data Memory. MI address value", " Modify Program Memory....... MP address value", @@ -394,7 +394,9 @@ console_main(void) goto syntax_error; break; case 'H': - if (STREQ(Command, "H") && (strlen(Parameter1) == 0) && + case '?': + if ((STREQ(Command, "H") || STREQ(Command, "?")) && + (strlen(Parameter1) == 0) && (strlen(Parameter2) == 0)) { Index = 0; while (Menu[Index] != 0)