From: kub Date: Mon, 9 May 2022 21:14:40 +0000 (+0200) Subject: z80, fix drz80 save (regression) X-Git-Tag: v2.00~302 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=732c328c41a661c5721c09e2d431d7ac91cfcb9f;p=picodrive.git z80, fix drz80 save (regression) --- 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;