Correct a Z80 compare mistake: the result of the implied subtraction shouldn't be applied to the flags register!

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2019-02-21 00:02:31 +00:00
parent 900ac02869
commit c7feb58815

View File

@ -1673,7 +1673,7 @@ namespace EightBit
private void Compare(byte value)
{
this.F() = this.Subtract(this.A(), value);
this.Subtract(this.A(), value);
this.F() = AdjustXY(this.F(), value);
}