Page 1 of 1

DJGPP inline assembler syntax...

Posted: Thu Jul 31, 2003 6:42 am
by Silverhawk
Hello everybody !

does anyone can explain me the following syntax ?
__asm__ __volatile__ ("lgdt (%0)": :"p" (((char *)tmp_val )+2));

this is in a c fonction, there is no input variable...
so, I don't know why %0 !
And what does "p" mean ?

thanks.

Re:DJGPP inline assembler syntax...

Posted: Thu Jul 31, 2003 7:15 am
by Pype.Clicker