Re: A program I've made works in VirtualBox and QEMU, but crashes under DosBox
Posted on 2023-01-07, 16:06
0ba45h masks the EFLAGS bits in AH to retain and the FPU condition flag bits in AL to merge. It takes advantage of the fact that the condition flags (carry, parity, zero) are in the same relative positions in both registers, which is almost certainly by design. Note that I didn't include the …