2017-07-05 16:46:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-07-17 09:16:15 +00:00
|
|
|
#include <cstdint>
|
2017-07-05 16:46:02 +00:00
|
|
|
#include <string>
|
2018-08-25 11:09:26 +00:00
|
|
|
#include <Register.h>
|
2017-07-05 16:46:02 +00:00
|
|
|
|
|
|
|
class Configuration {
|
|
|
|
public:
|
2018-08-25 11:09:26 +00:00
|
|
|
Configuration() = default;
|
2017-07-05 16:46:02 +00:00
|
|
|
|
2017-07-17 09:16:15 +00:00
|
|
|
bool isDebugMode() const { return m_debugMode; }
|
|
|
|
void setDebugMode(bool value) { m_debugMode = value; }
|
2017-07-05 16:46:02 +00:00
|
|
|
|
2018-08-25 11:09:26 +00:00
|
|
|
EightBit::register16_t getLoadAddress() const { return m_loadAddress; }
|
|
|
|
EightBit::register16_t getStartAddress() const { return m_startAddress; }
|
2017-07-05 16:46:02 +00:00
|
|
|
|
2017-07-17 09:16:15 +00:00
|
|
|
std::string getRomDirectory() const { return m_romDirectory; }
|
|
|
|
std::string getProgram() const { return m_program; }
|
2017-07-08 00:04:20 +00:00
|
|
|
|
2017-07-05 16:46:02 +00:00
|
|
|
private:
|
2018-08-25 11:09:26 +00:00
|
|
|
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";
|
2017-07-05 16:46:02 +00:00
|
|
|
};
|