I need to send this as a asm code "add esp, 4"... in VS I do it with __asm add esp, 4; But I don't know how to do it in Dev-Cpp... or so to speak with the gcc compiler... please help me anyone!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need to send this as a asm code "add esp, 4"... in VS I do it with __asm add esp, 4; But I don't know how to do it in Dev-Cpp... or so to speak with the gcc compiler... please help me anyone!
From the FAQ:
16. How to use assembly with Dev-C++ ?
The assembler uses AT&T (not Intel).
See here for full gcc documentation:
http://gcc.gnu.org/onlinedocs/
Hope this helps.
Derek
For example
include it this way.
asm
(
"xor eax, eax;"
"cpuid;"
"mov VendorId, ebx;"
"mov VendorId + 4, edx;"
"mov VendorId + 8, ecx;"
);