I'm also using Rowley. Is it done the same way? Can you give me more detail? I'm new to assembly.
Thanks,
Dewayne
----- Original Message -----
From: vaneenbergen
To: lpc2000@yahoogroups.com
Sent: Monday, May 15, 2006 10:23 PM
Subject: [lpc2000] Re: Assembly call in C
--- In lpc2000@yahoogroups.com, "heedaf" <ruffellfamily@...> wrote:
>
> Could someone please send me a sample of how to call assembly code
in
> C with passing in a variable x and returning a variable y. I have
> some assembly code that I need to call in my C program but I'm not
> sure how to do it. Also, how do you store arrays in assembly.
> Thanks,
> Dewayne
>
in gcc (i use rowley) the first 4 arguments are in R0 - R3, the rest
will be put on stack (so best keep everything withing 4 arguments).
the return will be in R0.
joost
------------------------------------------------------------------------------
YAHOO! GROUPS LINKS
a.. Visit your group "lpc2000" on the web.
b.. To unsubscribe from this group, send an email to:
lpc2000-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------------------------------------------------------------
[Non-text portions of this message have been removed]Message
Re: [lpc2000] Re: Assembly call in C
2006-05-17 by family account
Attachments
- No local attachments were found for this message.