Rename ProcessorHandler::parseInstrAt -> ProcessorHandler::disassembleInstr
MODIFY
src/instructionmodel.cpp
src/instructionmodel.cpp
@@ -92,7 +92,7 @@ QVariant InstructionModel::stageData(uint32_t addr) const {
}
QVariant InstructionModel::instructionData(uint32_t addr) const {
- return ProcessorHandler::get()->parseInstrAt(addr);
+ return ProcessorHandler::get()->disassembleInstr(addr);
}
QVariant InstructionModel::data(const QModelIndex& index, int role) const {

MODIFY
src/processorhandler.cpp
src/processorhandler.cpp
@@ -212,7 +212,7 @@ unsigned long ProcessorHandler::getTextStart() const {
return 0;
}
-QString ProcessorHandler::parseInstrAt(const uint32_t addr) const {
+QString ProcessorHandler::disassembleInstr(const uint32_t addr) const {
if (m_program) {
return m_currentAssembler
->disassemble(m_currentProcessor->getMemory().readMem(addr), m_program.get()->symbols, addr)

MODIFY
src/processorhandler.h
src/processorhandler.h
@@ -79,10 +79,10 @@ public:
unsigned long getTextStart() const;
/**
- * @brief parseInstrAt
- * @return string representation of the instruction at @param addr
+ * @brief disassembleInstr
+ * @return disassembled representation of the instruction at @param addr in the current program
*/
- QString parseInstrAt(const uint32_t address) const;
+ QString disassembleInstr(const uint32_t address) const;
/**
* @brief getMemory & getRegisters

MODIFY
src/processortab.cpp
src/processortab.cpp
@@ -398,7 +398,7 @@ void ProcessorTab::updateInstructionLabels() {
instrString = stageInfo.state == StageInfo::State::Flushed ? "nop (flush)" : "nop (stall)";
instrLabel->setDefaultTextColor(Qt::red);
} else if (stageInfo.stage_valid) {
- instrString = ProcessorHandler::get()->parseInstrAt(stageInfo.pc);
+ instrString = ProcessorHandler::get()->disassembleInstr(stageInfo.pc);
instrLabel->setDefaultTextColor(QColor());
}
instrLabel->setText(instrString);

MODIFY
src/stagetablemodel.cpp
src/stagetablemodel.cpp
@@ -21,7 +21,7 @@ QVariant StageTableModel::headerData(int section, Qt::Orientation orientation, i
return QString::number(section);
} else {
const auto addr = indexToAddress(section);
- return ProcessorHandler::get()->parseInstrAt(addr);
+ return ProcessorHandler::get()->disassembleInstr(addr);
}
}

Rename ProcessorHandler::parseInstrAt -> ProcessorHandler::disassembleInstr