From 93ae43945439a3032b03818e84a137a4ae2e3838 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 5 Mar 2021 12:06:51 +0100 Subject: Added REX 88 MOV opcode and adjusted REX 8B one --- src/emu/x64run.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/emu/x64run.c b/src/emu/x64run.c index 13ec515e..97bd6b20 100755 --- a/src/emu/x64run.c +++ b/src/emu/x64run.c @@ -276,6 +276,12 @@ x64emurun: test32(emu, ED->dword[0], GD->dword[0]); break; + case 0x88: /* MOV Eb,Gb */ + nextop = F8; + GETEB; + GETGB; + EB->byte[0] = GB; + break; case 0x89: /* MOV Ed,Gd */ nextop = F8; GETED; @@ -297,11 +303,7 @@ x64emurun: if(rex.w) GD->q[0] = ED->q[0]; else - //if ED is a reg, than the opcode works like movzx - if((nextop&0xC0)==0xC0) - GD->q[0] = ED->dword[0]; - else - GD->dword[0] = ED->dword[0]; + GD->q[0] = ED->dword[0]; break; case 0x8D: /* LEA Gd,M */ -- cgit 1.4.1