mirror of https://github.com/stella-emu/stella.git
Convert more defines to static constexpr, take 2.
This commit is contained in:
parent
61d6d89a21
commit
e4d8072503
|
@ -274,7 +274,7 @@ void Thumbulator::dump_counters() const
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void Thumbulator::dump_regs()
|
||||
{
|
||||
for (int cnt = 0; cnt <= 12; cnt++)
|
||||
for(int cnt = 0; cnt <= 12; ++cnt)
|
||||
{
|
||||
statusMsg << "R" << std::dec << std::setfill(' ') << std::setw(2) << std::left << cnt
|
||||
<< "= " << Base::HEX8 << reg_norm[cnt];
|
||||
|
|
|
@ -34,17 +34,6 @@ class Cartridge;
|
|||
#define UNSAFE_OPTIMIZATIONS
|
||||
#endif
|
||||
|
||||
#define ROMADDMASK 0x7FFFF
|
||||
#define RAMADDMASK 0x7FFF
|
||||
|
||||
#define ROMSIZE (ROMADDMASK+1) // 512KB
|
||||
#define RAMSIZE (RAMADDMASK+1) // 32KB
|
||||
|
||||
#define CPSR_N (1u<<31)
|
||||
#define CPSR_Z (1u<<30)
|
||||
#define CPSR_C (1u<<29)
|
||||
#define CPSR_V (1u<<28)
|
||||
|
||||
#ifdef DEBUGGER_SUPPORT
|
||||
#define THUMB_CYCLE_COUNT
|
||||
#define COUNT_OPS
|
||||
|
@ -335,7 +324,19 @@ class Thumbulator
|
|||
|
||||
ConfigureFor configuration;
|
||||
|
||||
Cartridge* myCartridge;
|
||||
Cartridge* myCartridge{nullptr};
|
||||
|
||||
static constexpr uInt32
|
||||
ROMADDMASK = 0x7FFFF,
|
||||
RAMADDMASK = 0x7FFF,
|
||||
|
||||
ROMSIZE = ROMADDMASK + 1, // 512KB
|
||||
RAMSIZE = RAMADDMASK + 1, // 32KB
|
||||
|
||||
CPSR_N = 1u << 31,
|
||||
CPSR_Z = 1u << 30,
|
||||
CPSR_C = 1u << 29,
|
||||
CPSR_V = 1u << 28;
|
||||
|
||||
private:
|
||||
// Following constructors and assignment operators not supported
|
||||
|
|
Loading…
Reference in New Issue