Re: to combine C language program and ASSEMBLY language program
- From: "Mike Silva" <snarflemike@xxxxxxxxx>
- Date: 5 Oct 2006 05:25:36 -0700
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.
.
- References:
- Prev by Date: Re: Finding the exact peak of an sine wave
- Next by Date: Re: PIC vs AVR vs ARM
- Previous by thread: Re: to combine C language program and ASSEMBLY language program
- Next by thread: sw multiply
- Index(es):
Relevant Pages
|