Rationalise some of the reset/initialise logic across pProcessor implementations.

Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian.Conlon
2017-09-01 16:01:40 +01:00
parent ef3203d943
commit 9b43b74c28
12 changed files with 24 additions and 61 deletions

View File

@@ -6,11 +6,11 @@ EightBit::Processor::Processor(Memory& memory)
cycles(0),
m_halted(false),
m_power(false) {
PC().word = 0;
PC().word = MEMPTR().word = 0;
}
void EightBit::Processor::reset() {
PC().word = 0;
PC().word = MEMPTR().word = 0;
}
void EightBit::Processor::initialise() {