Thread: asm

  1. #1
    amit
    Guest

    Thumbs up asm

    hai every body,

    can u show me a simple program in c using asm?

  2. #2
    Registered User moonwalker's Avatar
    Join Date
    Jul 2002
    Posts
    282

    ASM

    Use the search feature in this board if you haven't used it before. It is very helpful.

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Also be more specific. Do you mean using C code and external ASM routines (defined in an ASM-file), or do you mean inline assembly. Also specify which compiler and assembler you are using, since implementation is different. And I almost forgot it, since assembly is not the same at each platform, specify which OS you are using and which microprocessor.

  4. #4
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    because i can't sleep:

    Code:
    int yahoo();
    int main() {
      yahoo();
    }
    Code:
    global yahoo
    yahoo:
    enter 0,0
    xor eax,eax
    leave
    ret
    that code will return a 0.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. gcc asm code syntax
    By Uberapa in forum C Programming
    Replies: 4
    Last Post: 06-15-2007, 01:16 AM
  2. Asm + C++
    By JaWiB in forum C++ Programming
    Replies: 17
    Last Post: 06-26-2003, 03:13 PM
  3. Understanding ASM
    By kuphryn in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 07-12-2002, 07:39 PM
  4. asm mov
    By manu in forum C++ Programming
    Replies: 1
    Last Post: 12-15-2001, 12:59 PM
  5. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 06:05 PM