aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/alu.h2
-rw-r--r--qtmips_machine/core.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/qtmips_machine/alu.h b/qtmips_machine/alu.h
index 95042f4..4d09013 100644
--- a/qtmips_machine/alu.h
+++ b/qtmips_machine/alu.h
@@ -16,7 +16,7 @@ enum AluOp : std::uint8_t {
ALU_OP_SRAV,
ALU_OP_JR,
ALU_OP_JALR,
- ALU_OP_MOVZ = 10,
+ ALU_OP_MOVZ,
ALU_OP_MOVN,
ALU_OP_MFHI = 16,
ALU_OP_MTHI,
diff --git a/qtmips_machine/core.h b/qtmips_machine/core.h
index 6366088..e583235 100644
--- a/qtmips_machine/core.h
+++ b/qtmips_machine/core.h
@@ -39,13 +39,11 @@ protected:
bool regwrite;
std::uint8_t rwrite; // Writeback register (multiplexed between rt and rd according to regd)
std::uint32_t alu_val; // Result of ALU execution
- // TODO
};
struct dtMemory {
bool regwrite;
std::uint8_t rwrite;
std::uint32_t alu_val;
- // TODO
};
struct dtFetch fetch();