The AAM instruction on NEC V20/V30 does in fact support bases other than 10, fixes #2939.

This commit is contained in:
OBattler
2023-08-18 19:14:50 +02:00
parent 597a6640f4
commit e387a6c2f5

View File

@@ -3463,11 +3463,15 @@ execx86(int cycs)
case 0xD4: /*AAM*/
wait(1, 0);
#ifdef NO_VARIANT_ON_NEC
if (is_nec) {
(void) pfq_fetchb();
cpu_src = 10;
} else
cpu_src = pfq_fetchb();
#else
cpu_src = pfq_fetchb();
#endif
if (x86_div(AL, 0))
set_pzs(16);
break;