mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-05 19:05:32 +00:00
74a62f554d
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
42 lines
914 B
C++
42 lines
914 B
C++
#pragma once
|
|
|
|
#include <Bus.h>
|
|
#include <Ram.h>
|
|
#include <InputOutput.h>
|
|
#include <Intel8080.h>
|
|
#include <Profiler.h>
|
|
#include <EventArgs.h>
|
|
#include <Disassembler.h>
|
|
|
|
class Configuration;
|
|
|
|
class Board : public EightBit::Bus {
|
|
public:
|
|
Board(const Configuration& configuration);
|
|
|
|
EightBit::Intel8080& CPU() { return m_cpu; }
|
|
|
|
void initialise();
|
|
|
|
protected:
|
|
virtual uint8_t& reference(uint16_t address, bool& rom) {
|
|
rom = false;
|
|
return m_ram.reference(address);
|
|
}
|
|
|
|
private:
|
|
const Configuration& m_configuration;
|
|
EightBit::Ram m_ram;
|
|
EightBit::InputOutput m_ports;
|
|
EightBit::Intel8080 m_cpu;
|
|
EightBit::Disassembler m_disassembler;
|
|
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();
|
|
};
|