EightBit/src/Processor.cpp
Adrian.Conlon 3c0a1697fd Fetching bytes/words and stack access are more processor specific than I thought.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
2017-07-07 09:27:06 +01:00

18 lines
271 B
C++

#include "stdafx.h"
#include "Processor.h"
EightBit::Processor::Processor(Memory& memory)
: m_memory(memory),
cycles(0),
m_halted(false) {
PC().word = 0;
}
void EightBit::Processor::reset() {
PC().word = 0;
}
void EightBit::Processor::initialise() {
reset();
}