DJGPP inline assembler syntax...

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
Silverhawk

DJGPP inline assembler syntax...

Post 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.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:DJGPP inline assembler syntax...

Post by Pype.Clicker »

Post Reply