Menu

Assembler in Dev-C++

2003-02-23
2012-09-26
  • Nobody/Anonymous

    I often used the inline-assembler in Turbo C++
    asm {mov ax,1
            mov bx,2
            }

    how does it work in Dev-C++, if it does at all.

     
    • Anonymous

      Anonymous - 2003-02-23

      __asm__(
      "mov ax, 1"
      "mov bx, 2"
      ) ;

      Be aware that you must also take care not ot destroy the C run-time environment (by changing registers that it may be using for itself). See the GCC manual here http://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#Extended%20Asm and the following sections for details.

      Clifford

       
    • Nobody/Anonymous

              

       
    • Nobody/Anonymous

       

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.