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.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/qtmips_machine/instruction.cpp b/qtmips_machine/instruction.cpp
index 91bd1c8..58b6ffa 100644
--- a/qtmips_machine/instruction.cpp
+++ b/qtmips_machine/instruction.cpp
@@ -109,6 +109,10 @@ std::uint32_t Instruction::data() const {
return this->dt;
}
-bool Instruction::operator ==(const Instruction &c) const {
+bool Instruction::operator==(const Instruction &c) const {
return (this->data() == c.data());
}
+
+bool Instruction::operator!=(const Instruction &c) const {
+ return ! this->operator==(c);
+}