Fix flags on the AAM and AAD instructions.

This commit is contained in:
OBattler
2024-10-16 06:56:55 +02:00
parent 0a3f1e3279
commit e8c1dc1bac
2 changed files with 7 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ opAAD(uint32_t fetchdat)
base = 10;
AL = (AH * base) + AL;
AH = 0;
setznp16(AX);
setznp8(AL);
CLOCK_CYCLES((is486) ? 14 : 19);
PREFETCH_RUN(is486 ? 14 : 19, 2, -1, 0, 0, 0, 0, 0);
return 0;
@@ -39,7 +39,7 @@ opAAM(uint32_t fetchdat)
base = 10;
AH = AL / base;
AL %= base;
setznp16(AX);
setznp8(AL);
CLOCK_CYCLES((is486) ? 15 : 17);
PREFETCH_RUN(is486 ? 15 : 17, 2, -1, 0, 0, 0, 0, 0);
return 0;