Re: to combine C language program and ASSEMBLY language program




manoj wrote:
I am new to C language programming of LPC935 MICROCONTROLLER. actually
i want to call a function( which is written in assembly language) from
C language program. please tell me how to do it.
or if there is any option to write some code in assembly in
continuation with C . please help in this regard also

You need to read up in your compiler manual on things like (at a bare
minimum) how it passes arguments, which registers you're allowed to
trash and which ones you need to preserve, and how it expects results
to be returned.

As to inline assembly (if that's what your question refers to), you
need to read up on that too in your compiler manual.

.



Relevant Pages