which instruction could be used in PMode

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
chen17981

which instruction could be used in PMode

Post by chen17981 »

hi, I just want to know which instructions could be used in PMode. Now I am very confused with instruction "outb" and "intb", in some codes I found them in PMode, but some documents told me that these instructions could not be used in Pmode.
DennisCGc

Re:which instruction could be used in PMode

Post by DennisCGc »

Those instructions could be used, when you're using it in privilige level 0. (it depends whether your IOPL flag set to).
like: if IOPL flag is set to 1 privilige levels 0 and 1 can use those instruction, if set to (IOPL flag) 2 levels 0,1 and 2 can use it, etc.
and it's btw "inb" ;)
chen17981

Re:which instruction could be used in PMode

Post by chen17981 »

Thank you. I will try
Post Reply