mirror of https://github.com/stella-emu/stella.git
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:
parent
f1d503a0ef
commit
94e77d3b94
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue