summaryrefslogtreecommitdiff
path: root/emu/emul.c
diff options
context:
space:
mode:
Diffstat (limited to 'emu/emul.c')
-rw-r--r--emu/emul.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/emu/emul.c b/emu/emul.c
index 0399d33..4d2c3f1 100644
--- a/emu/emul.c
+++ b/emu/emul.c
@@ -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 ) {