From b6dd8fec84d6505b93cf00f5e2bdbb9039eeec7d Mon Sep 17 00:00:00 2001
From: Hugo Villeneuve <hugo@hugovil.com>
Date: Sun, 1 Dec 2013 16:27:53 -0500
Subject: [PATCH] CLI version: Add <?> to display help menu

---
 src/emuconsole.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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)
-- 
2.20.1