[Wolves] assembly and c question

Stephen Parkes sparkes at westmids.biz
Tue Jan 10 23:14:06 GMT 2006


A bit of a newb question in this domain but I don't have a clue where
to find the answer and my google foo is weak today.

on an intel box when you call a function from c defined in assembler
which registers do the arguements get pushed to?

example in c i have:

extern void functionA (a, b);
...
functionA(a, b);

and in the assembler file (gas) i have.

.global functionA
...
functionA:
   blah, blah, blah

where do a and b get pushed?  I can choose this for inline asm how do
I it in the assembler file?

sparkes


More information about the Wolves mailing list