aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/instruction.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-11-25 15:08:07 +0100
committerKarel Kočí <cynerd@email.cz>2017-11-25 15:08:07 +0100
commitfcb67b16d13de62092e3720d08adb0ef5e35de3d (patch)
treeca9daaf9d80e14bddff224f2f7e81123acdd7dd8 /qtmips_machine/instruction.cpp
parentf5d4468b2a8afa28ddad0bad425f762725eb69a7 (diff)
downloadqtmips-fcb67b16d13de62092e3720d08adb0ef5e35de3d.tar.gz
qtmips-fcb67b16d13de62092e3720d08adb0ef5e35de3d.tar.bz2
qtmips-fcb67b16d13de62092e3720d08adb0ef5e35de3d.zip
Test pipelined core
Diffstat (limited to 'qtmips_machine/instruction.cpp')
-rw-r--r--qtmips_machine/instruction.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/qtmips_machine/instruction.cpp b/qtmips_machine/instruction.cpp
index 58b6ffa..b6abebc 100644
--- a/qtmips_machine/instruction.cpp
+++ b/qtmips_machine/instruction.cpp
@@ -16,6 +16,13 @@ const struct InstructionMap instruction_map[] = {
IM_UNKNOWN,
IM_UNKNOWN,
{"ADDI"},
+ {"ADDIU"},
+ {"SLTI"},
+ {"SLTIU"},
+ {"ANDI"},
+ {"ORI"},
+ {"XORI"},
+ {"LUI"},
IM_UNKNOWN,
IM_UNKNOWN,
IM_UNKNOWN,
@@ -116,3 +123,9 @@ bool Instruction::operator==(const Instruction &c) const {
bool Instruction::operator!=(const Instruction &c) const {
return ! this->operator==(c);
}
+
+Instruction &Instruction::operator=(const Instruction &c) {
+ if (this != &c)
+ this->dt = c.data();
+ return *this;
+}