From b40c4ebcd76df43366cf769835d48194b2673281 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 1 Apr 2021 17:03:48 +0200 Subject: Added 67 89 opcode --- src/emu/x64run67.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src') diff --git a/src/emu/x64run67.c b/src/emu/x64run67.c index 7db5494f..c5a1f221 100644 --- a/src/emu/x64run67.c +++ b/src/emu/x64run67.c @@ -43,6 +43,21 @@ int Run67(x64emu_t *emu, rex_t rex) switch(opcode) { + case 0x89: /* MOV Ed,Gd */ + nextop = F8; + GETED32(0); + GETGD; + if(rex.w) { + ED->q[0] = GD->q[0]; + } else { + //if ED is a reg, than the opcode works like movzx + if(MODREG) + ED->q[0] = GD->dword[0]; + else + ED->dword[0] = GD->dword[0]; + } + break; + case 0x8D: /* LEA Gd,M */ nextop = F8; GETED32(0); -- cgit 1.4.1