Reputation: 143
How can I perform restricted instructions such as IN and OUT from protected mode?
I've found out that It would require privilege level (CPL) high enough to perform the IO instruction. How can I run in kernel mode, have IO permission or anything other that may help me? - I would like to have direct access to hardware, without anything blocking me.
Thanks.
Upvotes: 3
Views: 702
Reputation: 20333
DOS is not a protected mode OS. In the olden days there were PM frameworks called DOS extenders. They have an API for things like this. Creating your own PM environment consists of much more than just switching the CPU to Protected Mode.
You should also use a debugger program to check what exactly is wrong under DosBox.
Upvotes: 1