mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-23 15:29:24 +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();
|
||||
postDecrement(f, --B());
|
||||
setFlag(f, NF, value & Bit7);
|
||||
const auto sum = L() + value;
|
||||
setFlag(f, HC | CF, sum & Bit16);
|
||||
adjustParity<Z80>(f, (sum & Mask3) ^ B());
|
||||
setFlag(f, HC | CF, (L() + value) > 0xff);
|
||||
adjustParity<Z80>(f, ((value + L()) & 7) ^ B());
|
||||
}
|
||||
|
||||
void EightBit::Z80::outi(uint8_t& f) {
|
||||
|
Loading…
Reference in New Issue
Block a user