mirror of https://github.com/stella-emu/stella.git
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:
parent
5714bfc815
commit
adce15f86e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue