Share instruction decoding mechanism between Intel derived processors.

Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian.Conlon
2017-07-21 13:33:17 +01:00
parent 7c3fc469a8
commit beca76d733
5 changed files with 74 additions and 33 deletions

View File

@@ -9,6 +9,11 @@ EightBit::IntelProcessor::IntelProcessor(Memory& memory)
void EightBit::IntelProcessor::initialise() {
Processor::initialise();
for (int i = 0; i < 0x100; ++i) {
m_decodedOpcodes[i] = i;
}
MEMPTR().word = 0;
SP().word = 0xffff;
}