mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-12 17:04:46 +00:00
211c75d84d
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
38 lines
864 B
C++
38 lines
864 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "Memory.h"
|
|
#include "InputOutput.h"
|
|
#include "Configuration.h"
|
|
#include "Profiler.h"
|
|
#include "EventArgs.h"
|
|
#include "Disassembler.h"
|
|
#include "Z80.h"
|
|
|
|
class Board {
|
|
public:
|
|
Board(const Configuration& configuration);
|
|
|
|
EightBit::Memory& getMemory() { return m_memory; }
|
|
const EightBit::Z80& getCPU() const { return m_cpu; }
|
|
EightBit::Z80& getCPUMutable() { return m_cpu; }
|
|
|
|
void initialise();
|
|
|
|
private:
|
|
const Configuration& m_configuration;
|
|
EightBit::Memory m_memory;
|
|
EightBit::InputOutput m_ports;
|
|
EightBit::Z80 m_cpu;
|
|
EightBit::Profiler m_profiler;
|
|
EightBit::Disassembler m_disassembler;
|
|
|
|
void Cpu_ExecutingInstruction_Cpm(const EightBit::Z80& cpu);
|
|
|
|
void Cpu_ExecutingInstruction_Debug(const EightBit::Z80& cpuEvent);
|
|
void Cpu_ExecutingInstruction_Profile(const EightBit::Z80& cpuEvent);
|
|
|
|
void bdos();
|
|
};
|