1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-24 12:30:17 +00:00

Correct SIB test.

This commit is contained in:
Thomas Harte 2022-04-27 19:53:15 -04:00
parent 90bfec8c04
commit 5e355383df

View File

@ -849,7 +849,7 @@ std::pair<int, typename Decoder<model>::InstructionT> Decoder<model>::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;