Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!yale!cs.yale.edu!cs.yale.edu!pittenger-laurence From: pittenger-laurence@cs.yale.edu (Laurence Arthur Pittenger) Newsgroups: comp.sys.mac.programmer Subject: Re: How do I call on assembly from C? Message-ID: <1991Jun5.012719.18221@cs.yale.edu> Date: 5 Jun 91 01:27:19 GMT References: <1991Jun4.190036.15349@cs.yale.edu> <1991Jun4.193915.16881@ux1.cso.uiuc.edu> Sender: news@cs.yale.edu (Usenet News) Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 Lines: 17 Originator: pitteng@suned.CS.Yale.Edu Nntp-Posting-Host: zoo-gw.cs.yale.edu Re my previous question about calling directly into assembly language: The following command works, in Think C at any rate, as an in line macro. This saves the trouble of doing in-line assembly or messing with CallPascal commands, and makes the code that much more readable: pascal OSErr BitMapToRegion(RgnHandle region, BitMap *bMap) = 0xA8D7; Think C accepts the assignment as a function definition. Thanks to those who responded. LP -- Laurence A. Pittenger CSNET : pittenger-laurence@cs.yale.edu BITNET : pitlaua@yalevm , pittenger-laurence@yalecs