Can somebody please explain how to use macros in x86 assembly coding
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on what complier you are using.
Typically an assembler macro will take the following form;
This would exist in the header section of your source code and does not output any code unless it is referenced. You would inline this with the other assembler.
The “parameters” %1 and %2 in this case would be replaced with ecx and 12 generating the following output