The Z80 instruction CPL operated incorrectly. The correct operation is to invert all bits (1's complement), instead it was actually inverting all bits and adding two. This error has been corrected and the fix is released in version 1.3. The problem was caused by adding one instead of subtracting one after taking a 2's complement.
This problem is fixed in version 1.3
Log in to post a comment.