Fixed a bug in the 386 implementation of LOCK.

This commit is contained in:
Miran Grča
2024-02-14 02:29:31 +01:00
committed by GitHub
parent 93017fc3b3
commit f7c995738c

View File

@@ -743,7 +743,7 @@ opLOCK(uint32_t fetchdat)
if (legal == 1)
legal = ((fetch_dat.b[1] >> 6) != 0x03); /* reg is illegal */
else if (legal == 2) {
legal = lock_legal[fetch_dat.b[1]];
legal = lock_legal_0f[fetch_dat.b[1]];
if (legal == 1)
legal = ((fetch_dat.b[2] >> 6) != 0x03); /* reg,reg is illegal */
else if (legal == 3) {