Don't set ZF on MUL/MULU operations on NEC V20/V30 (#2)

This commit is contained in:
Cacodemon345
2022-09-04 00:27:05 +06:00
committed by GitHub
parent 028cbe7b4e
commit 18d15758f5

View File

@@ -1451,9 +1451,7 @@ set_co_mul(int bits, int carry)
{
set_cf(carry);
set_of(carry);
/* NOTE: When implementing the V20, care should be taken to not change
the zero flag. */
set_zf_ex(!carry);
if (!is_nec) set_zf_ex(!carry);
if (!carry)
wait(1, 0);
}