Jump to content

Passing parameters from C to Assembly [URGENT]

- - - - -

  • Please log in to reply
1 reply to this topic

#1
talhak

talhak

    Newbie

  • Members
  • Pip
  • 1 posts
Hi everyone,

I need your REALLY URGENT helps, I need to pass parameters from C to Assembly. I've addresses of some C variable, I need to reach them by Assembly. Please can someone help me, it's really VERY URGENT!

I'd appreaciate a lot if someone helps me.
Thanks in advance.
With regards..

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
It would help to know your compiler, MSVC inline assemblies and GCC inline assemblies are in different format.

In GCC the template would be as follows:
       asm ( assembler template 
           : output operands                  /* optional */
           : input operands                   /* optional */
           : list of clobbered registers      /* optional */
           );
And there are various GCC or MSDN documentations on how to work with these inline assemblies.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users