Fix flags set by AAM instruction

This commit is contained in:
Fabian 2022-09-05 23:41:18 +09:00
commit 4cab56f2f4

View file

@ -345,6 +345,7 @@ pub unsafe fn bcd_aam(imm8: i32) {
write_reg8(AH, temp as i32 / imm8);
write_reg8(AL, temp as i32 % imm8);
*last_result = read_reg8(AL);
*last_op_size = OPSIZE_8;
*flags_changed = FLAGS_ALL & !1 & !FLAG_ADJUST & !FLAG_OVERFLOW;
*flags &= !1 & !FLAG_ADJUST & !FLAG_OVERFLOW
};