From ea8d7255463a32d495a08ee8f3cc8c6db11727cf Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 23 Nov 2023 18:21:21 +0100 Subject: [INTERPRETER] LES/LDS are valid only if next byte has high bit not set --- src/emu/x64run.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/emu/x64run.c b/src/emu/x64run.c index 6548f6b3..312eac33 100644 --- a/src/emu/x64run.c +++ b/src/emu/x64run.c @@ -1356,7 +1356,7 @@ x64emurun: STEP2 break; case 0xC4: /* LES Gd,Ed */ - if(rex.is32bits) { + if(rex.is32bits && !(PK(0)&0x80)) { nextop = F8; GETED(0); GETGD; @@ -1369,7 +1369,7 @@ x64emurun: } break; case 0xC5: /* LDS Gd,Ed */ - if(rex.is32bits) { + if(rex.is32bits && !(PK(0)&0x80)) { nextop = F8; GETED(0); GETGD; -- cgit 1.4.1