From 33ebf50aa4a855fb1a0df2cf682796abbc39d07f Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 26 Dec 2022 16:34:22 +0000 Subject: Failed attempts to fix runall for BIT. Also some tweaks to sources and the initial noisy mode of EMMA. --- z80.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'z80.c') 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; } } -- cgit v1.2.3