mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-24 21:30:09 +00:00
Whoops: adjustment of the block output flag handling was quite wrong! Thanks fuse test suite!
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
3146867101
commit
179ec7435f
@ -683,9 +683,8 @@ void EightBit::Z80::blockOut(uint8_t& f) {
|
|||||||
writePort();
|
writePort();
|
||||||
postDecrement(f, --B());
|
postDecrement(f, --B());
|
||||||
setFlag(f, NF, value & Bit7);
|
setFlag(f, NF, value & Bit7);
|
||||||
const auto sum = L() + value;
|
setFlag(f, HC | CF, (L() + value) > 0xff);
|
||||||
setFlag(f, HC | CF, sum & Bit16);
|
adjustParity<Z80>(f, ((value + L()) & 7) ^ B());
|
||||||
adjustParity<Z80>(f, (sum & Mask3) ^ B());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void EightBit::Z80::outi(uint8_t& f) {
|
void EightBit::Z80::outi(uint8_t& f) {
|
||||||
|
Loading…
Reference in New Issue
Block a user