summaryrefslogtreecommitdiff
path: root/emu/emul.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-12-06 19:13:54 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-12-06 19:13:54 +0100
commit9e8b57d6e6c5cee76af12bce27efb81041676314 (patch)
tree26f1cff162a0703ed9674a468f266dba20c6e04a /emu/emul.c
parent655ee84ba2304b2fe85b28290580338d29a68c3c (diff)
download6502-9e8b57d6e6c5cee76af12bce27efb81041676314.tar.gz
6502-9e8b57d6e6c5cee76af12bce27efb81041676314.tar.bz2
added testing framework (check)
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 ) {