Yes, but that game is Windows 98 game (Hugo: The Evil Mirror), so I know that this is out of the scope of this project. (I submitted a fix to dosbox-x fork too with a bit more info on debugging this bug, but since it is a bug in the cpu emulation, I thought it will be worth fixing here too) So to help with testing on vanilla dosbox I took the Second Reality - Future Crew demo which uses the trap flag with IRET, and switched one of those IRETs to RETF POPF. This is the patch: printf '\x50\xB0\xCF\x2E\xA2\x11\x01\x2E\xA2\x22\x01\xB8\x5B\x5D\x2E\xA3\x0F\x01\x58\x5B\x5D\xCF'...
Fix trap flag emulation after POPF in dynamic core