Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!sun-barr!apple!uokmax!munnari.oz.au!metro!cluster!ultima!fidogate From: mark.newton@f805.n680.fido.oz.au (Mark Newton) Newsgroups: comp.sys.amiga.tech Subject: THOSE DAMNED BPTR'S Message-ID: <18556@ultima.socs.uts.edu.au> Date: 6 Nov 90 18:18:32 GMT Sender: fido@ultima.socs.uts.edu.au Organization: A Fidonet node, gated through ultima.socs.uts.edu.au Lines: 21 I believe there was something about this posted a couple of months ago, but I can't find it. I want to write a function that does something like Execute() or system(), partly as a learning experience, but mostly to give a bit more flexability than those two functions. I was under the impression that I could use LoadSeg() to load the code for the new process, initialize a (struct Process) so that it's pr_SegList was pointing to the LoadSeg()'ed code, set the initial PC to the start of the code and call CreateProc(). Ok so far? Ok. LoadSeg() returns a long, and the pr_SegList is a BPTR. I haven't got the autodocs (I have got 1.3 Libraries and Devices), but I assume that the return address from LoadSeg() is the starting address in memory of the segment. How can I convert this to a BPTR? Thanx muchly, -mark --- TBBS v2.1/NM * Origin: ADAM, 2,100 MEGS R/W 32 line TBBS call us 08-370-5775 (680/805)