Add interactive mode exit instructions, fix 'make test' interactivity

This commit is contained in:
David Buchanan 2020-12-11 16:30:34 +00:00
parent 64df2291fc
commit 8abf954b33
2 changed files with 5 additions and 2 deletions

View File

@ -169,7 +169,10 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}
if (interactive) raw_stdin(); // allow individual keystrokes to be detected
if (interactive) {
printf("*** Entering interactive mode. CTRL+X to exit ***\n\n");
raw_stdin(); // allow individual keystrokes to be detected
}
//init_tables();
init_uart();

View File

@ -14,4 +14,4 @@ clean:
$(RM) 6502-emu $(OBJ)
test: 6502-emu
./6502-emu examples/ehbasic.rom
./6502-emu -i examples/ehbasic.rom