summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/fddebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/fddebug.c')
-rw-r--r--src/mame/machine/fddebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/fddebug.c b/src/mame/machine/fddebug.c
index 8075142f841..0bce6c699f5 100644
--- a/src/mame/machine/fddebug.c
+++ b/src/mame/machine/fddebug.c
@@ -1038,7 +1038,7 @@ static void execute_fdpc(running_machine *machine, int ref, int params, const ch
newpc = cpu_get_pc(cpu);
/* set the new PC */
- cpu_set_reg(cpu, REG_GENPC, newpc);
+ cpu_set_reg(cpu, STATE_GENPC, newpc);
/* recompute around that */
instruction_hook(cpu, newpc);
@@ -1091,7 +1091,7 @@ static void execute_fdsearch(running_machine *machine, int ref, int params, cons
}
/* set this as our current PC and run the instruction hook */
- cpu_set_reg(space->cpu, REG_GENPC, pc);
+ cpu_set_reg(space->cpu, STATE_GENPC, pc);
if (instruction_hook(space->cpu, pc))
break;
}