Startup bank randomization is now disabled for BUS and DPC+ too (similar reasoning as for CDF).

This commit is contained in:
Stephen Anthony 2020-10-05 16:18:34 -02:30
parent 2464094694
commit ad6a930e83
4 changed files with 21 additions and 5 deletions

View File

@ -53,12 +53,14 @@
* Added option to disable aspect correct scaling.
* Bankswitching schemes BUS, DPC+ and CDFx now work when startup bank
randomization is enabled (these schemes now ignore that setting).
* Replaced "Re-disassemble" with "Disassemble @ current line" in debugger.
* Fixed bug when taking fullscreen snapshots; the dimensions were
sometimes cut off.
-Have fun!

View File

@ -181,6 +181,13 @@ class CartridgeBUS : public Cartridge
bool poke(uInt16 address, uInt8 value) override;
private:
/**
Checks if startup bank randomization is enabled. For this scheme,
randomization is not supported, since the ARM code is always in a
pre-defined bank, and we *must* start from there.
*/
bool randomStartBank() const override { return false; }
/**
Sets the initial state of the DPC pointers and RAM
*/

View File

@ -177,7 +177,7 @@ class CartridgeCDF : public Cartridge
/**
Size of SRAM (RAM) area in cart
*/
*/
uInt32 ramSize() const;
/**
@ -215,9 +215,9 @@ class CartridgeCDF : public Cartridge
private:
/**
Checks if startup bank randomization is enabled.
@return Whether the startup bank(s) should be randomized
Checks if startup bank randomization is enabled. For this scheme,
randomization is not supported, since the ARM code is always in a
pre-defined bank, and we *must* start from there.
*/
bool randomStartBank() const override { return false; }

View File

@ -175,6 +175,13 @@ class CartridgeDPCPlus : public Cartridge
bool poke(uInt16 address, uInt8 value) override;
private:
/**
Checks if startup bank randomization is enabled. For this scheme,
randomization is not supported, since the ARM code is always in a
pre-defined bank, and we *must* start from there.
*/
bool randomStartBank() const override { return false; }
/**
Sets the initial state of the DPC pointers and RAM
*/