Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!att!dptg!lzsc!hcj From: hcj@lzsc.ATT.COM (HC Johnson) Newsgroups: comp.sys.atari.st Subject: Re: TOS LOADER LOCATION? Summary: use Pexec with options Message-ID: <1500@lzsc.ATT.COM> Date: 27 Mar 90 13:16:18 GMT References: <16000029@ux1.cso.uiuc.edu> Organization: AT&T BL Middletown/Lincroft NJ USA Lines: 19 In article <16000029@ux1.cso.uiuc.edu>, cs325ec@ux1.cso.uiuc.edu writes: > Anybody have a TOS.IMG loader they could email me or know > the location of an FTP that has one? > > Can I just malloc the memory, load in TOS and jump to its > starting address? > Pexec does this for you. Its normal mode is : Pexec(0,...) : loads; starts; frees memory on exit. This is NORMAL. Pexec(3,...) : Loads; does NOT start yet. Pexec(4,...) : Start it now, its already loaded. Debuggers use this. Pexec(5,...) : Lets you do your own loading into a TOS image. Pexec(6,...) : Like 4, but different memory ownership. Howard C. Johnson ATT Bell Labs att!lzsc!hcj hcj@lzsc.att.com