Tidy up register and static method access.

Signed-off-by: Adrian.Conlon <adrian.conlon@arup.com>
This commit is contained in:
Adrian.Conlon
2017-06-19 13:53:00 +01:00
parent 23108a8536
commit c9bf24d1fa
16 changed files with 181 additions and 171 deletions

View File

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