mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-01-11 07:30:10 +00:00
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:
parent
900ac02869
commit
c7feb58815
@ -1673,7 +1673,7 @@ namespace EightBit
|
|||||||
|
|
||||||
private void Compare(byte value)
|
private void Compare(byte value)
|
||||||
{
|
{
|
||||||
this.F() = this.Subtract(this.A(), value);
|
this.Subtract(this.A(), value);
|
||||||
this.F() = AdjustXY(this.F(), value);
|
this.F() = AdjustXY(this.F(), value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user