notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56e0b86
)
z80, fix drz80 save (regression)
author
kub
<derkub@gmail.com>
Mon, 9 May 2022 21:14:40 +0000
(23:14 +0200)
committer
kub
<derkub@gmail.com>
Mon, 9 May 2022 21:14:40 +0000
(23:14 +0200)
pico/z80if.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/z80if.c
b/pico/z80if.c
index
aa7d99f
..
7fbfc34
100644
(file)
--- 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;