diff --git a/InstructionSets/M68k/Decoder.cpp b/InstructionSets/M68k/Decoder.cpp index 367848932..414b9768d 100644 --- a/InstructionSets/M68k/Decoder.cpp +++ b/InstructionSets/M68k/Decoder.cpp @@ -1144,8 +1144,6 @@ Preinstruction Predecoder::decode6(uint16_t instruction) { template Preinstruction Predecoder::decode7(uint16_t instruction) { - using Op = Operation; - // 4-134 (p238) if(!(instruction & 0x100)) { Decode(MOVEQ); diff --git a/InstructionSets/x86/Decoder.cpp b/InstructionSets/x86/Decoder.cpp index ae8447e14..d4db0b021 100644 --- a/InstructionSets/x86/Decoder.cpp +++ b/InstructionSets/x86/Decoder.cpp @@ -849,7 +849,7 @@ std::pair::InstructionT> Decoder::decode(con default: assert(false); } - if(expects_sib && (source_ == Source::Indirect | destination_ == Source::Indirect)) { + if(expects_sib && (source_ == Source::Indirect || destination_ == Source::Indirect)) { phase_ = Phase::ScaleIndexBase; } else { phase_ = (displacement_size_ != DataSize::None || operand_size_ != DataSize::None) ? Phase::DisplacementOrOperand : Phase::ReadyToPost;