Register operands on BOUND/LEA/LDS/LES/LFS/LGS/LSS now cause invalid opcode faults. Fixes NTVDM.
This commit is contained in:
parent
876db9f38c
commit
81e24b9cb5
4 changed files with 31 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue