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
+1 -6
View File
@@ -7,12 +7,7 @@ EightBit::Intel8080::Intel8080(Memory& memory, InputOutput& ports)
: IntelProcessor(memory),
m_interrupt(false),
m_ports(ports) {
bc.word = de.word = hl.word = 0;
}
void EightBit::Intel8080::initialise() {
IntelProcessor::initialise();
AF().word = BC().word = DE().word = HL().word = 0;
bc.word = de.word = hl.word = Mask16;
}
#pragma endregion Reset and initialisation