Skip to content

Commit

Permalink
Remove old_pc which turns out isn't used.
Browse files Browse the repository at this point in the history
  • Loading branch information
gameblabla committed Jul 4, 2019
1 parent aa5fe6a commit 3b868b2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -4368,8 +4368,6 @@ void execute_arm(u32 cycles)
u32 cycles_per_instruction = global_cycles_per_instruction;
cpu_alert_type cpu_alert;

u32 old_pc;

if(pc_address_block == NULL)
pc_address_block = load_gamepak_page(pc_region & 0x3FF);

Expand All @@ -4390,7 +4388,6 @@ void execute_arm(u32 cycles)
step_debug(pc, cycles_remaining);
cycles_per_instruction = global_cycles_per_instruction;

old_pc = pc;
execute_arm_instruction();
cycles_remaining -= cycles_per_instruction;
} while(cycles_remaining > 0);
Expand All @@ -4406,7 +4403,6 @@ void execute_arm(u32 cycles)
collapse_flags();
step_debug(pc, cycles_remaining);

old_pc = pc;
execute_thumb_instruction();
cycles_remaining -= cycles_per_instruction;
} while(cycles_remaining > 0);
Expand Down

0 comments on commit 3b868b2

Please sign in to comment.