From 732c328c41a661c5721c09e2d431d7ac91cfcb9f Mon Sep 17 00:00:00 2001 From: kub Date: Mon, 9 May 2022 23:14:40 +0200 Subject: [PATCH] z80, fix drz80 save (regression) --- pico/z80if.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/pico/z80if.c b/pico/z80if.c index aa7d99fa..7fbfc342 100644 --- a/pico/z80if.c +++ b/pico/z80if.c @@ -194,9 +194,6 @@ void z80_pack(void *data) s->irq_vector[0] = drZ80.z80irqvector >> 16; s->irq_vector[1] = drZ80.z80irqvector >> 8; s->irq_vector[2] = drZ80.z80irqvector; - // NB hack, swap Flag3 and NFlag for save file compatibility - s->m.f = (s->m.f & 0x9f)|((s->m.f & 0x40)>>1)|((s->m.f & 0x20)<<1); - s->a.f = (s->a.f & 0x9f)|((s->a.f & 0x40)>>1)|((s->a.f & 0x20)<<1); #elif defined(_USE_CZ80) { const cz80_struc *CPU = &CZ80; -- 2.39.2