summaryrefslogtreecommitdiff
path: root/z80.c
diff options
context:
space:
mode:
Diffstat (limited to 'z80.c')
-rw-r--r--z80.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/z80.c b/z80.c
index a974c40..898b94b 100644
--- a/z80.c
+++ b/z80.c
@@ -185,6 +185,12 @@ void Z80SetPC(Z80 *cpu,Z80Word PC)
}
+Z80Word Z80GetPC(Z80 *cpu)
+{
+ return cpu->PC;
+}
+
+
void Z80ResetCycles(Z80 *cpu, Z80Val cycles)
{
cpu->cycle=cycles;