diff options
author | Karel Kočí <cynerd@email.cz> | 2018-02-14 14:02:59 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-02-14 14:02:59 +0100 |
commit | 31db65e43406dcafe5d2987587352e965f6b5171 (patch) | |
tree | 97502b46a940ab2a445ecefa473a7b4822b895c3 /qtmips_machine | |
parent | 1f20805dfd189bd28a9b7b2f97ec3569096adad1 (diff) | |
download | qtmips-31db65e43406dcafe5d2987587352e965f6b5171.tar.gz qtmips-31db65e43406dcafe5d2987587352e965f6b5171.tar.bz2 qtmips-31db65e43406dcafe5d2987587352e965f6b5171.zip |
Another swap in instruction decoding
Diffstat (limited to 'qtmips_machine')
-rw-r--r-- | qtmips_machine/instruction.cpp | 2 |
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; } } |