DOS is not a protected mode OS. In the old days, there were PM frameworks called DOS extensions . They have an API for such things. Creating your own PM environment consists of much more than just switching the CPU to protected mode.
You should also use the debugger program to check what exactly is wrong in DosBox.
source
share