mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-04-26 06:17:47 +00:00
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:
@@ -4,9 +4,11 @@
|
||||
EightBit::IntelProcessor::IntelProcessor(Memory& memory)
|
||||
: Processor(memory) {
|
||||
MEMPTR().word = 0;
|
||||
SP().word = 0xffff;
|
||||
}
|
||||
|
||||
void EightBit::IntelProcessor::initialise() {
|
||||
Processor::initialise();
|
||||
MEMPTR().word = 0;
|
||||
SP().word = 0xffff;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user