2017-06-11 08:45:34 +00:00
|
|
|
#include "stdafx.h"
|
|
|
|
#include "IntelProcessor.h"
|
|
|
|
|
|
|
|
EightBit::IntelProcessor::IntelProcessor(Memory& memory)
|
|
|
|
: Processor(memory) {
|
2017-09-01 15:01:40 +00:00
|
|
|
SP().word = Mask16;
|
2017-06-11 08:45:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void EightBit::IntelProcessor::initialise() {
|
|
|
|
Processor::initialise();
|
2017-07-21 12:33:17 +00:00
|
|
|
for (int i = 0; i < 0x100; ++i) {
|
|
|
|
m_decodedOpcodes[i] = i;
|
|
|
|
}
|
2017-06-11 08:45:34 +00:00
|
|
|
}
|
2017-09-01 15:01:40 +00:00
|
|
|
|
|
|
|
void EightBit::IntelProcessor::reset() {
|
|
|
|
Processor::reset();
|
|
|
|
SP().word = AF().word = BC().word = DE().word = HL().word = Mask16;
|
|
|
|
}
|