LOCK instruction: ensure it is always illegal on opcodes 90h and ECh.

This commit is contained in:
OBattler
2025-05-18 02:20:18 +02:00
parent 30d7c8f51c
commit b3147ee473
4 changed files with 36 additions and 5 deletions

View File

@@ -753,7 +753,7 @@ opLOCK(uint32_t fetchdat)
return 0;
cpu_state.pc++;
ILLEGAL_ON((fetchdat & 0xff) == 0x90);
ILLEGAL_ON(((fetchdat & 0xff) == 0x90) || ((fetchdat & 0xff) == 0xec));
CLOCK_CYCLES(4);
PREFETCH_PREFIX();