summaryrefslogtreecommitdiff
path: root/emu/emul.c
diff options
context:
space:
mode:
Diffstat (limited to 'emu/emul.c')
-rw-r--r--emu/emul.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/emu/emul.c b/emu/emul.c
index 4d2c3f1..ff3ac38 100644
--- a/emu/emul.c
+++ b/emu/emul.c
@@ -97,7 +97,7 @@ void emul_run( emul_t *emul, int nof_steps )
print_help( );
}
- while( !done ) {
+ while( !done && emul->cpu->error_state == ERROR_STATE_OK ) {
uint32_t frame_start = SDL_GetTicks( );
SDL_PollEvent( &event );