mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-09-23 07:54:30 +00:00
c9bf24d1fa
Signed-off-by: Adrian.Conlon <adrian.conlon@arup.com>
20 lines
313 B
C++
20 lines
313 B
C++
#include "stdafx.h"
|
|
#include "Processor.h"
|
|
|
|
EightBit::Processor::Processor(Memory& memory)
|
|
: m_memory(memory),
|
|
cycles(0),
|
|
m_halted(false) {
|
|
SP().word = 0xffff;
|
|
PC().word = 0;
|
|
}
|
|
|
|
void EightBit::Processor::reset() {
|
|
PC().word = 0;
|
|
}
|
|
|
|
void EightBit::Processor::initialise() {
|
|
SP().word = 0xffff;
|
|
reset();
|
|
}
|