Menu

LGDT command

2009-09-28
2013-04-20
  • Nobody/Anonymous

    Hi

    I got a surprising error. When I have the following command:
      lgdt FWORD PTR gdtr, I get the error message:  " Error A2031: Instruction or register not accepted in current CPU mode" even though I have .486 directive in the beginning of the code. What can be the problem?

    gdtr is defined later in the code.

    thanks,

    rus.

     
  • Nobody/Anonymous

    Or, I am sorry - I solved it. I had to use 'p' postfix as well…

     

Log in to post a comment.