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()
{
#if 0
int totalClocks = (mySystem->cycles() * 3) - myClockWhenFrameStarted;
int endClock = ((totalClocks + 228) / 228) * 228;
do {
// Update frame by one scanline at a time
uInt32 line = scanlines();
cerr << "-> " << line << endl;
while (line == scanlines())
{
updateScanlineByStep();
} while((mySystem->cycles() * 3) < endClock);
#endif
cerr << line << endl;
}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -864,7 +864,7 @@ void TIA::updateScanlineByStep()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void TIA::updateScanlineByTrace(int target)
{
while(mySystem->m6502().getPC() != target)
while (mySystem->m6502().getPC() != target)
updateScanlineByStep();
}