summaryrefslogtreecommitdiff
path: root/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu.c')
-rw-r--r--cpu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpu.c b/cpu.c
index badb9c2..5df8bb8 100644
--- a/cpu.c
+++ b/cpu.c
@@ -1679,6 +1679,10 @@ arm_loop:
collapse_flags();
cycles_per_instruction = global_cycles_per_instruction;
+ /* Process cheats if we are about to execute the cheat hook */
+ if (pc == cheat_master_hook)
+ process_cheats();
+
old_pc = pc;
/* Execute ARM instruction */
@@ -3294,6 +3298,10 @@ thumb_loop:
collapse_flags();
+ /* Process cheats if we are about to execute the cheat hook */
+ if (pc == cheat_master_hook)
+ process_cheats();
+
old_pc = pc;
/* Execute THUMB instruction */