Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!cernvax!chx400!bernina!neptune!iiic.ethz.ch!mneerach From: mneerach@iiic.ethz.ch (Matthias Ulrich Neeracher) Newsgroups: comp.sys.mac.programmer Subject: Re: Using parameter blocks in ASM Message-ID: <17573@neptune.inf.ethz.ch> Date: 6 Dec 90 12:28:58 GMT References: <0bLHodC00WBL42hVc=@andrew.cmu.edu> Sender: news@neptune.inf.ethz.ch Reply-To: mneerach@iiic.ethz.ch Organization: Departement Informatik, ETH, Zurich Lines: 22 In article <0bLHodC00WBL42hVc=@andrew.cmu.edu>, gd1a+@andrew.cmu.edu (Glen M. Devries) writes: > How does one set up a parameter block in assembly. I need a pointer to > the block and then need to set up the contents. Where can it be? Must it > be in the application heap or can it be in the system heap? Both is possible, the block can even be on the stack (But beware of asynchronous calls which continue after the stack frame containing the parameter block has been destroyed). You have to declare/allocate a nonrelocatable block the size of a ParamBlockRec. You should find this size already declared as a constant in some interface file. Hope this helps Matthias ----- Matthias Neeracher mneerach@iiic.ethz.ch "These days, though, you have to be pretty technical before you can even aspire to crudeness." -- William Gibson, _Johnny Mnemonic_