From 780b3a9daa6a4c4eca9c095ad990334b43cc0dfa Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Thu, 7 Feb 2019 17:57:22 +0100 Subject: Correct display of jump and branch instructions. Signed-off-by: Pavel Pisa --- qtmips_gui/programdock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtmips_gui/programdock.cpp') diff --git a/qtmips_gui/programdock.cpp b/qtmips_gui/programdock.cpp index 192352b..4c379eb 100644 --- a/qtmips_gui/programdock.cpp +++ b/qtmips_gui/programdock.cpp @@ -111,7 +111,7 @@ QList ProgramView::row_widget(std::uint32_t address, QWidget *parent) l->setFont(f); l->setMinimumWidth(60); if (memory != nullptr) - l->setText(machine::Instruction(memory->read_word(address)).to_str()); + l->setText(machine::Instruction(memory->read_word(address)).to_str(address)); widgs.append(l); return widgs; -- cgit v1.2.3