From dea79c6deae5c56c9cd5b3fbd0f7a681b615b345 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 17 Jan 2021 20:56:22 -0500 Subject: [PATCH] Adds missing #include. --- InstructionSets/M50740/Executor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/InstructionSets/M50740/Executor.cpp b/InstructionSets/M50740/Executor.cpp index 8a9f2e286..d15f8988c 100644 --- a/InstructionSets/M50740/Executor.cpp +++ b/InstructionSets/M50740/Executor.cpp @@ -8,6 +8,8 @@ #include "Executor.hpp" +#include + using namespace InstructionSet::M50740; Executor::Executor() { @@ -28,7 +30,7 @@ template void Executor::pe int address; #define next8() memory_[(program_counter_ + 1) & 0x1fff] -#define next16() memory_[(program_counter_ + 1) & 0x1fff] | (memory_[(program_counter_ + 2) & 0x1fff] << 8) +#define next16() (memory_[(program_counter_ + 1) & 0x1fff] | (memory_[(program_counter_ + 2) & 0x1fff] << 8)) switch(addressing_mode) {