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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
Or, I am sorry - I solved it. I had to use 'p' postfix as well…