[Core/MD] fixed SSF2 mapper size limit

This commit is contained in:
ekeeke 2019-03-23 13:52:43 +01:00
parent c953707ef5
commit 31a15eaf7c

View File

@ -933,7 +933,7 @@ static void mapper_512k_w(uint32 address, uint32 data)
uint32 i;
/* 512K ROM paging */
uint8 *src = cart.rom + (data << 19);
uint8 *src = cart.rom + ((data << 19) & cart.mask);
/* cartridge area ($000000-$3FFFFF) is divided into 8 x 512K banks */
address = (address << 2) & 0x38;