diff options
author | Karel Kočí <cynerd@email.cz> | 2018-01-27 15:18:52 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-01-27 15:18:52 +0100 |
commit | b7f2cec55f9a90032fc225fed0c1427faeadc879 (patch) | |
tree | bcb192542a0bb8ce4a3b76600c1e2a671c6af382 /qtmips_machine | |
parent | 063da67766585bd1db5e8afd83e2f9eda88119c0 (diff) | |
download | qtmips-b7f2cec55f9a90032fc225fed0c1427faeadc879.tar.gz qtmips-b7f2cec55f9a90032fc225fed0c1427faeadc879.tar.bz2 qtmips-b7f2cec55f9a90032fc225fed0c1427faeadc879.zip |
Various graphics tweaks
Diffstat (limited to 'qtmips_machine')
-rw-r--r-- | qtmips_machine/instruction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_machine/instruction.cpp b/qtmips_machine/instruction.cpp index c34ff3a..43d8eac 100644 --- a/qtmips_machine/instruction.cpp +++ b/qtmips_machine/instruction.cpp @@ -239,12 +239,12 @@ QString Instruction::to_str() const { switch (im.type) { case IT_I: res += im.name; - res += " $" + QString::number(rs()) + ", $" + QString::number(rt()) + ", 0x" + QString::number(immediate(), 16); + res += " $" + QString::number(rs()) + ", $" + QString::number(rt()) + ", 0x" + QString::number(immediate(), 16).toUpper(); break; case IT_J: res += im.name; // TODO we need to know instruction address to expand address section by it - res += " " + QString::number(address(), 16); + res += " " + QString::number(address(), 16).toUpper(); break; case IT_R: { |