aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-02-14 14:02:59 +0100
committerKarel Kočí <cynerd@email.cz>2018-02-14 14:02:59 +0100
commit31db65e43406dcafe5d2987587352e965f6b5171 (patch)
tree97502b46a940ab2a445ecefa473a7b4822b895c3
parent1f20805dfd189bd28a9b7b2f97ec3569096adad1 (diff)
downloadqtmips-31db65e43406dcafe5d2987587352e965f6b5171.tar.gz
qtmips-31db65e43406dcafe5d2987587352e965f6b5171.tar.bz2
qtmips-31db65e43406dcafe5d2987587352e965f6b5171.zip
Another swap in instruction decoding
-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 cd029fa..c4ca492 100644
--- a/qtmips_machine/instruction.cpp
+++ b/qtmips_machine/instruction.cpp
@@ -253,7 +253,7 @@ QString Instruction::to_str() const {
return QString("UNKNOWN");
const struct AluInstructionMap &am = alu_instruction_map[funct()];
res += am.name;
- res += " $" + QString::number(rs()) + ", $" + QString::number(rt()) + ", $" + QString::number(rd());
+ res += " $" + QString::number(rd()) + ", $" + QString::number(rs()) + ", $" + QString::number(rt());
break;
}
}