about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run0f.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index 667dbb1f..048e1a40 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -684,13 +684,12 @@ int Run0F(x64emu_t *emu, rex_t rex)
                 }

             } else {

                 cmp32(emu, R_EAX, ED->dword[0]);

+                R_RAX = ED->dword[0];   // to erase upper part of RAX

                 if(ACCESS_FLAG(F_ZF)) {

                     if(MODREG)

                         ED->q[0] = GD->dword[0];

                     else

                         ED->dword[0] = GD->dword[0];

-                } else {

-                    R_RAX = ED->dword[0];

                 }

             }

             break;