OSDN Git Service

debugger changed.
authorastoria-d <astoria-d@mail.goo.ne.jp>
Sun, 25 Sep 2016 03:14:25 +0000 (12:14 +0900)
committerastoria-d <astoria-d@mail.goo.ne.jp>
Sun, 25 Sep 2016 03:14:25 +0000 (12:14 +0900)
emulator/cpu.c

index ade1029..c4d8b88 100644 (file)
@@ -212,10 +212,10 @@ static int fetch_and_decode_inst(void) {
     dump_6502_level2(TRUE);
     pc = pc_get();
 
-    if (break_point == pc) {
+    if (break_point == pc && debug_mode == TRUE) {
         break_hit();
     }
-    if ((break_nmi_point == get_nmi_cnt()) && (break_counter_point == clock_cnt)) {
+    if ((break_nmi_point == get_nmi_cnt()) && (break_counter_point == clock_cnt) && debug_mode == TRUE) {
         break_hit();
     }