Thread: how i can use assembly with C

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    5

    how i can use assembly with C

    Hello

    i tried this code

    Code:
    asm  { mov ah,11 }
    it's show this error for me : parse error before `{' token

    and when i tried this

    Code:
    asm mov ah,11
    it's show this error for me : parse error before `ah'

    i am using Dev-C++

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Dev-C++ uses GCC, which means it uses AT&T syntax.

    http://www.ibiblio.org/gferg/ldp/GCC...-HOWTO.html#s3

  3. #3
    ---
    Join Date
    May 2004
    Posts
    1,379
    >>Dev-C++ uses GCC, which means it uses AT&T syntax.

    Dev-C++ uses GCC, which means it is just too damn hard

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well you make sure you really know C before you start messing with assembler.

    The number of times where it is actually NECESSARY to resort to assembler in a C program is surprisingly rare.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Learning Assembly
    By mrafcho001 in forum Tech Board
    Replies: 5
    Last Post: 03-12-2006, 05:00 PM
  2. C to assembly interface
    By Roaring_Tiger in forum C Programming
    Replies: 4
    Last Post: 02-04-2005, 03:51 PM
  3. assembly language...the best tool for game programming?
    By silk.odyssey in forum Game Programming
    Replies: 50
    Last Post: 06-22-2004, 01:11 PM
  4. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 04:28 AM
  5. C,C++,Perl,Java
    By brusli in forum C Programming
    Replies: 9
    Last Post: 12-31-2001, 03:35 AM