addressing #694, this seems to fix it (internal RAM bank segment addresses were exceeding 64K)

This commit is contained in:
Thomas Jentzsch 2020-09-08 12:26:05 +02:00
parent 66b3245c5a
commit 0587d911d5
2 changed files with 2 additions and 2 deletions

View File

@ -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];
}

View File

@ -275,7 +275,7 @@ class CartridgeEnhanced : public Cartridge
@param address The address to get the offset for
@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