mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-03 09:29:50 +00:00
8853e1157c
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
35 lines
767 B
C++
35 lines
767 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <set>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include <Bus.h>
|
|
#include <Ram.h>
|
|
#include <mos6502.h>
|
|
|
|
class TestRunner final : public EightBit::Bus {
|
|
private:
|
|
static std::set<uint8_t> m_undocumented_opcodes;
|
|
static bool m_undocumented_opcodes_initialised;
|
|
|
|
EightBit::Ram m_ram = 0x10000;
|
|
EightBit::MOS6502 m_cpu = { *this };
|
|
|
|
protected:
|
|
virtual EightBit::MemoryMapping mapping(uint16_t address) noexcept final;
|
|
|
|
public:
|
|
TestRunner();
|
|
|
|
virtual void raisePOWER() final;
|
|
virtual void lowerPOWER() final;
|
|
|
|
virtual void initialise() final;
|
|
|
|
[[nodiscard]] constexpr auto& RAM() noexcept { return m_ram; }
|
|
[[nodiscard]] constexpr auto& CPU() noexcept { return m_cpu; }
|
|
};
|