Menu

Inline Assembler

2002-09-08
2012-09-26
  • Nobody/Anonymous

    Hi,

    how can i use the inline assembler?
    I tried asm, _asm, __asm, __asm__ but nothing works.
    In MSVC++ I write

    __asm
    {
        mov eax, 0
        mov ebx, 0
    }

    (only demo code, nothing useful). How can i do this with Dev-C++???

    Thanks,
    -Dominik

     
    • Nobody/Anonymous

      The Assembler in gcc uses  AT&T Asm Syntax.
      Search for all on 'AT&T Asm Syntax', as you already know asm, some of the websites i found have docs that cover AT&T Asm Syntax.

      No link sorry, do not want anything that may  be looked  at as an   ad.

      Larry

       
    • Nobody/Anonymous

      movb   %ah,   $0

      Small sample of AT&T Syntax.

        Larry

       
    • Nobody/Anonymous

      Thanks you very much!!!

       

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.