Changes to the "const"ness of peek necessitate some changes.

Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian.Conlon
2017-08-24 11:06:23 +01:00
parent 448ee2f09f
commit 19c0b93262
4 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -166,9 +166,9 @@ std::string EightBit::Disassembler::disassemble(Intel8080& cpu) {
return output.str();
}
void EightBit::Disassembler::disassemble(std::ostringstream& output, const Intel8080& cpu, uint16_t pc) {
void EightBit::Disassembler::disassemble(std::ostringstream& output, Intel8080& cpu, uint16_t pc) {
const auto& memory = cpu.getMemory();
auto& memory = cpu.getMemory();
auto opcode = memory.peek(pc);
output << hex(opcode);