help with passing variables between c and assembly(GCC, NASM)

Im using gcc and nasm on linux and have already figured out how to call a c function from assembly and a assembly routine from c, but I can't seem to figure out how to pass a c variable to a assembly routine and the other way around.
so can anyone who is using gcc and nasm tell me how to do this or point me to some good tutorial

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!