okanat parent
You get better DOS emulation with DOSBox, rather than trying to make the modern peripherals work on a CSM / BIOS system.
DOSBox doesn't give access to real hardware. DOSemu doesn't run well on 64-bit machines. If you need unfettered hardware access, FreeDOS on the bare machine is the best option.
Actually it does give some. I'm using old ham radio software like CT9 under Windows 64-bits using DOSBox-X, with the parallel port configured in pass-through mode. DOSBox-X supplies a specific driver for this kind of direct hardware access. Of course not everything will work that way.