diff options
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 ) { |