mmc3.cpp: Added comment about VROM/VRAM bank numbers. (#8743)

This commit is contained in:
0kmg 2021-10-23 03:30:09 -08:00 committed by GitHub
parent 3ff0c5c719
commit 4b64f2fe9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,16 +119,19 @@ void nes_txrom_device::mmc3_common_initialize( int prg_mask, int chr_mask, int i
{
m_mmc_prg_bank[0] = m_mmc_prg_bank[2] = 0xffe; // m_mmc_prg_bank[2] & m_mmc_prg_bank[3] remain always the same in most MMC3 variants
m_mmc_prg_bank[1] = m_mmc_prg_bank[3] = 0xfff; // but some pirate clone mappers change them after writing certain registers
// Point CHR banks to the first 8K of memory. This is needed for a few unlicensed carts that use VRAM and don't init banks properly.
// This includes at least some Waixing games, EverQuest and Sanguozhi, and some multicarts, New Star 6 in 1 and Famicom Yarou Vol 1.
m_mmc_vrom_bank[0] = 0;
m_mmc_vrom_bank[1] = 2;
m_mmc_vrom_bank[2] = 4;
m_mmc_vrom_bank[3] = 5;
m_mmc_vrom_bank[4] = 6;
m_mmc_vrom_bank[5] = 7;
m_mmc_vrom_bank[6] = 0;
m_mmc_vrom_bank[7] = 0;
m_mmc_mirror = 0;
m_mmc_vrom_bank[6] = 0; // extension reg used by clone boards
m_mmc_vrom_bank[7] = 0; // extension reg used by clone boards
m_mmc_mirror = 0;
m_latch = 0;
m_wram_protect = 0x80;