Menu

The GCC asm commando...

2002-12-16
2012-09-26
  • Nobody/Anonymous

    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!

     
    • Derek Baker

      Derek Baker - 2002-12-16

      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

       
    • Nobody/Anonymous

      For example
      include it this way.
      asm
      (
      "xor eax, eax;"
      "cpuid;"
      "mov VendorId, ebx;"
      "mov VendorId + 4, edx;"
      "mov VendorId + 8, ecx;"
      );

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.