From 4bd7cf3653507814cb84e5c45bda59d6a2576494 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 7 Aug 2022 23:35:12 +0200 Subject: [PATCH] Made AAM with base 0 work as before, fixes Microsoft Flight Simulator 98. --- src/cpu/x86_ops_bcd.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/cpu/x86_ops_bcd.h b/src/cpu/x86_ops_bcd.h index b37b6a6df..2f64cbaf8 100644 --- a/src/cpu/x86_ops_bcd.h +++ b/src/cpu/x86_ops_bcd.h @@ -32,12 +32,7 @@ static int opAAM(uint32_t fetchdat) { int base = getbytef(); - if (base == 0) { - x86de(NULL, 0); - return 1; - } - - if (!cpu_isintel) base = 10; + if (!base || !cpu_isintel) base = 10; AH = AL / base; AL %= base;