944,131 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 1667
  • Assembly RSS
Dec 22nd, 2006
0

hi everyone..

Expand Post »
well i need books on ASM which uses C..
i know assembly and C seperately but don't know how to use C with assembly.. so thats why i need help..
and i'm working on Tasm..
but i need manual of masm 9 too..
i just downloaded masm9..:lol:
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
mytime19 is offline Offline
50 posts
since Dec 2006
Dec 22nd, 2006
0

Re: hi everyone..

There are a few articles about mixing c and assembly. Not very difficult to do, but the techniques may be a bit different from one c compiler to another due to c calling convention and how the c compiler modified function names. For example microsoft compiler add an underline before the function name while borland compilers typically add it after the function name. other compilers may not change the function names at all.

And then you have the problem is how to pass parameters to the function. Here again you have to know the calling convention used by the c compiler. If it is __stdcall parameters are pushed differently than __fortran or __fastcall calling conventions.

Here is a short article that might help you. If you google for "mixed c and assembly language programming" you will get more help.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Ancient Dragon is online now Online
21,961 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: A simple problem can anyone help
Next Thread in Assembly Forum Timeline: hi everyone





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC