The DOS SDK
scalibq.wordpress.com
scalibq.wordpress.com
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
As usual - you will never know the difference until you try.