about summary refs log tree commit diff
path: root/emulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulator.c')
-rw-r--r--emulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/emulator.c b/emulator.c
index 6016374..b3c6f42 100644
--- a/emulator.c
+++ b/emulator.c
@@ -104,7 +104,7 @@ int emulator_tick(Emulator* emulator)
                 printf("INFINITE LOOP DETECTED! EXITING...\n");
                 emulator_dump_registers(emulator);
                 getchar(); //block
-                exit(0); //stop executing when program over
+                emulator->is_on = 0;
             }
 
             break;