home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!news.service.uci.edu!orion.oac.uci.edu!eapg070
- From: eapg070@orion.oac.uci.edu (Caroll Elke Pohl)
- Subject: help calling assembly from C
- Nntp-Posting-Host: orion.oac.uci.edu
- Message-ID: <2B6198C1.22487@news.service.uci.edu>
- Summary: how?
- Newsgroups: comp.sys.mac.programmer
- Organization: University of California, Irvine
- Keywords: assembly,C
- Lines: 31
- Date: 23 Jan 93 19:13:05 GMT
- Distribution: usa
-
- greetings mac programmers!
-
- i wonder if someone out there can assist me with a small problem.
- i'm using MPW (3.2) and want to call an assembly language subroutine
- i wrote from a C program _however_ i want to pass the parameters in
- A0 and A1 instead of using the stack (much like certain memory
- manager traps). how can i get the C compiler to recognize this fact?
-
- on a related matter, can anyone recommend a good book on writing
- assembly programs on the mac.
- a perfect book would include:
- 1) writing MC68000 code in general
- 2) using mac traps, pascal and C stack frames and the like
- 3) using the MPW assembler. things like:
- a) special syntax
- b) all the assembler directives and keywords
- c) how to do more complicated things like segmenting
- and external routines.
-
- any recommendations would be much appreciated.
- please e-mail.
-
- -caroll
-
- *********************************************
- ) """ (
- (Q Q)
- Don't spook ( | )
- the horse! \ A /
- (___)
- *********************************************
-