Previous 15994 Revisions Next

r8380 Saturday 3rd July, 2010 at 08:49:48 UTC by R. Belmont
[NES] Fix serious array overflow - prg_bank[4] and [5] are used in nes_mmc.c.
[src/mess/includes]nes.h

src/mess/includes/nes.h
r8379r8380
158158   int mmc_prg_base, mmc_prg_mask;   // MMC3 based multigame carts select a block of banks by using these (and then act like normal MMC3),
159159   int mmc_chr_base, mmc_chr_mask;   // while MMC3 and clones (mapper 118 & 119) simply set them as 0 and 0xff resp.
160160
161   UINT8 mmc_prg_bank[4];            // Many mappers writes only some bits of the selected bank (for both PRG and CHR),
161   UINT8 mmc_prg_bank[6];            // Many mappers writes only some bits of the selected bank (for both PRG and CHR),
162162   UINT8 mmc_vrom_bank[16];         // hence these are handy to latch bank values.
163163
164164   UINT16 MMC5_vrom_bank[12];         // MMC5 has 10bit wide VROM regs!

Previous 15994 Revisions Next


© 1998-2018 The MESS Team