diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-07 17:57:22 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-07 17:57:22 +0100 |
commit | 780b3a9daa6a4c4eca9c095ad990334b43cc0dfa (patch) | |
tree | b3da1957fbf5b0fedebf5e7732268bafeea86354 /qtmips_gui/programdock.cpp | |
parent | 60c7bfa8260f9aa68bd7947ecddfe64e030b0c7a (diff) | |
download | qtmips-780b3a9daa6a4c4eca9c095ad990334b43cc0dfa.tar.gz qtmips-780b3a9daa6a4c4eca9c095ad990334b43cc0dfa.tar.bz2 qtmips-780b3a9daa6a4c4eca9c095ad990334b43cc0dfa.zip |
Correct display of jump and branch instructions.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/programdock.cpp')
-rw-r--r-- | qtmips_gui/programdock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<QWidget*> 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; |