From 19fc4401004c0c5f51eb8c8b52ec8f24dcda7222 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 5 Mar 2021 14:15:15 +0100 Subject: Added 0F BE/BF MOVSX opcodes --- src/emu/x64run0f.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src') diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c index d49f8807..8f40aa5f 100644 --- a/src/emu/x64run0f.c +++ b/src/emu/x64run0f.c @@ -78,6 +78,29 @@ int Run0F(x64emu_t *emu, rex_t rex) GD->q[0] = EB->byte[0]; break; + case 0xBE: /* MOVSX Gd,Eb */ + nextop = F8; + GETEB; + GETGD; + if(rex.w) + GD->sq[0] = EB->sbyte[0]; + else { + GD->sdword[0] = EB->sbyte[0]; + GD->dword[1] = 0; + } + break; + case 0xBF: /* MOVSX Gd,Ew */ + nextop = F8; + GETEW; + GETGD; + if(rex.w) + GD->sq[0] = EW->sword[0]; + else { + GD->sdword[0] = EW->sword[0]; + GD->dword[1] = 0; + } + break; + default: return 1; } -- cgit 1.4.1