From 1f20805dfd189bd28a9b7b2f97ec3569096adad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 14 Feb 2018 13:51:53 +0100 Subject: Swap rs and rt in I instructons decoding --- qtmips_machine/instruction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtmips_machine/instruction.cpp b/qtmips_machine/instruction.cpp index 43d8eac..cd029fa 100644 --- a/qtmips_machine/instruction.cpp +++ b/qtmips_machine/instruction.cpp @@ -239,7 +239,7 @@ 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).toUpper(); + res += " $" + QString::number(rt()) + ", $" + QString::number(rs()) + ", 0x" + QString::number(immediate(), 16).toUpper(); break; case IT_J: res += im.name; -- cgit v1.2.3