From 8abf954b33d07af048129d5c0d6efc4f179d9864 Mon Sep 17 00:00:00 2001 From: David Buchanan Date: Fri, 11 Dec 2020 16:30:34 +0000 Subject: [PATCH] Add interactive mode exit instructions, fix 'make test' interactivity --- 6502-emu.c | 5 ++++- Makefile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/6502-emu.c b/6502-emu.c index 32616a9..1d1c5ed 100644 --- a/6502-emu.c +++ b/6502-emu.c @@ -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(); diff --git a/Makefile b/Makefile index 29ff36d..e8754cc 100644 --- a/Makefile +++ b/Makefile @@ -14,4 +14,4 @@ clean: $(RM) 6502-emu $(OBJ) test: 6502-emu - ./6502-emu examples/ehbasic.rom + ./6502-emu -i examples/ehbasic.rom