Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!daveo From: daveo@Apple.COM (David M. O'Rourke) Newsgroups: comp.sys.mac.programmer Subject: Re: 'CODE' resource format Message-ID: <40838@apple.Apple.COM> Date: 9 May 90 15:36:48 GMT References: <3235@rodan.acs.syr.edu> Distribution: usa Organization: Apple Computer Inc, Cupertino, CA Lines: 23 dinapoli@rodan.acs.syr.edu (Ron DiNapoli) writes: >Does anyone out there know where I might be able to get my hands on any >docs describing the format of 'CODE' resources? Amazingly enough it's quite hard to find an *direct* documentation on the format of a 'CODE' resource. I've searched most of the popular documentation and can't find anything. So from looking with MPW's dumpfile, dumpobj, and dumpcode commands it appears that the format of a 'CODE' resource is just the raw 680x0 instructions that you want executed, nothing more, nothing less. 'CODE' resource #0 is of course the jump table. The format of CODE(0) is documented in the Segment Loader Chapter of Inside Mac, and there is a Tech. Note that discusses some of the limitations of CODE(0). Hope this helps. -- daveo@apple.com David M. O'Rourke "Hey where'd you learn to shoot like that?" ... "At the 7-11." -- Marty McFly (Back to the future III) _______________________________________________________________________________ I do not speak for Apple in any official sense.