2017-06-05 17:31:21 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Memory.h"
|
|
|
|
#include "InputOutput.h"
|
|
|
|
#include "Intel8080.h"
|
|
|
|
#include "Profiler.h"
|
|
|
|
#include "EventArgs.h"
|
2017-07-25 14:12:34 +01:00
|
|
|
#include "Disassembler.h"
|
2017-06-05 17:31:21 +01:00
|
|
|
|
|
|
|
class Configuration;
|
|
|
|
|
|
|
|
class Board {
|
|
|
|
public:
|
|
|
|
Board(const Configuration& configuration);
|
|
|
|
|
2017-07-05 17:40:16 +01:00
|
|
|
EightBit::Memory& Memory() { return m_memory; }
|
|
|
|
EightBit::Intel8080& CPU() { return m_cpu; }
|
2017-06-05 17:31:21 +01:00
|
|
|
|
|
|
|
void initialise();
|
|
|
|
|
|
|
|
private:
|
|
|
|
const Configuration& m_configuration;
|
|
|
|
EightBit::Memory m_memory;
|
|
|
|
EightBit::InputOutput m_ports;
|
|
|
|
EightBit::Intel8080 m_cpu;
|
2017-07-25 14:12:34 +01:00
|
|
|
EightBit::Disassembler m_disassembler;
|
2017-06-05 17:31:21 +01:00
|
|
|
EightBit::Profiler m_profiler;
|
|
|
|
|
|
|
|
void Cpu_ExecutingInstruction_Cpm(const EightBit::Intel8080& cpu);
|
|
|
|
|
|
|
|
void Cpu_ExecutingInstruction_Debug(const EightBit::Intel8080& cpuEvent);
|
|
|
|
void Cpu_ExecutingInstruction_Profile(const EightBit::Intel8080& cpuEvent);
|
|
|
|
|
|
|
|
void bdos();
|
|
|
|
};
|