mirror of https://github.com/stella-emu/stella.git
minor merge update
This commit is contained in:
parent
f7f9a8a3df
commit
3fddc7fcc3
|
@ -47,7 +47,7 @@ uInt16 CartridgeE7::bankCount() const
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
uInt32 CartridgeE7::romSize()
|
uInt32 CartridgeE7::romSize() const
|
||||||
{
|
{
|
||||||
return bankCount() * BANK_SIZE;
|
return bankCount() * BANK_SIZE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ class CartridgeE7 : public CartridgeMNetwork
|
||||||
/**
|
/**
|
||||||
Query the size of the BS type.
|
Query the size of the BS type.
|
||||||
*/
|
*/
|
||||||
uInt32 romSize() override;
|
uInt32 romSize() const override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check hotspots and switch bank if triggered.
|
Check hotspots and switch bank if triggered.
|
||||||
|
|
|
@ -47,7 +47,7 @@ uInt16 CartridgeE78K::bankCount() const
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
uInt32 CartridgeE78K::romSize()
|
uInt32 CartridgeE78K::romSize() const
|
||||||
{
|
{
|
||||||
return bankCount() * BANK_SIZE;
|
return bankCount() * BANK_SIZE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,8 @@ class CartridgeE78K : public CartridgeMNetwork
|
||||||
/**
|
/**
|
||||||
Query the size of the BS type.
|
Query the size of the BS type.
|
||||||
*/
|
*/
|
||||||
uInt32 romSize() override;
|
uInt32 romSize() const override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check hotspots and switch bank if triggered.
|
Check hotspots and switch bank if triggered.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -86,6 +86,8 @@ void CartridgeMNetwork::install(System& system)
|
||||||
access.codeAccessBase = &myCodeAccessBase[0x1fc0];
|
access.codeAccessBase = &myCodeAccessBase[0x1fc0];
|
||||||
mySystem->setPageAccess(addr, access);
|
mySystem->setPageAccess(addr, access);
|
||||||
}
|
}
|
||||||
|
/*setAccess(0x1FE0 & ~System::PAGE_MASK, System::PAGE_SIZE,
|
||||||
|
0, nullptr, 0x1fc0, System::PA_NONE, 0x1fc0);*/
|
||||||
|
|
||||||
// Setup the second segment to always point to the last ROM slice
|
// Setup the second segment to always point to the last ROM slice
|
||||||
setAccess(0x1A00, 0x1FE0U & ~System::PAGE_MASK - 0x1A00,
|
setAccess(0x1A00, 0x1FE0U & ~System::PAGE_MASK - 0x1A00,
|
||||||
|
|
|
@ -176,7 +176,7 @@ class CartridgeMNetwork : public Cartridge
|
||||||
/**
|
/**
|
||||||
Query the size of the BS type.
|
Query the size of the BS type.
|
||||||
*/
|
*/
|
||||||
virtual uInt32 romSize() = 0;
|
virtual uInt32 romSize() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check hotspots and switch bank if triggered.
|
Check hotspots and switch bank if triggered.
|
||||||
|
|
Loading…
Reference in New Issue