mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-22 09:30:32 +00:00
92d23d82d6
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
40 lines
891 B
C++
40 lines
891 B
C++
#pragma once
|
|
|
|
#include "Configuration.h"
|
|
|
|
#include <string>
|
|
|
|
#include <Bus.h>
|
|
#include <Disassembly.h>
|
|
#include <mos6502.h>
|
|
#include <Ram.h>
|
|
#include <Register.h>
|
|
#include <Symbols.h>
|
|
|
|
class Board : public EightBit::Bus {
|
|
public:
|
|
Board(const Configuration& configuration);
|
|
|
|
EightBit::MOS6502& CPU() { return m_cpu; }
|
|
|
|
virtual void raisePOWER() final;
|
|
virtual void lowerPOWER() final;
|
|
|
|
virtual void initialise() final;
|
|
|
|
protected:
|
|
virtual EightBit::MemoryMapping mapping(uint16_t address) final {
|
|
return { m_ram, 0x0000, 0xffff, EightBit::MemoryMapping::AccessLevel::ReadWrite };
|
|
}
|
|
|
|
private:
|
|
const Configuration& m_configuration;
|
|
EightBit::Ram m_ram = 0x10000;
|
|
EightBit::MOS6502 m_cpu = *this;
|
|
EightBit::Symbols m_symbols;
|
|
EightBit::Disassembly m_disassembler = { *this, m_cpu, m_symbols };
|
|
|
|
EightBit::register16_t m_oldPC = EightBit::Chip::Mask16;
|
|
bool m_stopped = false;
|
|
};
|