EightBit/MC6809/unittest/Board.cpp
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

18 lines
325 B
C++

#include "pch.h"
#include "Board.h"
Board::Board()
: m_cpu(EightBit::mc6809(*this)) {
}
void Board::initialise() {
CPU().powerOn();
CPU().raise(CPU().NMI());
CPU().raise(CPU().FIRQ());
CPU().reset();
}
EightBit::MemoryMapping Board::mapping(uint16_t) {
return { m_ram, 0x0000, EightBit::MemoryMapping::ReadWrite };
}