tweaked TIA randomization a bit

This commit is contained in:
Thomas Jentzsch 2021-09-21 18:43:55 +02:00
parent a4d5d93abf
commit 04ab86c0ac
1 changed files with 5 additions and 6 deletions

View File

@ -201,18 +201,17 @@ void TIA::reset()
if(myRandomize && !mySystem->autodetectMode())
{
for(uInt32 i = 0; i < 0x10000; ++i)
for(uInt32 i = 0; i < 0x4000; ++i)
{
uInt16 address = mySystem->randGenerator().next() & 0x3F;
if(address <= 0x2F)
{
uInt8 value = mySystem->randGenerator().next();
poke(address, value);
cycle(2); // process delay queue
poke(address, mySystem->randGenerator().next());
cycle(1 + (mySystem->randGenerator().next() & 7)); // process delay queue
}
}
cycle(100); // just to be sure :)
cycle(76); // just to be sure :)
}
}