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:
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(
std::ostringstream& output,

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);

View File

@ -30,11 +30,11 @@ namespace EightBit {
bool m_prefixED;
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(
std::ostringstream& output,
const Z80& cpu,
Z80& cpu,
uint16_t pc,
std::string& specification,
int& dumpCount,
@ -43,7 +43,7 @@ namespace EightBit {
void disassembleED(
std::ostringstream& output,
const Z80& cpu,
Z80& cpu,
uint16_t pc,
std::string& specification,
int& dumpCount,
@ -52,7 +52,7 @@ namespace EightBit {
void disassembleOther(
std::ostringstream& output,
const Z80& cpu,
Z80& cpu,
uint16_t pc,
std::string& specification,
int& dumpCount,

View File

@ -176,9 +176,9 @@ std::string EightBit::Disassembler::disassemble(Z80& cpu) {
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);
const auto& decoded = cpu.getDecodedOpcode(opcode);
@ -237,7 +237,7 @@ void EightBit::Disassembler::disassemble(std::ostringstream& output, const Z80&
void EightBit::Disassembler::disassembleCB(
std::ostringstream& output,
const Z80& cpu,
Z80& cpu,
uint16_t pc,
std::string& specification,
int& dumpCount,
@ -287,7 +287,7 @@ void EightBit::Disassembler::disassembleCB(
void EightBit::Disassembler::disassembleED(
std::ostringstream& output,
const Z80& cpu,
Z80& cpu,
uint16_t pc,
std::string& specification,
int& dumpCount,
@ -421,7 +421,7 @@ void EightBit::Disassembler::disassembleED(
void EightBit::Disassembler::disassembleOther(
std::ostringstream& output,
const Z80& cpu,
Z80& cpu,
uint16_t pc,
std::string& specification,
int& dumpCount,