Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!nucsrl!accuvax.nwu.edu!bob From: bob@accuvax.nwu.edu (Bob Hablutzel) Newsgroups: comp.sys.mac.programmer Subject: Re: ? In Line Assembly For MPW C ? Message-ID: <10050085@accuvax.nwu.edu> Date: 2 Mar 89 03:19:55 GMT References: <1359@ccnysci.UUCP> Organization: Northwestern U, Evanston IL, USA Lines: 14 > I know there is nothing like that since NO environment > is perfect, but Can somebody provide me with a template > to write an Assembly routine for my C program? I mean > the passing of arguments from C to Assembly in MPW. I'll assume that you're using the MPW assembler, and can therefore use the program structured macros that come with it. Using these macros, you can declare a routine with a HLL like header (OK, a pascal-like header), which uses standard Mac parameter passing. Optionally, you can tell the routines to use C calling standards, but off the top of my head I don't remember how. (I don't use C, so I've never used this). The routines are, by the way, insanely great. Highly recommended. Bob Hablutzel Wildwood Software BOB@NUACC.ACNS.NWU.EDU