1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-10-01 13:58:20 +00:00

Adds a sequence-point test for 72Hz mode.

Which immediately appears to trigger the hsync issue I'm also seeing in manual testing.
This commit is contained in:
Thomas Harte 2020-01-28 20:27:24 -05:00
parent 2c0cab9e4d
commit 5c4623e9f7

View File

@ -95,11 +95,22 @@ struct VideoTester {
// MARK: - Sequence Point Prediction Tests
/// Tests that no events occur outside of the sequence points the video predicts.
- (void)testSequencePoints {
- (void)testSequencePoints50 {
// Set 4bpp, 50Hz.
_video->write(0x05, 0x0200);
_video->write(0x30, 0x0000);
[self runSequencePointsTest];
}
- (void)testSequencePoints72 {
// Set 1bpp, 72Hz.
_video->write(0x30, 0x0200);
[self runSequencePointsTest];
}
- (void)runSequencePointsTest {
// Run for [more than] a whole frame making sure that no observeable outputs
// change at any time other than a sequence point.
HalfCycles next_event;