diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-12-06 19:13:54 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-12-06 19:13:54 +0100 |
commit | 9e8b57d6e6c5cee76af12bce27efb81041676314 (patch) | |
tree | 26f1cff162a0703ed9674a468f266dba20c6e04a /emu/emul.c | |
parent | 655ee84ba2304b2fe85b28290580338d29a68c3c (diff) | |
download | 6502-9e8b57d6e6c5cee76af12bce27efb81041676314.tar.gz 6502-9e8b57d6e6c5cee76af12bce27efb81041676314.tar.bz2 |
added testing framework (check)
Diffstat (limited to 'emu/emul.c')
-rw-r--r-- | emu/emul.c | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -74,6 +74,18 @@ void emul_start( emul_t *emul ) } } +static void print_help( void ) +{ + fprintf( stderr, "CPU is paused, press\n" + "(s) for single step\n" + "(f) fini (continue to next rts)\n" + "(c) for continue running\n" + "(b) break to single stepping\n" + "(+) speed up\n" + "(-) speed down\n" + "(q) or (ESC) for shutting down\n" ); +} + void emul_run( emul_t *emul, int nof_steps ) { #ifdef WITH_GUI @@ -82,13 +94,7 @@ void emul_run( emul_t *emul, int nof_steps ) bool done = false; if( emul->paused ) { - fprintf( stderr, "CPU is paused, press\n" - "(s) for single step\n" - "(c) for continue running\n" - "(b) break to single stepping\n" - "(+) speed up\n" - "(-) speed down\n" - "(q) or (ESC) for shutting down\n" ); + print_help( ); } while( !done ) { |