PCem
changeset 19:925de5938e9a
FPU opcodes 0xd9 0xd8-0xdf, despite being undefined, do not throw an illegal instruction exception. Eradicator now works.
| author | TomW |
|---|---|
| date | Sat Aug 24 15:11:30 2013 +0100 |
| parents | b23d087f2489 |
| children | 62da6e2cb833 |
| files | src/x87.c |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/src/x87.c Tue Aug 13 19:20:28 2013 +0100 1.2 +++ b/src/x87.c Sat Aug 24 15:11:30 2013 +0100 1.3 @@ -414,6 +414,10 @@ 1.4 if (fplog) pclog("FNOP\n"); 1.5 cycles-=3; 1.6 return; 1.7 + case 0xD8: case 0xD9: case 0xDA: case 0xDB: /*Invalid, but apparently not illegal*/ 1.8 + case 0xDC: case 0xDD: case 0xDE: case 0xDF: 1.9 + cycles-=3; 1.10 + return; 1.11 case 0xE0: /*FCHS*/ 1.12 if (fplog) pclog("FCHS\n"); 1.13 ST(0)=-ST(0);
