Partially implemented step by scanline in the debugger; I still have

some questions for DirtyHairy before I can finish it.
This commit is contained in:
Stephen Anthony 2017-01-28 18:33:44 -03:30
parent f1d503a0ef
commit 94e77d3b94
1 changed files with 8 additions and 8 deletions

View File

@ -843,14 +843,14 @@ void TIA::setJitterRecoveryFactor(Int32 f)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void TIA::updateScanline() void TIA::updateScanline()
{ {
#if 0 // Update frame by one scanline at a time
int totalClocks = (mySystem->cycles() * 3) - myClockWhenFrameStarted; uInt32 line = scanlines();
int endClock = ((totalClocks + 228) / 228) * 228; cerr << "-> " << line << endl;
while (line == scanlines())
do { {
updateScanlineByStep(); updateScanlineByStep();
} while((mySystem->cycles() * 3) < endClock); cerr << line << endl;
#endif }
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -