m68k: allow FPU instructions on '020 (it's possible to have an external 68881/882) and fix missing break; in the FPU [Hans Ostermeyer]

This commit is contained in:
Miodrag Milanovic 2012-03-14 17:00:46 +00:00
parent 488b47e682
commit d3e82f0bda
2 changed files with 3 additions and 2 deletions

View File

@ -367,8 +367,8 @@ name size proc ea bit pattern A+-DXWLdxI 0 1 2 3 4 2 F 000 010 0
M68KMAKE_TABLE_START
1010 0 . . 1010............ .......... U U U U U U U 4 4 4 4 4 4 4
1111 0 . . 1111............ .......... U U U U U U U 4 4 4 4 4 4 4
040fpu0 32 . . 11110010........ .......... . . . U U U . . . . 0 0 0 .
040fpu1 32 . . 11110011........ .......... . . . U U U . . . . 0 0 0 .
040fpu0 32 . . 11110010........ .......... . . U U U U . . . 0 0 0 0 .
040fpu1 32 . . 11110011........ .......... . . U U U U . . . 0 0 0 0 .
abcd 8 rr . 1100...100000... .......... U U U U U U U 6 6 4 4 4 4 4
abcd 8 mm ax7 1100111100001... .......... U U U U U U U 18 18 16 16 16 16 16
abcd 8 mm ay7 1100...100001111 .......... U U U U U U U 18 18 16 16 16 16 16

View File

@ -1370,6 +1370,7 @@ static void fpgen_rm_reg(m68ki_cpu_core *m68k, UINT16 w2)
REG_FP(m68k)[dst] = double_to_fx80((double)temp2);
SET_CONDITION_CODES(m68k, REG_FP(m68k)[dst]);
m68k->remaining_cycles -= 6;
break;
}
case 0x20: // FDIV
{