Made AAM with base 0 work as before, fixes Microsoft Flight Simulator 98.

This commit is contained in:
OBattler
2022-08-07 23:35:12 +02:00
parent 730af4dd53
commit 4bd7cf3653

View File

@@ -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;