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

View File

@ -25,7 +25,7 @@ namespace EightBit {
private: private:
mutable boost::format m_formatter; mutable boost::format m_formatter;
void disassemble(std::ostringstream& output, const Intel8080& cpu, uint16_t pc); void disassemble(std::ostringstream& output, Intel8080& cpu, uint16_t pc);
void disassemble( void disassemble(
std::ostringstream& output, std::ostringstream& output,

View File

@ -166,9 +166,9 @@ std::string EightBit::Disassembler::disassemble(Intel8080& cpu) {
return output.str(); 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); auto opcode = memory.peek(pc);
output << hex(opcode); output << hex(opcode);

View File

@ -30,11 +30,11 @@ namespace EightBit {
bool m_prefixED; bool m_prefixED;
bool m_prefixFD; bool m_prefixFD;
void disassemble(std::ostringstream& output, const Z80& cpu, uint16_t pc); void disassemble(std::ostringstream& output, Z80& cpu, uint16_t pc);
void disassembleCB( void disassembleCB(
std::ostringstream& output, std::ostringstream& output,
const Z80& cpu, Z80& cpu,
uint16_t pc, uint16_t pc,
std::string& specification, std::string& specification,
int& dumpCount, int& dumpCount,
@ -43,7 +43,7 @@ namespace EightBit {
void disassembleED( void disassembleED(
std::ostringstream& output, std::ostringstream& output,
const Z80& cpu, Z80& cpu,
uint16_t pc, uint16_t pc,
std::string& specification, std::string& specification,
int& dumpCount, int& dumpCount,
@ -52,7 +52,7 @@ namespace EightBit {
void disassembleOther( void disassembleOther(
std::ostringstream& output, std::ostringstream& output,
const Z80& cpu, Z80& cpu,
uint16_t pc, uint16_t pc,
std::string& specification, std::string& specification,
int& dumpCount, int& dumpCount,

View File

@ -176,9 +176,9 @@ std::string EightBit::Disassembler::disassemble(Z80& cpu) {
return output.str(); return output.str();
} }
void EightBit::Disassembler::disassemble(std::ostringstream& output, const Z80& cpu, uint16_t pc) { void EightBit::Disassembler::disassemble(std::ostringstream& output, Z80& cpu, uint16_t pc) {
const auto& memory = cpu.getMemory(); auto& memory = cpu.getMemory();
auto opcode = memory.peek(pc); auto opcode = memory.peek(pc);
const auto& decoded = cpu.getDecodedOpcode(opcode); const auto& decoded = cpu.getDecodedOpcode(opcode);
@ -237,7 +237,7 @@ void EightBit::Disassembler::disassemble(std::ostringstream& output, const Z80&
void EightBit::Disassembler::disassembleCB( void EightBit::Disassembler::disassembleCB(
std::ostringstream& output, std::ostringstream& output,
const Z80& cpu, Z80& cpu,
uint16_t pc, uint16_t pc,
std::string& specification, std::string& specification,
int& dumpCount, int& dumpCount,
@ -287,7 +287,7 @@ void EightBit::Disassembler::disassembleCB(
void EightBit::Disassembler::disassembleED( void EightBit::Disassembler::disassembleED(
std::ostringstream& output, std::ostringstream& output,
const Z80& cpu, Z80& cpu,
uint16_t pc, uint16_t pc,
std::string& specification, std::string& specification,
int& dumpCount, int& dumpCount,
@ -421,7 +421,7 @@ void EightBit::Disassembler::disassembleED(
void EightBit::Disassembler::disassembleOther( void EightBit::Disassembler::disassembleOther(
std::ostringstream& output, std::ostringstream& output,
const Z80& cpu, Z80& cpu,
uint16_t pc, uint16_t pc,
std::string& specification, std::string& specification,
int& dumpCount, int& dumpCount,