aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/instruction.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-07 17:57:22 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-07 17:57:22 +0100
commit780b3a9daa6a4c4eca9c095ad990334b43cc0dfa (patch)
treeb3da1957fbf5b0fedebf5e7732268bafeea86354 /qtmips_machine/instruction.h
parent60c7bfa8260f9aa68bd7947ecddfe64e030b0c7a (diff)
downloadqtmips-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_machine/instruction.h')
-rw-r--r--qtmips_machine/instruction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_machine/instruction.h b/qtmips_machine/instruction.h
index b26d9ac..e896ace 100644
--- a/qtmips_machine/instruction.h
+++ b/qtmips_machine/instruction.h
@@ -110,7 +110,7 @@ public:
bool operator!=(const Instruction &c) const;
Instruction &operator=(const Instruction &c);
- QString to_str() const;
+ QString to_str(std::int32_t inst_addr = 0) const;
private:
std::uint32_t dt;