Plus it’s much more satisfying running what you wrote on real hardware :)
I have an alternative to suggest however. PCem is a very accurate emulator, and indeed I just tried your game in PCem and exhibits exactly the same issue as the real computer does. At the start of this jam a couple of months back, I posted in the “community” section, a handy archive including a PCem disk image with DOS 6.22 and a bunch of devtools pre-installed, as well as a PCem binary I compiled for GNU/Linux: https://itch.io/jam/dos-game-jam-2/topic/692522/disk-image-with-dos-devtools