home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16924 < prev    next >
Encoding:
Text File  |  1992-11-20  |  845 b   |  25 lines

  1. Nntp-Posting-Host: curtisn.byu.edu
  2. Lines: 14
  3. Path: sparky!uunet!iWarp.intel.com|eff!news.byu.edu!news
  4. Message-ID: <ad#@byu.edu>
  5. Date: Thu, 19 Nov 92 11:19:31 MST
  6. Newsgroups: comp.lang.c
  7. From: curtisn@SAS (Curtis Nelson)
  8. Subject: Help with ASM/C interface
  9. Organization: BYU
  10.  
  11. Hey fellow nerds!
  12. I have a question I hope one of you can help me with.  I'm using Borland C++ 
  13. 3.0 and I am trying to write a simple assembly language routine in my code.  
  14. My question is, how do I pass vaues back and forth?  For example, if I push 
  15. a value onto the stack in assembly, how con I retrieve that value from C?  I 
  16. know I can use the stack, but how do I access an item on the stack?  I've 
  17. looked at 'pop', but that appears to only work in C++, and I'm writing this 
  18. in straight C. 
  19.  
  20. I would appreciate any help!
  21. Thanks!
  22.  
  23. Curtis Nelson
  24. curtisn@sasb.byu.edu
  25.