mirror of https://github.com/stella-emu/stella.git
Minor update: convert a define to C++ constexpr.
This commit is contained in:
parent
1e72dcfbcd
commit
1920d761ea
|
@ -28,9 +28,6 @@
|
||||||
#include "TIA.hxx"
|
#include "TIA.hxx"
|
||||||
#include "exception/FatalEmulationError.hxx"
|
#include "exception/FatalEmulationError.hxx"
|
||||||
|
|
||||||
static constexpr uInt8 COMMSTREAM = 0x20,
|
|
||||||
JUMPSTREAM_BASE = 0x21;
|
|
||||||
|
|
||||||
static constexpr bool FAST_FETCH_ON(uInt8 mode) { return (mode & 0x0F) == 0; }
|
static constexpr bool FAST_FETCH_ON(uInt8 mode) { return (mode & 0x0F) == 0; }
|
||||||
static constexpr bool DIGITAL_AUDIO_ON(uInt8 mode) { return (mode & 0xF0) == 0; }
|
static constexpr bool DIGITAL_AUDIO_ON(uInt8 mode) { return (mode & 0xF0) == 0; }
|
||||||
|
|
||||||
|
|
|
@ -59,8 +59,6 @@ class System;
|
||||||
Thomas Jentzsch, Stephen Anthony, Bradford W. Mott
|
Thomas Jentzsch, Stephen Anthony, Bradford W. Mott
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define LDAXY_OVERRIDE_INACTIVE 0xFFFF
|
|
||||||
|
|
||||||
class CartridgeCDF : public CartridgeARM
|
class CartridgeCDF : public CartridgeARM
|
||||||
{
|
{
|
||||||
friend class CartridgeCDFWidget;
|
friend class CartridgeCDFWidget;
|
||||||
|
@ -274,6 +272,9 @@ class CartridgeCDF : public CartridgeARM
|
||||||
bool isPlusROM() const override { return myPlusROM->isValid(); }
|
bool isPlusROM() const override { return myPlusROM->isValid(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
static constexpr uInt8 COMMSTREAM = 0x20, JUMPSTREAM_BASE = 0x21;
|
||||||
|
static constexpr uInt16 LDAXY_OVERRIDE_INACTIVE = 0xFFFF;
|
||||||
|
|
||||||
// The ROM image of the cartridge
|
// The ROM image of the cartridge
|
||||||
ByteBuffer myImage{nullptr};
|
ByteBuffer myImage{nullptr};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue