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
+3 -3
View File
@@ -33,11 +33,11 @@ void Board::initialise() {
}
m_cpu.initialise();
m_cpu.setProgramCounter(m_configuration.getStartAddress());
m_cpu.PC() = m_configuration.getStartAddress();
}
void Board::Cpu_ExecutingInstruction_Cpm(const EightBit::Intel8080&) {
auto pc = m_cpu.getProgramCounter();
auto pc = m_cpu.PC();
switch (pc.word) {
case 0x0: // CP/M warm start
m_cpu.halt();
@@ -69,7 +69,7 @@ void Board::bdos() {
void Board::Cpu_ExecutingInstruction_Profile(const EightBit::Intel8080& cpu) {
const auto pc = cpu.getProgramCounter();
const auto pc = m_cpu.PC();
m_profiler.addAddress(pc.word);
m_profiler.addInstruction(m_memory.peek(pc.word));