MDM carts were only working with 16 banks, due to overflow in a 16-bit int.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2985 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2014-09-01 14:56:06 +00:00
parent 5714bfc815
commit adce15f86e
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ bool CartridgeMDM::bank(uInt16 bank)
// Remember what bank we're in
// Wrap around to a valid bank number if necessary
myCurrentBank = bank % bankCount();
uInt16 offset = myCurrentBank << 12;
uInt32 offset = myCurrentBank << 12;
uInt16 shift = mySystem->pageShift();
// Setup the page access methods for the current bank