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