about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--emulator.c2
-rw-r--r--x0
2 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;
diff --git a/x b/x
deleted file mode 100644
index e69de29..0000000
--- a/x
+++ /dev/null