mirror of https://github.com/stella-emu/stella.git
some fixes for last commit
This commit is contained in:
parent
d7c4b1a7b9
commit
279e54378d
|
@ -187,10 +187,10 @@ bool Cartridge3E::bank(uInt16 bank)
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
uInt16 Cartridge3E::getBank(uInt16 addr) const
|
||||
{
|
||||
if(addr & 0x800)
|
||||
return (mySize >> 11) - 1; // 2K slices, fixed bank
|
||||
if (addr & 0x800)
|
||||
return 255; // 256 - 1 // 2K slices, fixed bank
|
||||
else
|
||||
return 255; // 256 - 1
|
||||
return myCurrentBank;
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
|
@ -128,7 +128,7 @@ bool Cartridge3F::bank(uInt16 bank)
|
|||
uInt16 Cartridge3F::getBank(uInt16 addr) const
|
||||
{
|
||||
if (addr & 0x800)
|
||||
return (mySize >> 11) - 1; // 2K slices, fixed bank
|
||||
return (mySize >> 11) - 1; // 2K slices, fixed bank
|
||||
else
|
||||
return myCurrentBank;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue