How to use functions done in assembler?

This is a discussion on How to use functions done in assembler? within the C Programming forums, part of the General Programming Boards category; Hello. I made an assembler program which sums two numbers for example. I want to call it from a C ...

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    16

    How to use functions done in assembler?

    Hello. I made an assembler program which sums two numbers for example.


    I want to call it from a C program. Can somebody explain me about PROTYPING(.H Files)? Linking?

    Whats the process I have to do on any IDE? I use Pelle C for Window. Do you recommend me anything else?

    I know that when I compile an ASM it generates an OBJ file. after that what should I do?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,555
    Given your other posts, you need to work on the C first.
    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.

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    extern "C" func_name(param_list)

  4. #4
    Registered User
    Join Date
    Apr 2005
    Posts
    8
    Have a look at this site
    There is a book and code for the examples(for different compiliers)
    It shoul help
    http://www.drpaulcarter.com/pcasm/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Functions and Classes - What did I do wrong?
    By redmage in forum C++ Programming
    Replies: 5
    Last Post: 04-11-2005, 11:50 AM
  2. calling functions within functions
    By edd1986 in forum C Programming
    Replies: 3
    Last Post: 03-29-2005, 02:35 AM
  3. Factory Functions HOWTO
    By GuardianDevil in forum Windows Programming
    Replies: 1
    Last Post: 05-01-2004, 01:41 PM
  4. Shell functions on Win XP
    By geek@02 in forum Windows Programming
    Replies: 6
    Last Post: 04-19-2004, 05:39 AM
  5. functions - please help!!!!
    By linkies in forum C Programming
    Replies: 1
    Last Post: 08-21-2002, 07:53 AM

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