Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!looking!david From: david@looking.UUCP Newsgroups: comp.sys.atari.st Subject: Some of the mysteries of Pexec solved Message-ID: <726@looking.UUCP> Date: Fri, 9-Jan-87 08:48:44 EST Article-I.D.: looking.726 Posted: Fri Jan 9 08:48:44 1987 Date-Received: Sat, 10-Jan-87 04:40:03 EST Distribution: na Organization: Looking Glass Software Ltd. Waterloo, Ontario Lines: 21 Well, after a bit of trial and error hacking, I got Pexec's load-no-go and just-go modes to work. Load-No-Go takes the same parms are regular Pexec (mode, path, tail, env). Just-Go does not work as advertised in the latest GEMDOS doc's which state that the parms are (mode, who_cares, who_cares, basepage_addr), with basepage_addr as returned by load-no-go. Use of this calling sequence produced rather nice looking crashes, but little else. Since Atari documented the middle two parameters as being unimportant, I changed the call to: Pexec(mode = 4, basepage, basepage, basepage), and lo and behold, it worked ! Isn't GEM Documentation wonderful ? I don't know which is the needed pointer and which aren't, and I don't particularly want to take the extra time to figure it out as getting this thing to work has taken too long anyway! David Rowley Looking Glass Software Waterloo, Ontario