1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Test only well-defined flags.

Albeit that timing is still off.
This commit is contained in:
Thomas Harte 2022-06-03 10:17:55 -04:00
parent 93749cd650
commit 1625796cfe

View File

@ -806,7 +806,9 @@
const auto state = self.machine->get_processor_state();
XCTAssertEqual(state.registers.data[1], 0x80000000);
XCTAssertEqual(state.registers.status & ConditionCode::AllConditions, ConditionCode::Extend | ConditionCode::Negative | ConditionCode::Overflow);
XCTAssertEqual(
state.registers.status & (ConditionCode::Extend | ConditionCode::Overflow | ConditionCode::Carry),
ConditionCode::Extend | ConditionCode::Overflow);
XCTAssertEqual(158, self.machine->get_cycle_count());
}