EightBit/MC6809/unittest/Board.h
Adrian Conlon fe05d468d6 Start adding MC6809 unit tests for each instruction. Just ABX, so far
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-10-06 23:52:39 +01:00

22 lines
361 B
C++

#pragma once
#include <Ram.h>
#include <Bus.h>
#include <mc6809.h>
class Board : public EightBit::Bus {
public:
Board();
EightBit::mc6809& CPU() { return m_cpu; }
void initialise();
protected:
virtual EightBit::MemoryMapping mapping(uint16_t address) final;
private:
EightBit::Ram m_ram = 0x10000; // 0000 - FFFF, 64K RAM
EightBit::mc6809 m_cpu;
};