fixed shift for ROM bank size

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2907 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
adavie 2014-06-04 15:29:51 +00:00
parent f99afe12dd
commit f7f80ff05b
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ bool CartridgeDASH::bankROM(uInt8 bank) {
// Setup the page access methods for the current bank
System::PageAccess access(0, 0, 0, this, System::PA_READ);
uInt32 bankStart = 0x1000 + (bankNumber << ROM_BANK_TO_POWER); // *1K
uInt32 bankStart = 0x1000 + (bankNumber << (ROM_BANK_TO_POWER-1)); // *1K
for (uInt32 byte = 0; byte < ROM_BANK_SIZE; byte += (1 << shift)) {
access.directPeekBase = &myImage[startCurrentBank + byte];