aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/instruction.cpp
diff options
context:
space:
mode:
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;
+}