Assembly - Privilege Levels

How can I execute limited instructions such as IN and OUT from protected mode?

I found that the IO level requires a high level of privilege (CPL). How can I run in kernel mode, have I / O permission, or something else that can help me? - I would like to have direct access to hardware without blocking me.

Thank.

+3
source share
1 answer

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.

+1
source

Source: https://habr.com/ru/post/1758821/


All Articles