Thread: Assembly

  1. #1
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470

    Assembly

    Hi.

    # Can somebody please tell me what’s the difference between including an assembly code within C++ and compiling it as a C++ file and compiling that same assembly code separately as an assembly file?
    # Can I include a full assembly program inside _asm {} without changing the original assembly code ?

    Thanks.
    Good day to all.

  2. #2
    Registered User
    Join Date
    Jan 2004
    Posts
    33
    Inline assembler is used for optimizing code inside your program, or writing routines that are much faster when written in pure assembler and not c++. I do not believe that you can include a full assembly program within a __asm block, due to the fact that instructions such as org [100h], Message db 'Hello World', '$', and others will not compile.
    “Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. " -John Carmack

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