diff --git a/instructions.cpp b/instructions.cpp index e66b860..ba79224 100644 --- a/instructions.cpp +++ b/instructions.cpp @@ -308,9 +308,9 @@ void Instructions::cmp_rm32_imm8(){ void Instructions::set_flag(int flag, uint32_t flag_type){ if (flag) { - this->eflags &= ~flag_type; - } else { this->eflags |= flag_type; + } else { + this->eflags &= ~flag_type; } }