asm in C

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2004
Posts: 140
Reputation: Mahen is an unknown quantity at this point 
Solved Threads: 2
Mahen Mahen is offline Offline
Junior Poster

asm in C

 
0
  #1
Sep 10th, 2004
hi everyone,
am sorry but i have to bother you again. Here is my question. Firstly I want to know how to include asm programming in C. Secondly, is there a way to convert hex into asm in C.
Thanks for all your responses.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 436
Reputation: Chainsaw is an unknown quantity at this point 
Solved Threads: 11
Chainsaw's Avatar
Chainsaw Chainsaw is offline Offline
Unprevaricator

Re: asm in C

 
0
  #2
Sep 10th, 2004
If you have small snippets of asm you want to do you can usually inline the ASM. In vc++, for example:

  1. void DoSomething( int parameter )
  2. {
  3. int localVar;
  4.  
  5. __asm
  6. {
  7. mov EAX, localVar // you have access to local vars by name
  8. mov parameter, EAX // and to parameters
  9. }
  10. }
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC