I’ve made some code snippets about assembly inline with GCC. A quick search points to a lot of good documentation.
IBM DeveloperWorks about Inline asssembly for x86 in Linux
Linux Documentation Project HOWTO describing GCC Inline Assembly
The syntax may be confusing, if you don’t understand read the documentation available. Each example are an C function with [...]