Hi,
I'm confused by your question,
Is it
a. You are writing a program in C and you wish during the normal flow of C to write some assembly code.If this is the case then the flow would go:
...
asm {
Push dx // Push regersters on stack
. // other asm code
. // other asm code
Pop dx // Pull registers off stack
}
....
Problem is this makes your program machine (processor) specific.
b. Or you want to write an assembly routine using C ???.
I'm guessing here but are you intending to write a C language piece of code for a microcontroller ?
Regards