summaryrefslogtreecommitdiff
path: root/z80.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2022-12-26 16:34:22 +0000
committerIan C <ianc@noddybox.co.uk>2022-12-26 16:34:22 +0000
commit33ebf50aa4a855fb1a0df2cf682796abbc39d07f (patch)
tree6a2a7a6b27c16a0dfe5f3522557da4af0a43c352 /z80.c
parent6220948f30b0abe230ed9f93491bd7b83fba5246 (diff)
Failed attempts to fix runall for BIT. Also some tweaks to sources and
the initial noisy mode of EMMA.
Diffstat (limited to 'z80.c')
-rw-r--r--z80.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/z80.c b/z80.c
index 70363de..5843b0f 100644
--- a/z80.c
+++ b/z80.c
@@ -66,6 +66,7 @@ static void Z80_CheckInterrupt(Z80 *cpu)
PRIV->nmi=FALSE;
PUSH(cpu->PC);
cpu->PC=0x66;
+ PRIV->memptr.w=cpu->PC;
}
else if (cpu->IFF1)
{
@@ -93,11 +94,13 @@ static void Z80_CheckInterrupt(Z80 *cpu)
case 1:
PUSH(cpu->PC);
cpu->PC=0x38;
+ PRIV->memptr.w=cpu->PC;
break;
case 2:
PUSH(cpu->PC);
cpu->PC=(Z80Word)cpu->I*256+PRIV->devbyte;
+ PRIV->memptr.w=cpu->PC;
break;
}
}