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) {