mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-23 15:29:24 +00:00
Whoops: Correct dodgy CMP test. That explains why I never understood why it was failing!
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
9d71c78338
commit
140e87485c
@ -496,7 +496,7 @@ TEST_CASE("Compare Memory with a Register (8-bit)", "[CMP][CMPA][CMPB]") {
|
|||||||
REQUIRE(cpu.X() == 0x00);
|
REQUIRE(cpu.X() == 0x00);
|
||||||
REQUIRE(cpu.Y() == 0x206);
|
REQUIRE(cpu.Y() == 0x206);
|
||||||
REQUIRE(cpu.U() == 0);
|
REQUIRE(cpu.U() == 0);
|
||||||
REQUIRE((cpu.CC() & EightBit::mc6809::CF) != 0);
|
REQUIRE((cpu.CC() & EightBit::mc6809::ZF) != 0);
|
||||||
REQUIRE(cpu.cycles() == 6);
|
REQUIRE(cpu.cycles() == 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user