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..
1 reply to this topic
#1
Posted 16 May 2011 - 10:19 AM
|
|
|
#2
Posted 16 May 2011 - 12:38 PM
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:
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.
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


Sign In
Create Account

Back to top









