home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12722 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!usc!sdd.hp.com!elroy.jpl.nasa.gov!jato!jdickson
  3. From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
  4. Subject: Re: including 68000 code in C
  5. Message-ID: <1992Aug26.170046.17886@jato.jpl.nasa.gov>
  6. Organization: Jet Propulsion Laboratory
  7. References: <1992Aug25.023906.8962@ccu.umanitoba.ca> <1992Aug26.100614.10949@bristol.ac.uk>
  8. Date: Wed, 26 Aug 1992 17:00:46 GMT
  9. Lines: 19
  10.  
  11. In article <1992Aug26.100614.10949@bristol.ac.uk> ccsw@bristol.ac.uk (EthaStorm) writes:
  12. >In article <1992Aug25.023906.8962@ccu.umanitoba.ca> umfehr06@ccu.umanitoba.ca (John Fehr) writes:
  13. >>Is there any way to simply insert 68000 code in your C programs?  Say I want to
  14. >>put some in a for loop or something.
  15. >>    John
  16. >>
  17. >
  18. >Hiya John.
  19.  
  20. Some compilers offer the option of embedding assembly code by providing the
  21. two statements #asm and #endasm. Never did this, but when your code calls a
  22. routine written in assembly code (imagine this would be the same case) D0-D1
  23. and A0-A1 are scratch and A4 (at least on my compiler) points to my C prog-
  24. ram's data space. There's much more to all this and I suggest if you're inter-
  25. ested read up on it under your compilers chapter on interfacing assembly to
  26. C (and vica-versa).
  27.  
  28. jeff
  29.  
  30.