3e+ comments fixed

This commit is contained in:
Thomas Jentzsch 2022-12-14 18:15:27 +01:00
parent e8543ba075
commit 47a6b1de32
2 changed files with 3 additions and 3 deletions

View File

@ -47,13 +47,13 @@ bool Cartridge3EPlus::checkSwitchBank(uInt16 address, uInt8 value)
{
// Switch banks if necessary
if(address == 0x003F) {
// Switch ROM bank into segment 0
// Switch ROM bank into segment
bank(value & 0b111111, value >> 6);
return true;
}
else if(address == 0x003E)
{
// Switch RAM bank into segment 0
// Switch RAM bank into segment
bank((value & 0b111111) + romBankCount(), value >> 6);
return true;
}

View File

@ -141,7 +141,7 @@ class Cartridge3EPlus: public Cartridge3E
static constexpr uInt16 RAM_BANKS = 64;
// RAM size
static constexpr size_t RAM_SIZE = RAM_BANKS << (BANK_SHIFT - 1); // = 32K = 0x4000;
static constexpr size_t RAM_SIZE = RAM_BANKS << (BANK_SHIFT - 1); // = 32K = 0x8000;
private:
// Following constructors and assignment operators not supported