spjewkes / jrnz

A work-in-progress ZX Spectrum emulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NEG instruction is failing in the Z80DOC tester with an invalid CRC check

spjewkes opened this issue · comments

Possible issue spotted in my implementation. Very similar to DAA in that we're not doing the arithmetic via StorageElement and so I suspect that the HALF flag is broken. Unfortunately re-running Z80DOC doesn't help as the following test in an unimplemented instruction and the display doesn't get updated before the failure.

Yes, it was the HALF flag that was the issue. This can now be closed.