aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-02-14 13:51:53 +0100
committerKarel Kočí <cynerd@email.cz>2018-02-14 13:51:53 +0100
commit1f20805dfd189bd28a9b7b2f97ec3569096adad1 (patch)
treecf11a0987220499de507abea4f8af1b0a2024927 /qtmips_machine
parenta3faaa12e433a8ac4d82b481c276eb15039dc140 (diff)
downloadqtmips-1f20805dfd189bd28a9b7b2f97ec3569096adad1.tar.gz
qtmips-1f20805dfd189bd28a9b7b2f97ec3569096adad1.tar.bz2
qtmips-1f20805dfd189bd28a9b7b2f97ec3569096adad1.zip
Swap rs and rt in I instructons decoding
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/instruction.cpp2
1 files changed, 1 insertions, 1 deletions
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;