Fetching bytes/words and stack access are more processor specific than I thought.

Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian.Conlon
2017-07-07 09:27:06 +01:00
parent 7cd0f324de
commit 3c0a1697fd
7 changed files with 22 additions and 21 deletions

View File

@@ -5,7 +5,6 @@ EightBit::Processor::Processor(Memory& memory)
: m_memory(memory),
cycles(0),
m_halted(false) {
SP().word = 0xffff;
PC().word = 0;
}
@@ -14,6 +13,5 @@ void EightBit::Processor::reset() {
}
void EightBit::Processor::initialise() {
SP().word = 0xffff;
reset();
}