From 47a6b1de32644a45d0daa4ac535d30a097c1878c Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Wed, 14 Dec 2022 18:15:27 +0100 Subject: [PATCH] 3e+ comments fixed --- src/emucore/Cart3EPlus.cxx | 4 ++-- src/emucore/Cart3EPlus.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emucore/Cart3EPlus.cxx b/src/emucore/Cart3EPlus.cxx index 2ec757dc4..c06cc21d7 100644 --- a/src/emucore/Cart3EPlus.cxx +++ b/src/emucore/Cart3EPlus.cxx @@ -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; } diff --git a/src/emucore/Cart3EPlus.hxx b/src/emucore/Cart3EPlus.hxx index 505659293..bae0c2a2d 100644 --- a/src/emucore/Cart3EPlus.hxx +++ b/src/emucore/Cart3EPlus.hxx @@ -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