I am compiling my OS in MSVC 2005.
Now i want to modify the value of Code Selector (CS) to fit my needs.
When i use this code in inline assembly in MSVC 2005 :
Code: Select all
mov ax, 0x33 ; the value that i want
mov cs, ax ; moving the value to Code Selector < here is the error >
error C2415: improper operand type
and i read the documents of MSVC on MSDN , and it shows that i should use /G1 or /G2 in the command line.
I used it but i still get the error.
Can anyone help me to repair this problem?
------------------------------------------------------------------
Thanks in advance