EightBit/M6502/test/Configuration.h
Adrian Conlon 2de467dde8 Refactor the MOS6502 core:
* Use lambda, rather than std::bind, if reasonable
* Tidy construction
* Remove configuration etc. not needed for running Klaus Dormann 6502 tests
2018-11-18 13:52:43 +00:00

27 lines
733 B
C++

#pragma once
#include <cstdint>
#include <string>
#include <Register.h>
class Configuration {
public:
Configuration() = default;
bool isDebugMode() const { return m_debugMode; }
void setDebugMode(bool value) { m_debugMode = value; }
EightBit::register16_t getLoadAddress() const { return m_loadAddress; }
EightBit::register16_t getStartAddress() const { return m_startAddress; }
std::string getRomDirectory() const { return m_romDirectory; }
std::string getProgram() const { return m_program; }
private:
bool m_debugMode = false;
EightBit::register16_t m_loadAddress = 0x400;
EightBit::register16_t m_startAddress = 0x400;
std::string m_romDirectory = "roms";
std::string m_program = "6502_functional_test.bin";
};