Previous 15994 Revisions Next

r13849 Wednesday 4th January, 2012 at 09:08:57 UTC by Miodrag Milanović
Implemented UD2 instruction, thing is that in any case it should raise invalid trap and not unimplemented, but exist as official from Pentium (no whatsnew)
[src/emu/cpu/i386]i386ops.h pentops.c

src/emu/cpu/i386/i386ops.h
r13848r13849
293293   { 0x07,      OP_2BYTE|OP_I386,         I386OP(loadall),            I386OP(loadall),         },
294294   { 0x08,      OP_2BYTE|OP_I486,         I486OP(invd),               I486OP(invd),            },
295295   { 0x09,      OP_2BYTE|OP_I486,         I486OP(wbinvd),               I486OP(wbinvd),            },
296   { 0x0B,      OP_2BYTE|OP_I386,         I386OP(unimplemented),         I386OP(unimplemented),      },
296   { 0x0B,      OP_2BYTE|OP_PENTIUM,      PENTIUMOP(ud2),               PENTIUMOP(ud2),            },
297297   { 0x20,      OP_2BYTE|OP_I386,         I386OP(mov_r32_cr),            I386OP(mov_r32_cr),         },
298298   { 0x21,      OP_2BYTE|OP_I386,         I386OP(mov_r32_dr),            I386OP(mov_r32_dr),         },
299299   { 0x22,      OP_2BYTE|OP_I386,         I386OP(mov_cr_r32),            I386OP(mov_cr_r32),         },
src/emu/cpu/i386/pentops.c
r13848r13849
8282   }
8383}
8484
85static void PENTIUMOP(ud2)(i386_state *cpustate)   // Opcode 0x0f 0b
86{
87   i386_trap(cpustate, 6, 0, 0);
88}
No newline at end of file

Previous 15994 Revisions Next


© 1998-2018 The MESS Team