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