Another fix.
This commit is contained in:
@@ -32,7 +32,12 @@ static int opAAM(uint32_t fetchdat)
|
||||
{
|
||||
int base = getbytef();
|
||||
|
||||
if (!base || !cpu_isintel) base = 10;
|
||||
if (base == 0) {
|
||||
x86de(NULL, 0);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!cpu_isintel) base = 10;
|
||||
|
||||
AH = AL / base;
|
||||
AL %= base;
|
||||
|
@@ -168,8 +168,12 @@ x86_doabrt(int x86_abrt)
|
||||
void
|
||||
x86de(char *s, uint16_t error)
|
||||
{
|
||||
#ifdef BAD_CODE
|
||||
cpu_state.abrt = ABRT_DE;
|
||||
abrt_error = error;
|
||||
#else
|
||||
x86_int(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user