Make first 3 segments of 3E+ point to random banks, according to the documentation (fixes #660).

This commit is contained in:
Stephen Anthony 2020-06-10 11:39:55 -02:30
parent b966fa2802
commit b9d0535517
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ string Cartridge3EPlusWidget::description()
"RAM bank & segment selected by writing to $3E\n"
" Lower 512b of segment for read access\n"
" Upper 512b of segment for write access\n"
"Startup bank = 0/-1/-1/0 (ROM)\n";
"Startup bank = -1/-1/-1/0 (ROM)\n";
// Eventually, we should query this from the debugger/disassembler
uInt16 start = (image[0x400 - 3] << 8) | image[0x400 - 4];

View File

@ -34,7 +34,7 @@ void Cartridge3EPlus::reset()
{
CartridgeEnhanced::reset();
// 1st segment in mapped to start bank in CartridgeEnhanced
bank(mySystem->randGenerator().next() % romBankCount(), 0);
bank(mySystem->randGenerator().next() % romBankCount(), 1);
bank(mySystem->randGenerator().next() % romBankCount(), 2);
bank(startBank(), 3);