Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!uw-beaver!sumax!ole!thebes!polari!robert From: robert@polari.UUCP (robert) Newsgroups: comp.sys.mac.programmer Subject: Re: trap patches Summary: StdFile, Pack3 Message-ID: <2818@polari.UUCP> Date: 30 Nov 90 20:30:54 GMT References: <1990Nov26.040223.8193@ucselx.sdsu.edu> <46831@apple.Apple.COM> Organization: Seattle Online Public Unix (206) 328-4944 Lines: 24 In article <46831@apple.Apple.COM>, stevec@Apple.COM (Steve Christensen) writes: > s-zeerox@steer.calstate.edu (Stan Malyshev) writes: > >Does anyone have any SIMPLE code to illustrate a trap patch via and INIT? > >My creation bombs (ID = 02) at startup, and I can't figure out what's > >wrong. Arrghhhh! > > Here's a quickie in assembly: This example looks very useful, but my BIG problem right now is that what I need to do requires patching routines in the Standard File package. Pack3 is a complex trap. Apparently, calls to Pack3 involve passing a routine "selector" of some kind. I haven't found any documentation on this. Does anyone have any information? Any examples or pointers to examples? A sharp razor? Robert Riebman |***********************************************************************| |Robert Riebman | robert@polari | |Northwest Information Technology | (...uw-beaver!sumax!polari!robert) | |P.O. Box 3156 | | |Redmond, WA 98073 | "Hack and Enjoy" | |***********************************************************************|