Please give some example that will show how write and interface assembly function to C
What document, exactly?
Always give a link, so that people can check that it's a good document, and/or that you are correctly interpreting what it says.
Beware of just implicitly trusting everything you find on the net - always verify it against "official" documentation!