mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-15 21:10:07 +00:00
7910ada7fa
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
39 lines
899 B
C++
39 lines
899 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "Memory.h"
|
|
#include "Configuration.h"
|
|
#include "Profiler.h"
|
|
#include "EventArgs.h"
|
|
#include "Disassembly.h"
|
|
#include "mos6502.h"
|
|
#include "Symbols.h"
|
|
|
|
class Board {
|
|
public:
|
|
Board(const Configuration& configuration);
|
|
|
|
EightBit::Memory& Memory() { return m_memory; }
|
|
EightBit::MOS6502& CPU() { return m_cpu; }
|
|
|
|
void initialise();
|
|
|
|
private:
|
|
const Configuration& m_configuration;
|
|
EightBit::Memory m_memory;
|
|
EightBit::MOS6502 m_cpu;
|
|
EightBit::Symbols m_symbols;
|
|
EightBit::Disassembly m_disassembler;
|
|
EightBit::Profiler m_profiler;
|
|
|
|
uint16_t m_oldPC;
|
|
bool m_stopped;
|
|
|
|
void Cpu_ExecutingInstruction_Debug(const EightBit::MOS6502& cpu);
|
|
void Cpu_ExecutingInstruction_Profile(const EightBit::MOS6502& cpu);
|
|
|
|
void Cpu_ExecutingInstruction_StopLoop(const EightBit::MOS6502& cpu);
|
|
void Cpu_ExecutedInstruction_StopLoop(const EightBit::MOS6502& cpu);
|
|
};
|