Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!wuarchive!psuvax1!psuvm!cxt105 From: CXT105@psuvm.psu.edu (Christopher Tate) Newsgroups: comp.sys.mac.programmer Subject: Re: Toolbox Patching Message-ID: <91148.143515CXT105@psuvm.psu.edu> Date: 28 May 91 18:35:15 GMT References: <1991May28.163618.8353@crash.cts.com> <13613@dog.ee.lbl.gov> Organization: Penn State University Lines: 26 You might want to download the file "screensaversource.c.hqx" from the anonymous ftp site at mac.archive.umich.edu. It's the source code to a screen saver that I wrote as a project for the Penn State Center for Academic Computing. As a screen saver it's no great shakes, but (IMHO) it's a very clean example of a trap patch. The code is written for THINK C. If you're using MPW or Zortech, it'll probably be kind of tricky to get it working. THINK C, unlike the others, generates A4-relative addressing for standalone code, to avoid having to muck with A5. However, the actual mechanics of the trap patch should be fairly evident. You can find that file in the directory "/mac/development/source". Also, you may want to get hold of the Usenet Mac Programmers' Guide, a compilation of useful stuff that has appeared here over the past couple of years. It's available from sumex-aim.stanford.edu, and possible from mac.archive.umich.edu. The editor is Matt Mora, mxmora@unix.sri.com, in case you can't find a copy elsewhere. The UMPG does have a fair amount of info on trap patching and suchlike. ------- Christopher Tate | Mercy (noun): | The infrequent art of turning Bitnet: cxt105@psuvm | thumbs-up on your opponent at Uucp: ...!psuvax1!psuvm.bitnet!cxt105 | the end of your rapier.