From e387a6c2f53e99cb0b42353a056d6e7e6e0a82cb Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 18 Aug 2023 19:14:50 +0200 Subject: [PATCH] The AAM instruction on NEC V20/V30 does in fact support bases other than 10, fixes #2939. --- src/cpu/808x.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cpu/808x.c b/src/cpu/808x.c index 84389874a..bd7bb30f1 100644 --- a/src/cpu/808x.c +++ b/src/cpu/808x.c @@ -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;