mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-23 15:29:24 +00:00
fe05d468d6
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
18 lines
325 B
C++
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 };
|
|
}
|