EightBit/MC6809/unittest/Board.h
Adrian Conlon 92d23d82d6 Start big refactor of device/CPU pin usage (to allow pin events throughout).
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-14 02:10:17 +00:00

34 lines
784 B
C++

#pragma once
#include <Ram.h>
#include <Bus.h>
#include <mc6809.h>
#include <Disassembly.h>
class Board : public EightBit::Bus {
public:
Board();
EightBit::mc6809& CPU() { return m_cpu; }
virtual void raisePOWER() final;
virtual void lowerPOWER() final;
protected:
virtual void initialise() final;
virtual EightBit::MemoryMapping mapping(uint16_t address) final;
private:
EightBit::Ram m_ram = 0x10000; // 0000 - FFFF, 64K RAM
EightBit::mc6809 m_cpu;
EightBit::Disassembly m_disassembler;
// The m_disassembleAt and m_ignoreDisassembly are used to skip pin events
EightBit::register16_t m_disassembleAt = 0x0000;
bool m_ignoreDisassembly = false;
void Cpu_ExecutingInstruction_Debug(EightBit::mc6809&);
void Cpu_ExecutedInstruction_Debug(EightBit::mc6809&);
};