diff options
Diffstat (limited to 'misc/sims/z80sim')
-rw-r--r-- | misc/sims/z80sim/src/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/sims/z80sim/src/main.c b/misc/sims/z80sim/src/main.c index 49b06cd7e..9312b7509 100644 --- a/misc/sims/z80sim/src/main.c +++ b/misc/sims/z80sim/src/main.c @@ -325,10 +325,16 @@ int load_file(const char *filename) void sighandler(int signo) { + sigset_t set; char command[80]; int i; int j; + sigemptyset(&set); + sigaddset(&set, SIGINT); + sigprocmask(SIG_UNBLOCK, &set, NULL); + signal(SIGINT, SIG_DFL); + printf("AF:%04X HL:%04X DE:%04X BC:%04X PC:%04X SP:%04X IX:%04X IY:%04X I:%02X\n", gR.AF.W, gR.HL.W, gR.DE.W, gR.BC.W, gR.PC.W, gR.SP.W, gR.IX.W, gR.IY.W, gR.I); |