Assembly language
Assembly language
(OP)
I have good knowldge in microproccer and c.
But i don't no how to write assembly program in c .
please explain my problem.
But i don't no how to write assembly program in c .
please explain my problem.





RE: Assembly language
RE: Assembly language
Year 80 refference.
That's all.
RE: Assembly language
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