mirror of https://github.com/stella-emu/stella.git
addressing #694, this seems to fix it (internal RAM bank segment addresses were exceeding 64K)
This commit is contained in:
parent
66b3245c5a
commit
0587d911d5
|
@ -295,7 +295,7 @@ bool CartridgeEnhanced::bank(uInt16 bank, uInt16 segment)
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
inline uInt16 CartridgeEnhanced::romAddressSegmentOffset(uInt16 address) const
|
inline uInt32 CartridgeEnhanced::romAddressSegmentOffset(uInt16 address) const
|
||||||
{
|
{
|
||||||
return myCurrentSegOffset[((address & ROM_MASK) >> myBankShift) % myBankSegs];
|
return myCurrentSegOffset[((address & ROM_MASK) >> myBankShift) % myBankSegs];
|
||||||
}
|
}
|
||||||
|
|
|
@ -275,7 +275,7 @@ class CartridgeEnhanced : public Cartridge
|
||||||
@param address The address to get the offset for
|
@param address The address to get the offset for
|
||||||
@return The calculated offset
|
@return The calculated offset
|
||||||
*/
|
*/
|
||||||
uInt16 romAddressSegmentOffset(uInt16 address) const;
|
uInt32 romAddressSegmentOffset(uInt16 address) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the RAM offset of the segment of the given address
|
Get the RAM offset of the segment of the given address
|
||||||
|
|
Loading…
Reference in New Issue