From b7f2cec55f9a90032fc225fed0c1427faeadc879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 27 Jan 2018 15:18:52 +0100 Subject: Various graphics tweaks --- qtmips_machine/instruction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qtmips_machine') 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: { -- cgit v1.2.3