mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
z80, improve cz80+drz80 compatibility
This commit is contained in:
parent
5711398c4a
commit
46cbe781eb
3 changed files with 2933 additions and 2681 deletions
|
@ -283,6 +283,7 @@ switch (Opcode)
|
|||
OPCB(0x7d): // BIT 7,L
|
||||
OPCB(0x7f): // BIT 7,A
|
||||
zF = (zF & CF) | HF | SZ_BIT[zR8(Opcode & 7) & (1 << ((Opcode >> 3) & 7))];
|
||||
zF = (zF & ~(XF | YF)) | (zR8(Opcode & 7) & (XF | YF));
|
||||
RET(8)
|
||||
|
||||
OPCB(0x46): // BIT 0,(HL)
|
||||
|
@ -295,6 +296,7 @@ switch (Opcode)
|
|||
OPCB(0x7e): // BIT 7,(HL)
|
||||
src = READ_MEM8(zHL);
|
||||
zF = (zF & CF) | HF | SZ_BIT[src & (1 << ((Opcode >> 3) & 7))];
|
||||
zF = (zF & ~(XF | YF)) | (0xc0 & (XF | YF)); // TODO ZEXALL hack, need WZ...
|
||||
RET(12)
|
||||
|
||||
/*-----------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue