From 9085ba4081f31c1e556b1cefa9c0ee65a2315ed4 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 9 Jan 2023 22:58:12 -0500 Subject: [PATCH] Update SMS VDP tests. --- .../Mac/Clock SignalTests/MasterSystemVDPTests.mm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/MasterSystemVDPTests.mm b/OSBindings/Mac/Clock SignalTests/MasterSystemVDPTests.mm index a79ab8e8a..62a306c7e 100644 --- a/OSBindings/Mac/Clock SignalTests/MasterSystemVDPTests.mm +++ b/OSBindings/Mac/Clock SignalTests/MasterSystemVDPTests.mm @@ -19,8 +19,10 @@ [super setUp]; } +using VDP = TI::TMS::TMS9918; + - (void)testLineInterrupt { - TI::TMS::TMS9918 vdp(TI::TMS::Personality::SMSVDP); + VDP vdp; // Disable end-of-frame interrupts, enable line interrupts. vdp.write(1, 0x00); @@ -63,7 +65,7 @@ } - (void)testFirstLineInterrupt { - TI::TMS::TMS9918 vdp(TI::TMS::Personality::SMSVDP); + VDP vdp; // Disable end-of-frame interrupts, enable line interrupts, set an interrupt to occur every line. vdp.write(1, 0x00); @@ -96,7 +98,7 @@ } - (void)testInterruptPrediction { - TI::TMS::TMS9918 vdp(TI::TMS::Personality::SMSVDP); + VDP vdp; for(int c = 0; c < 256; ++c) { for(int with_eof = (c < 192) ? 0 : 1; with_eof < 2; ++with_eof) { @@ -144,7 +146,7 @@ } - (void)testTimeUntilLine { - TI::TMS::TMS9918 vdp(TI::TMS::Personality::SMSVDP); + VDP vdp; auto time_until_line = vdp.get_time_until_line(-1).as_integral(); for(int c = 0; c < 262*228*5; ++c) {