Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!malgudi!caen!uwm.edu!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!sjhg9320 From: sjhg9320@uxa.cso.uiuc.edu (Natty Dredmon ) Newsgroups: comp.sys.mac.programmer Subject: Re: How do I call on assembly from C? Message-ID: <1991Jun4.193915.16881@ux1.cso.uiuc.edu> Date: 4 Jun 91 19:39:15 GMT References: <1991Jun4.190036.15349@cs.yale.edu> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 23 the generic way to use .asm from THINK C is to lapse straight into it: (a nonsense procedure showing how its done:) asm { bra.w 000000 rts } If you want real examples, check out the source included in the class libraries... At any rate, It's covered in a short chapter in the manual- in order to pass the trap the parameters its looking for you have to create a stack frame and load them onto it. If you get stuck as to how to do this, peruse Scott Knaster's 'How to Write Macintosh Software'- it does a pretty good job explaining .asm to someone familiar with Higher Level Languages such as C or Pascal. -- ================================================================================ | June 4th, 1989. || |================================================================================