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

@ -13,8 +13,8 @@ EightBit::Disassembler::Disassembler() {
std::string EightBit::Disassembler::state(Intel8080& cpu) {
auto pc = cpu.getProgramCounter();
auto sp = cpu.getStackPointer();
auto pc = cpu.PC();
auto sp = cpu.SP();
auto a = cpu.A();
auto f = cpu.F();
@ -45,7 +45,7 @@ std::string EightBit::Disassembler::state(Intel8080& cpu) {
std::string EightBit::Disassembler::disassemble(Intel8080& cpu) {
const auto& memory = cpu.getMemory();
auto pc = cpu.getProgramCounter();
auto pc = cpu.PC();
auto opcode = memory.peek(pc.word);
const auto& instruction = cpu.getInstructions()[opcode];