From 4992b723e74008ad181f7ca8a20311814e8b122b Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Mon, 8 Apr 2024 14:44:03 +0200 Subject: [PATCH] const --- cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu.cpp b/cpu.cpp index 8513971..42a5c09 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -619,7 +619,7 @@ bool cpu::additional_double_operand_instructions(const uint16_t instr) const uint8_t dst_mode = (dst >> 3) & 7; const uint8_t dst_reg = dst & 7; - int operation = (instr >> 9) & 7; + const int operation = (instr >> 9) & 7; switch(operation) { case 0: { // MUL