how i can use assembly with C

This is a discussion on how i can use assembly with C within the C Programming forums, part of the General Programming Boards category; Hello i tried this code Code: asm { mov ah,11 } it's show this error for me : parse error ...

  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
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 04:00 PM
  2. C to assembly interface
    By Roaring_Tiger in forum C Programming
    Replies: 4
    Last Post: 02-04-2005, 02: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, 03:28 AM
  5. C,C++,Perl,Java
    By brusli in forum C Programming
    Replies: 9
    Last Post: 12-31-2001, 02:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21