mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-06-21 12:29:32 +00:00
18 lines
271 B
C++
18 lines
271 B
C++
#include "stdafx.h"
|
|
#include "Processor.h"
|
|
|
|
EightBit::Processor::Processor(Memory& memory)
|
|
: m_memory(memory),
|
|
cycles(0),
|
|
m_halted(false) {
|
|
PC().word = 0;
|
|
}
|
|
|
|
void EightBit::Processor::reset() {
|
|
PC().word = 0;
|
|
}
|
|
|
|
void EightBit::Processor::initialise() {
|
|
reset();
|
|
}
|