From 25d6fd5b8ef9e5ffcfeb62576cd67f1545250d5d Mon Sep 17 00:00:00 2001 From: astoria-d Date: Sun, 25 Sep 2016 12:14:25 +0900 Subject: [PATCH] debugger changed. --- emulator/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emulator/cpu.c b/emulator/cpu.c index ade1029..c4d8b88 100644 --- a/emulator/cpu.c +++ b/emulator/cpu.c @@ -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(); } -- 2.11.0