Register operands on BOUND/LEA/LDS/LES/LFS/LGS/LSS now cause invalid opcode faults. Fixes NTVDM.

This commit is contained in:
TomW 2014-04-27 11:40:03 +01:00
commit 81e24b9cb5
4 changed files with 31 additions and 0 deletions

View file

@ -3,6 +3,17 @@
OpFn *x86_opcodes;
OpFn *x86_opcodes_0f;
#define ILLEGAL_ON(cond) \
do \
{ \
if ((cond)) \
{ \
pc = oldpc; \
x86illegal(); \
return 0; \
} \
} while (0)
static inline void PUSH_W(uint16_t val)
{
if (stack32)