fix 3E disassembly (bankSize() override)

This commit is contained in:
thrust26 2020-04-13 19:34:34 +02:00
parent 6994556ef8
commit 59e530fc78
2 changed files with 14 additions and 0 deletions

View File

@ -220,6 +220,12 @@ uInt16 Cartridge3E::bankCount() const
return 256 + 32;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
uInt16 Cartridge3E::bankSize(uInt16 bank) const
{
return 2_KB; // we cannot use bankCount() here, because it delivers wrong numbers
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool Cartridge3E::patch(uInt16 address, uInt8 value)
{

View File

@ -111,6 +111,14 @@ class Cartridge3E : public Cartridge
*/
uInt16 bankCount() const override;
/**
Get the size of a bank.
@param bank The bank to get the size for
@return The bank's size
*/
virtual uInt16 bankSize(uInt16 bank = 0) const;
/**
Patch the cartridge ROM.