EightBit/src/Processor.cpp
Adrian.Conlon c9bf24d1fa Tidy up register and static method access.
Signed-off-by: Adrian.Conlon <adrian.conlon@arup.com>
2017-06-19 13:53:00 +01:00

20 lines
313 B
C++

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