From adbf7dff22028d28a36d085b37138df4912a9404 Mon Sep 17 00:00:00 2001 From: Jim Date: Sat, 6 Aug 2011 09:39:19 -0400 Subject: [PATCH] Always print a linefeed after HLT --- em.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/em.c b/em.c index 5f084bc..030d9f9 100644 --- a/em.c +++ b/em.c @@ -6219,10 +6219,10 @@ d_hlt: /* 000000 */ while (1) { printf("\nPress Enter to continue, h to halt... "); utempa = getchar(); - if (utempa == '\r') { - printf("\n"); + printf("\n"); + if (utempa == '\r') goto fetch; - } else if (utempa == 'h') + if (utempa == 'h') break; } }