https://github.com/joncampbell123/doslib
Most of the stuff that's emulated in DosBox-X has a corresponding SDK in doslib. It's a treasure-trove of information
https://www.digitalmars.com/download/freecompiler.html
https://en.wikipedia.org/wiki/Mode_X
As usual - you will never know the difference until you try.
https://github.com/joncampbell123/doslib
Most of the stuff that's emulated in DosBox-X has a corresponding SDK in doslib. It's a treasure-trove of information