mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-23 00:29:47 +00:00
Changes to the "const"ness of peek necessitate some changes.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
448ee2f09f
commit
19c0b93262
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user