1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Avoid infinite loop.

This commit is contained in:
Thomas Harte 2022-08-06 14:42:09 -04:00
parent 3781b5eb0e
commit 7030646671

View File

@ -162,6 +162,11 @@ struct Chipset {
// Loop until another [comparable] bus transaction appears, and test.
while(true) {
if(!(blitter.get_status() & 0x4000)) {
XCTAssert(false, @"Blitter terminated early at index %lu", (unsigned long)index);
return;
}
blitter.advance_dma();
const auto transactions = blitter.get_and_reset_transactions();