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