diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-03-08 16:47:00 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-03-08 16:47:00 +0100 |
| commit | 460277289bafc73aba1a548d893364235ef5aed6 (patch) | |
| tree | 9e3baef5eaa0847eb8cdbd2ed4e5428ea128a9f4 /src/emu | |
| parent | 35ed305718688dc28c967167c3cdffbafce50ab0 (diff) | |
| download | box64-460277289bafc73aba1a548d893364235ef5aed6.tar.gz box64-460277289bafc73aba1a548d893364235ef5aed6.zip | |
POPF opcode should not overwrite IF bit
Diffstat (limited to 'src/emu')
| -rw-r--r-- | src/emu/x64run.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/x64run.c b/src/emu/x64run.c index e9092067..c5d29a1c 100644 --- a/src/emu/x64run.c +++ b/src/emu/x64run.c @@ -860,7 +860,7 @@ x64emurun: case 0x9D: /* POPF */ if(ACCESS_FLAG(F_TF) && !tf_next) --tf_next; - emu->eflags.x64 = (((rex.is32bits?Pop32(emu):Pop64(emu)) & 0x3F7FD7)/* & (0xffff-40)*/ ) | 0x2; // mask off res2 and res3 and on res1 + emu->eflags.x64 = (((rex.is32bits?Pop32(emu):Pop64(emu)) & 0x3F7FD7)/* & (0xffff-40)*/ ) | 0x202; // mask off res2 and res3 and on res1 RESET_FLAGS(emu); if(ACCESS_FLAG(F_TF)) ++tf_next; |