diff options
Diffstat (limited to 'cpu.c')
-rw-r--r-- | cpu.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 */ |