1
0
mirror of https://github.com/prirun/p50em.git synced 2026-01-24 02:57:35 +00:00

Always print a linefeed after HLT

This commit is contained in:
Jim 2011-08-06 09:39:19 -04:00
parent 6b080f7c5e
commit adbf7dff22

6
em.c
View File

@ -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;
}
}